Package | Description |
---|---|
heronarts.lx.color |
Classes for color manipulation, blending, color values.
|
heronarts.lx.command |
Modifier and Type | Field and Description |
---|---|
LXSwatch |
LXPalette.swatch
The active color swatch
|
Modifier and Type | Field and Description |
---|---|
List<LXSwatch> |
LXPalette.swatches
A read-only list of all the saved color swatches
|
Modifier and Type | Method and Description |
---|---|
LXSwatch |
LXSwatch.addListener(LXSwatch.Listener listener)
Registers a listener to the swatch
|
LXSwatch |
LXPalette.addSwatch(JsonObject swatchObj,
int index)
Adds a swatch at the given index
|
LXSwatch |
LXDynamicColor.getSwatch() |
LXSwatch |
LXSwatch.removeListener(LXSwatch.Listener listener)
Unregisters a listener to the swatch
|
LXSwatch |
LXPalette.saveSwatch()
Saves the current swatch to the list of saved swatches
|
Modifier and Type | Method and Description |
---|---|
void |
LXSwatch.Listener.colorAdded(LXSwatch swatch,
LXDynamicColor color) |
void |
LXSwatch.Listener.colorRemoved(LXSwatch swatch,
LXDynamicColor color) |
LXPalette |
LXPalette.moveSwatch(LXSwatch swatch,
int index)
Moves a saved swatch to a different position in the list
|
LXPalette |
LXPalette.removeSwatch(LXSwatch swatch)
Removes a swatch from the color palette's saved swatch list
|
LXPalette |
LXPalette.setSwatch(LXSwatch swatch) |
void |
LXPalette.Listener.swatchAdded(LXPalette palette,
LXSwatch swatch) |
void |
LXPalette.Listener.swatchMoved(LXPalette palette,
LXSwatch swatch) |
void |
LXPalette.Listener.swatchRemoved(LXPalette palette,
LXSwatch swatch) |
Constructor and Description |
---|
LXDynamicColor(LXSwatch swatch) |
Constructor and Description |
---|
AddColor(LXSwatch swatch) |
MoveSwatch(LXSwatch swatch,
int toIndex) |
RemoveSwatch(LXSwatch swatch) |
SetSwatch(LXSwatch swatch) |
LX library by Mark C. Slee. © 2012-2020