@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.Profiler
LXLayeredComponent.Buffered
LXComponent.Renamable
LXSerializable.Utils
autoCycleEligible, profiler, runMs
controlsExpanded, crashed, DEVICE_CATEGORY_NAME_SORT, DEVICE_VERSION_UNSPECIFIED, KEY_DEVICE_VERSION, modulation, modulationExpanded
colors, layers, palette
model
modulators
controlSurfaceSemaphore, 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, toggleAutoCycleEligible
getCategory, getCrash, getCrashStackTrace, getDeviceVersion, getModulationEngine, getRemoteControls, isRemoteControl, loop, save, setRemoteControls
addColor, addColor, addLayer, afterLayers, blendColor, blendColor, clearColors, dispose, getBuffer, getColor, getColor, getColors, getLayers, removeLayer, setBuffer, setBuffer, setColor, setColor, setColor, setColors, subtractColor
getModel, onModelChanged, setModel
addModulator, addModulator, addModulator, constructProfiler, getModulator, getModulators, moveModulator, removeModulator, startModulator
addArray, 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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getOscAddress, handleOscMessage
aftertouchReceived, controlChangeReceived, noteOffReceived, noteOnReceived, pitchBendReceived, programChangeReceived
get, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameter
public 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)
LXComponent
onParameterChanged
in interface LXParameterListener
onParameterChanged
in class LXComponent
p
- Parameter that has a value changepublic LXDynamicColor getPrimaryColor()
public int getGradientColor(float lerp)
getGradientColor
in interface GradientUtils.GradientFunction
LX library by Mark C. Slee. © 2012-2020