public abstract class LXBlend extends LXModulatorComponent
| Modifier and Type | Class and Description |
|---|---|
static class |
LXBlend.FunctionalBlend |
LXModulatorComponent.ProfilerLXComponent.Placeholder, LXComponent.RenamableLXSerializable.Utilsmodulators, profilercontrolSurfaceSemaphore, KEY_CLASS, KEY_COMPONENT_ID, KEY_ID, KEY_PARAMETER_PATH, KEY_PATH, label, lx, modulationColor| Modifier and Type | Method and Description |
|---|---|
abstract void |
blend(int[] dst,
int[] src,
double alpha,
int[] output)
Blends the src buffer onto the destination buffer at the specified alpha amount.
|
void |
blend(int[] dst,
int[] src,
double alpha,
LXBuffer buffer) |
String |
getLabel()
Gets the name of this blend.
|
String |
getName()
Returns the name of this blend, to be shown in UI
|
void |
lerp(int[] from,
int[] to,
double amt,
int[] output)
Transitions from one buffer to another.
|
void |
onActive()
Subclasses may override this method.
|
void |
onInactive()
Subclasses may override this method.
|
LXBlend |
setName(String name)
Sets name of this blend mode
|
String |
toString()
Name of the blend
|
addModulator, addModulator, addModulator, constructProfiler, dispose, getModulator, getModulators, loop, moveModulator, removeModulator, startModulatoraddArray, addChild, addInternalParameter, addParameter, addParameter, contains, copyParameters, getChild, getComponentName, getComponentName, getComponentName, getId, getLX, getOscAddress, getOscLabel, getOscPath, getParameter, getParameters, getParent, getPath, handleOscMessage, load, loadParameters, onParameterChanged, removeParameter, removeParameter, save, saveParameters, setParent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitget, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameterprotected LXBlend(LX lx)
public LXBlend setName(String name)
name - UI name of blendpublic String getName()
public String getLabel()
getLabel in interface LXPathgetLabel in class LXComponentpublic String toString()
toString in class LXComponentpublic void blend(int[] dst,
int[] src,
double alpha,
LXBuffer buffer)
public abstract void blend(int[] dst,
int[] src,
double alpha,
int[] output)
dst - Destination buffer (lower layer)src - Source buffer (top layer)alpha - Alpha blend, from 0-1output - Output buffer, which may be the same as src or dstpublic void lerp(int[] from,
int[] to,
double amt,
int[] output)
from - First bufferto - Second bufferamt - Interpolation from-to (0-1)output - Output buffer, which may be the same as from or topublic void onActive()
public void onInactive()
LX library by Mark C. Slee. © 2012-2020