docs » cp.apple.finalcutpro.inspector.color.ColorWell
Represents a single Color Well in the Color Wheels Inspector.
- Constants - Useful values which cannot be changed
- KEY_PRESS
- Functions - API calls offered directly by the extension
- matches
- Constructors - API calls which return an object, typically one that offers API methods
- ColorWell
- Fields - Variables which can only be accessed from an object returned by a constructor
- center
- colorOrientation
- colorPosition
- focused
- puckPosition
- Methods - API calls which can only be made on an object returned by a constructor
- nudge
- reset
- select
| Signature | cp.apple.finalcutpro.inspector.color.ColorWell.KEY_PRESS |
|---|---|
| Type | Constant |
| Description | This can be used with nudge to shift by the same distance |
| Signature | cp.apple.finalcutpro.inspector.color.ColorWell.matches(element) |
|---|---|
| Type | Function |
| Description | Checks if the specified element is a Color Well. |
| Parameters |
|
| Returns |
|
| Signature | cp.apple.finalcutpro.inspector.color.ColorWell(parent, uiFinder[, hueShift]) -> ColorWell |
|---|---|
| Type | Constructor |
| Description | Creates a new ColorWell instance, with the specified parent and finder function. |
| Parameters |
|
| Returns |
|
| Signature | cp.apple.finalcutpro.inspector.color.ColorWell.center <cp.prop: point; read-only> |
|---|---|
| Type | Field |
| Description | The center point of the ColorWell. A table with {x=..., y=...}. |
| Signature | cp.apple.finalcutpro.inspector.color.ColorWell.colorOrientation <cp.prop: table> |
|---|---|
| Type | Field |
| Description | Provides the orientation of the color as a table containing an up and right value. |
| Signature | cp.apple.finalcutpro.inspector.color.ColorWell.colorPosition <cp.prop: hs.geometry.point> |
|---|---|
| Type | Field |
| Description | X/Y screen position for the current color value of the Color Well. This ignores the bounds of the |
| Signature | cp.apple.finalcutpro.inspector.color.ColorWell.focused <cp.pref: boolean> |
|---|---|
| Type | Field |
| Description | Gets and sets whether the Color Well has focus. |
| Signature | cp.apple.finalcutpro.inspector.color.ColorWell.puckPosition <cp.prop: hs.geometry.point> |
|---|---|
| Type | Field |
| Description | Absolute X/Y screen position for the puck in the Color Well. Colours outside the bounds are clamped inside the color well. |
| Signature | cp.apple.finalcutpro.inspector.color.ColorWell:nudge(right, up) -> cp.rx.go.Statement |
|---|---|
| Type | Method |
| Description | A Statement that nudges the colorPosition by right/up values. |
| Parameters |
|
| Returns |
|
| Signature | cp.apple.finalcutpro.inspector.color.ColorWell:reset() -> self |
|---|---|
| Type | Method |
| Description | Resets the color wheel. |
| Parameters |
|
| Returns |
|
| Signature | cp.apple.finalcutpro.inspector.color.ColorWell:select() -> cp.apple.finalcutpro.inspector.color.ColorWell |
|---|---|
| Type | Method |
| Description | Selects this color well. |
| Parameters |
|
| Returns |
|