hammerspoon2-docs
    Preparing search index...

    Interface HSCanvasColor

    A colour as an object, as hs.drawing.color took them in Hammerspoon 1. Components are from 0 to 1; ones you leave out are 0, except alpha, which is 1. The first of list/name, hex, white and hue/saturation/brightness that's present is used, otherwise red/green/blue

    interface HSCanvasColor {
        alpha?: number;
        blue?: number;
        brightness?: number;
        green?: number;
        hex?: string;
        hue?: number;
        list?: string;
        name?: string;
        red?: number;
        saturation?: number;
        white?: number;
    }
    Index
    alpha?: number
    blue?: number
    brightness?: number
    green?: number
    hex?: string

    A hex colour, e.g. "#4A90E2"

    hue?: number
    list?: string

    The name of a system colour list, e.g. "Apple"

    name?: string

    The name of a colour in list

    red?: number
    saturation?: number
    white?: number