@LXCategory(value="Color") public class GradientPattern extends LXPattern implements GradientUtils.GradientFunction
| Modifier and Type | Class and Description |
|---|---|
static class |
GradientPattern.ColorMode |
static class |
GradientPattern.CoordinateMode |
LXPattern.Placeholder, LXPattern.ProfilerLXLayeredComponent.BufferedLXComponent.RenamableLXSerializable.UtilsautoCycleEligible, profiler, runMscontrolsExpanded, crashed, DEVICE_CATEGORY_NAME_SORT, DEVICE_VERSION_UNSPECIFIED, KEY_DEVICE_VERSION, modulation, modulationExpandedcolors, layers, palettemodelmodulatorscontrolSurfaceSemaphore, KEY_CLASS, KEY_COMPONENT_ID, KEY_ID, KEY_PARAMETER_PATH, KEY_PATH, label, lx, modulationColor| Constructor and Description |
|---|
GradientPattern(LX lx) |
| Modifier and Type | Method and Description |
|---|---|
int |
getGradientColor(float lerp) |
LXDynamicColor |
getPrimaryColor() |
void |
onParameterChanged(LXParameter p)
Subclasses are free to override this if desired.
|
void |
run(double deltaMs)
Main pattern loop function.
|
clearInterval, getChannel, getIndex, getPath, hasInterval, isAutoCycleEligible, isInInterval, onActive, onInactive, onLoop, onTransitionEnd, onTransitionStart, setAutoCycleEligible, setChannel, setIndex, setInterval, toggleAutoCycleEligiblegetCategory, getCrash, getCrashStackTrace, getDeviceVersion, getModulationEngine, getRemoteControls, isRemoteControl, loop, save, setRemoteControlsaddColor, addColor, addLayer, afterLayers, blendColor, blendColor, clearColors, dispose, getBuffer, getColor, getColor, getColors, getLayers, removeLayer, setBuffer, setBuffer, setColor, setColor, setColor, setColors, subtractColorgetModel, onModelChanged, setModeladdModulator, addModulator, addModulator, constructProfiler, getModulator, getModulators, moveModulator, removeModulator, startModulatoraddArray, addChild, addInternalParameter, addParameter, addParameter, contains, copyParameters, getChild, getComponentName, getComponentName, getComponentName, getId, getLabel, getLX, getOscAddress, getOscLabel, getOscPath, getParameter, getParameters, getParent, handleOscMessage, load, loadParameters, removeParameter, removeParameter, saveParameters, setParent, toString, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetOscAddress, handleOscMessageaftertouchReceived, controlChangeReceived, noteOffReceived, noteOnReceived, pitchBendReceived, programChangeReceivedget, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameterpublic final EnumParameter<GradientPattern.ColorMode> colorMode
public final EnumParameter<GradientUtils.BlendMode> blendMode
public final ColorParameter fixedColor
public final ColorParameter secondaryColor
public final DiscreteParameter paletteIndex
public final DiscreteParameter paletteStops
public final CompoundParameter gradient
public final CompoundParameter gradientRange
public final EnumParameter<GradientPattern.CoordinateMode> xMode
public final EnumParameter<GradientPattern.CoordinateMode> yMode
public final EnumParameter<GradientPattern.CoordinateMode> zMode
public final CompoundParameter xAmount
public final CompoundParameter yAmount
public final CompoundParameter zAmount
public final CompoundParameter xOffset
public final CompoundParameter yOffset
public final CompoundParameter zOffset
public GradientPattern(LX lx)
public void onParameterChanged(LXParameter p)
LXComponentonParameterChanged in interface LXParameterListeneronParameterChanged in class LXComponentp - Parameter that has a value changepublic LXDynamicColor getPrimaryColor()
public int getGradientColor(float lerp)
getGradientColor in interface GradientUtils.GradientFunctionLX library by Mark C. Slee. © 2012-2020