docs » ColorPicker

Show a color sample/picker

Clicking on any color will copy its name to the clipboard, cmd-click will copy its RGB code.

Download: https://github.com/Hammerspoon/Spoons/raw/master/Spoons/ColorPicker.spoon.zip

API Overview

API Documentation

Variables

logger
Signature ColorPicker.logger
Type Variable
Description

Logger object used within the Spoon. Can be accessed to set the default log level for the messages coming from the Spoon.

Source Source/ColorPicker.spoon/init.lua line 21
show_in_menubar
Signature ColorPicker.show_in_menubar
Type Variable
Description

If true, show an icon in the menubar to trigger the color picker

Source Source/ColorPicker.spoon/init.lua line 26

Methods

bindHotkeys
Signature ColorPicker:bindHotkeys(mapping)
Type Method
Description

Binds hotkeys for ColorPicker

Parameters
  • mapping - A table containing hotkey objifier/key details for the following items:
    • show - Show color picker menu
Returns
Source Source/ColorPicker.spoon/init.lua line 185
toggleColorSamples
Signature ColorPicker.toggleColorSamples(tablename)
Type Method
Description

Toggle display on the screen of a grid with all the colors in the given colortable

Parameters
  • tablename - name of the colortable to display
Returns
Source Source/ColorPicker.spoon/init.lua line 108