Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
111 lines (91 loc) · 8.82 KB

cp.apple.finalcutpro.inspector.color.ColorWell.md

File metadata and controls

111 lines (91 loc) · 8.82 KB

docs » cp.apple.finalcutpro.inspector.color.ColorWell


Represents a single Color Well in the Color Wheels Inspector.

API Overview

API Documentation

Constants

Signature cp.apple.finalcutpro.inspector.color.ColorWell.KEY_PRESS
Type Constant
Description This can be used with nudge to shift by the same distance

Functions

Signature cp.apple.finalcutpro.inspector.color.ColorWell.matches(element)
Type Function
Description Checks if the specified element is a Color Well.
Parameters
  • element - The element to check
Returns
  • true if the element is a Color Well.

Constructors

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
  • parent - The parent object
  • uiFinder - Returns the axuielement that represents the color well.
  • hueShift - The amount to shift the hue.
Returns
  • A new ColorWell instance.

Fields

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.

Methods

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
  • right - The number of steps to shift right. May be negative to shift left.
  • up - The number of pixels to shift down. May be negative to shift down.
Returns
  • The ColorWell instance.
Signature cp.apple.finalcutpro.inspector.color.ColorWell:reset() -> self
Type Method
Description Resets the color wheel.
Parameters
  • None
Returns
  • The ColorWell instance.
Signature cp.apple.finalcutpro.inspector.color.ColorWell:select() -> cp.apple.finalcutpro.inspector.color.ColorWell
Type Method
Description Selects this color well.
Parameters
  • None
Returns
  • The ColorWell instance.