On this page
hs.dialog.color
A panel that allows users to select a color.
API Overview
- Functions - API calls offered directly by the extension
API Documentation
Functions
alpha
Signature | hs.dialog.color.alpha([value]) -> number |
---|---|
Type | Function |
Description | Set or display the selected opacity. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/dialog/libdialog.m line 257 |
callback
Signature | hs.dialog.color.callback([callbackFn]) -> function or nil |
---|---|
Type | Function |
Description | Sets or removes the callback function for the color panel. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/dialog/libdialog.m line 79 |
color
Signature | hs.dialog.color.color([value]) -> table |
---|---|
Type | Function |
Description | Set or display the currently selected color in a color wheel. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/dialog/libdialog.m line 164 |
continuous
Signature | hs.dialog.color.continuous([value]) -> boolean |
---|---|
Type | Function |
Description | Set or display whether or not the callback should be continuously updated when a user drags a color slider or control. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/dialog/libdialog.m line 116 |
hide
Signature | hs.dialog.color.hide() -> none |
---|---|
Type | Function |
Description | Hides the Color Panel. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/dialog/libdialog.m line 305 |
mode
Signature | hs.dialog.color.mode([value]) -> table |
---|---|
Type | Function |
Description | Set or display the currently selected color panel mode. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/dialog/libdialog.m line 189 |
show
Signature | hs.dialog.color.show() -> none |
---|---|
Type | Function |
Description | Shows the Color Panel. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/dialog/libdialog.m line 285 |
showsAlpha
Signature | hs.dialog.color.showsAlpha([value]) -> boolean |
---|---|
Type | Function |
Description | Set or display whether or not the color panel should display an opacity slider. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/dialog/libdialog.m line 140 |
© 2014–2017 Hammerspoon contributors
Licensed under the MIT License.
https://www.hammerspoon.org/docs/hs.dialog.color.html