@LXCategory(value="Color") public class ColorizeEffect extends LXEffect implements GradientUtils.GradientFunction
Modifier and Type | Class and Description |
---|---|
static class |
ColorizeEffect.ColorMode |
static class |
ColorizeEffect.SourceMode |
LXEffect.Placeholder, LXEffect.Profiler
LXLayeredComponent.Buffered
LXComponent.Renamable
LXSerializable.Utils
enabled, enabledDamped, enabledDampingAttack, enabledDampingRelease, hasDamping, profiler
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 |
---|
ColorizeEffect(LX lx) |
Modifier and Type | Method and Description |
---|---|
int |
getGradientColor(float lerp) |
LXDynamicColor |
getSwatchColor() |
void |
onParameterChanged(LXParameter p)
Subclasses are free to override this if desired.
|
protected void |
run(double deltaMs,
double enabledAmount)
Implementation of the effect.
|
disable, dispose, enable, getBus, getIndex, getPath, isEnabled, isRemoteControl, onDisable, onEnable, onLoop, setBus, setDamping, setDampingTime, setDampingTime, setIndex, toggle
getCategory, getCrash, getCrashStackTrace, getDeviceVersion, getModulationEngine, getRemoteControls, loop, save, setRemoteControls
addColor, addColor, addLayer, afterLayers, blendColor, blendColor, clearColors, 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<ColorizeEffect.SourceMode> source
public final EnumParameter<GradientUtils.BlendMode> blendMode
public final EnumParameter<ColorizeEffect.ColorMode> colorMode
public final ColorParameter color1
public final ColorParameter color2
public final CompoundParameter gradientHue
public final CompoundParameter gradientSaturation
public final CompoundParameter gradientBrightness
public final DiscreteParameter paletteIndex
public final DiscreteParameter paletteStops
public ColorizeEffect(LX lx)
public void onParameterChanged(LXParameter p)
LXComponent
onParameterChanged
in interface LXParameterListener
onParameterChanged
in class LXComponent
p
- Parameter that has a value changepublic LXDynamicColor getSwatchColor()
public int getGradientColor(float lerp)
getGradientColor
in interface GradientUtils.GradientFunction
protected void run(double deltaMs, double enabledAmount)
LXEffect
LX library by Mark C. Slee. © 2012-2020