hs.drawing.color
r
, g
, and b
are hexadecimal digits (i.e. 0-9, A-F)hs.image
object representing the image to be used as a tiled patternimage
key is specified, it will be used to create a tiling pattern.list
and name
keys are specified, and if they can be matched to an existing color within the system color lists, that color is used.hue
key is provided, then the color is generated as an HSB colorwhite
key is provided, then the color is generated as a Grayscale coloralpha
, which defaults to 1.0. This means that specifying an empty table as the color will result in an opaque black color.hs.drawing.color.definedCollections
hs.drawing.color
module. Collections differ from the system color lists in that you can modify the color values their members contain by modifying the table at hs.drawing.color.<collection>.<color>
and future references to that color will reflect the new changes, thus allowing you to customize the palettes for your installation.hs.drawing.color.ansiTerminalColors
hs.drawing.color.hammerspoon
hs.drawing.color.x11
hs.drawing.color.asHSB(color) -> table | string
| | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Function | | Description | Returns a table containing the HSB representation of the specified color. | | Parameters |hs.drawing.color
in the online help or Dash documentation)hs.drawing.color.asRGB
hs.drawing.color.asRGB(color) -> table | string
| | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Function | | Description | Returns a table containing the RGB representation of the specified color. | | Parameters |hs.drawing.color
in the online help or Dash documentation)hs.drawing.color.asHSB
hs.drawing.color.colorsFor(list) -> table
list
and name
which identify the indicated color. This means that you can use the following wherever a color parameter is expected: hs.drawing.color.colorsFor(list)["color-name"]
hs.drawing.colorsFor(list)
hs.drawing.color.lists
hs.drawing.color.lists() -> table
list
and name
which identify the indicated color. This means that you can use the following wherever a color parameter is expected: hs.drawing.color.lists()["list-name"]["color-name"]
hs.drawing.color.lists()
hs.drawing.color.colorsFor