A panel that allows users to select a color.
Signature | hs.dialog.color.alpha([value]) -> number |
---|---|
Type | Function |
Description | Set or display the selected opacity. Parameters:
Returns:
Notes:
|
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:
|
Signature | hs.dialog.color.color([value]) -> table |
---|---|
Type | Function |
Description | Set or display the currently selected color in a color wheel. Parameters:
Returns:
Notes:
|
Signature | hs.dialog.color.continuous([value]) -> boolean |
---|---|
Type | Function |
Description | Set or display whether or not the callback should be continiously updated when a user drags a color slider or control. Parameters:
Returns:
Notes:
|
Signature | hs.dialog.color.hide() -> none |
---|---|
Type | Function |
Description | Hides the Color Panel. Parameters:
Returns:
Notes:
|
Signature | hs.dialog.color.mode([value]) -> table |
---|---|
Type | Function |
Description | Set or display the currently selected color panel mode. Parameters:
Returns:
Notes:
|
Signature | hs.dialog.color.show() -> none |
---|---|
Type | Function |
Description | Shows the Color Panel. Parameters:
Returns:
Notes:
|
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:
|