@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.ProfilerLXLayeredComponent.BufferedLXComponent.RenamableLXSerializable.Utilsenabled, enabledDamped, enabledDampingAttack, enabledDampingRelease, hasDamping, profilercontrolsExpanded, 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 |
|---|
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, togglegetCategory, getCrash, getCrashStackTrace, getDeviceVersion, getModulationEngine, getRemoteControls, loop, save, setRemoteControlsaddColor, addColor, addLayer, afterLayers, blendColor, blendColor, clearColors, 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<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)
LXComponentonParameterChanged in interface LXParameterListeneronParameterChanged in class LXComponentp - Parameter that has a value changepublic LXDynamicColor getSwatchColor()
public int getGradientColor(float lerp)
getGradientColor in interface GradientUtils.GradientFunctionprotected void run(double deltaMs,
double enabledAmount)
LXEffectLX library by Mark C. Slee. © 2012-2020