#cp.apple.finalcutpro.inspector.color.ColorWheel

Represents a single Color Well in the Color Wheels Inspector.


#API Overview

Constants - Useful values which cannot be changed

Functions - API calls offered directly by the extension

Constructors - API calls which return an object, typically one that offers API methods

Fields - Variables which can only be accessed from an object returned by a constructor

Methods - API calls which can only be made on an object returned by a constructor


#API Documentation

#Constants

Signaturecp.apple.finalcutpro.inspector.color.ColorWheel.TYPE
TypeConstant
DescriptionThe possible types of ColorWheels: MASTER, SHADOWS, MIDTONES, HIGHLIGHTS.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWheel.lua line 23

#Functions

Signaturecp.apple.finalcutpro.inspector.color.ColorWheel.matches(element)
TypeFunction
DescriptionChecks if the specified element is a Color Well.
Parameters
  • element - The element to check
Returns
  • true if the element is a Color Well.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWheel.lua line 38

#Constructors

Signaturecp.apple.finalcutpro.inspector.color.ColorWheel(parent, type) -> ColorWheel
TypeConstructor
DescriptionCreates a new ColorWheel instance, with the specified parent and type.
Parameters
  • parent - The parent object.
  • type - The type of color wheel. Must be one of the ColorWheel.TYPE values.
Returns
  • A new ColorWheel instance.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWheel.lua line 55

#Fields

Signaturecp.apple.finalcutpro.inspector.color.ColorWheel.brightnessValue <cp.prop: number>
TypeField
DescriptionThe current brightness value, as a number between -12 and 10.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWheel.lua line 135

Signaturecp.apple.finalcutpro.inspector.color.ColorWheel.colorOrientation <cp.prop: table>
TypeField
DescriptionProvides the orientation of the color as a table containing an up and right value.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWheel.lua line 120

Signaturecp.apple.finalcutpro.inspector.color.ColorWheel.colorPosition <cp.prop: point>
TypeField
DescriptionX/Y screen position for the current color value of the Color Well. This ignores the bounds of the
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWheel.lua line 112

Signaturecp.apple.finalcutpro.inspector.color.ColorWheel.colorValue <cp.prop: hs.drawing.color>
TypeField
DescriptionThe current color value, as a hs.drawing.color table.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWheel.lua line 98

Signaturecp.apple.finalcutpro.inspector.color.ColorWheel.puckPosition <cp.prop: point>
TypeField
DescriptionAbsolute X/Y screen position for the puck in the Color Well. Colours outside the bounds are clamped inside the color well.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWheel.lua line 105

Signaturecp.apple.finalcutpro.inspector.color.ColorWheel.reset <cp.ui.Button>
TypeField
DescriptionA Button that resets the color wheel values, if the ColorWheel is showing.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWheel.lua line 275

Signaturecp.apple.finalcutpro.inspector.color.ColorWheel.saturationValue <cp.prop: number>
TypeField
DescriptionThe current saturation value, as a number between 0 and 10.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWheel.lua line 128

#Methods

Signaturecp.apple.finalcutpro.inspector.color.ColorWheel.brightness <ValueIndicator>
TypeMethod
DescriptionReturns the brightness ValueIndicator for this ColorWheel.
Parameters
  • None
Returns
  • The brightness ValueIndicator instance.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWheel.lua line 251

Signaturecp.apple.finalcutpro.inspector.color.ColorWheel.colorWell <ColorWell>
TypeMethod
DescriptionReturns the ColorWell for this ColorWheel.
Parameters
  • None
Returns
  • The ColorWell instance.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWheel.lua line 212

Signaturecp.apple.finalcutpro.inspector.color.ColorWheel:doNudgeColor(right, up) -> cp.rx.go.Statement
TypeMethod
DescriptionA Statement that nudges the colorPosition by right/up values. Negative right values shift left, negative up values shift down. You may have decimal shift 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 Statement, resolving to true if successful.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWheel.lua line 300

Signaturecp.apple.finalcutpro.inspector.color.ColorWheel:doSelect() -> cp.rx.go.Statement
TypeMethod
DescriptionA Statement that attempts to select this ColorWheel.
Parameters
  • None
Returns
  • The Statement, resolving to true if selected, otherwise false.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWheel.lua line 195

Signaturecp.apple.finalcutpro.inspector.color.ColorWheel:doShow() -> cp.rx.go.Statement
TypeMethod
DescriptionA Statement that attempts to show the ColorWheel.
Parameters
  • None
Returns
  • The Statement, resolving to true if shown, false if not.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWheel.lua line 161

Signaturecp.apple.finalcutpro.inspector.color.ColorWheel:nudgeColor(right, up) -> self
TypeMethod
DescriptionNudges the colorPosition by right/up values. Negative right values shift left, negative up values shift down. You may have decimal shift 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 ColorWheel instance.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWheel.lua line 285

Signaturecp.apple.finalcutpro.inspector.color.ColorWheel.saturation <ValueIndicator>
TypeMethod
DescriptionReturns the saturation ValueIndicator for this ColorWheel.
Parameters
  • None
Returns
  • The saturation ValueIndicator instance.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWheel.lua line 227

Signaturecp.apple.finalcutpro.inspector.color.ColorWheel:select() -> cp.apple.finalcutpro.inspector.color.ColorWheel
TypeMethod
DescriptionShows and selects this color wheel.
Parameters
  • None
Returns
  • The ColorWheel instance.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWheel.lua line 181

Signaturecp.apple.finalcutpro.inspector.color.ColorWheel:show() -> self
TypeMethod
DescriptionShows the ColorWheel, if possible.
Parameters
  • None
Returns
  • The same ColorWheel instance, for chaining.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/color/ColorWheel.lua line 142