Class TestPattern

All Implemented Interfaces:
LXEffect.Container, LXComponent.Renamable, LXLoopTask, LXPath, LXPresetComponent, LXSerializable, LXMidiListener, LXModulationContainer, LXOscComponent, LXParameterListener

@LXCategory("Test") @Description("Utility to address and locate pixels") public class TestPattern extends LXPattern
Braindead simple test pattern that iterates through all the nodes turning them on one by one in fixed order.
  • Field Details

  • Constructor Details

    • TestPattern

      public TestPattern(LX lx)
  • Method Details

    • onParameterChanged

      public void onParameterChanged(LXParameter p)
      Description copied from class: LXComponent
      Subclasses are free to override this if desired. It will automatically fire for any listenable parameter that is registered with this component.
      Specified by:
      onParameterChanged in interface LXParameterListener
      Overrides:
      onParameterChanged in class LXComponent
      Parameters:
      p - Parameter that has a value change
    • onModelChanged

      protected void onModelChanged(LXModel model)
      Description copied from class: LXModelComponent
      Subclasses should override to handle changes to which model they are addressing. This method will be invoked at the start of the next core loop invocation, after the buffer has been updated.
      Overrides:
      onModelChanged in class LXModelComponent
      Parameters:
      model - New model
    • run

      public void run(double deltaMs)
      Description copied from class: LXPattern
      Main pattern loop function. Invoked in a render loop. Subclasses must implement this function.
      Specified by:
      run in class LXPattern
      Parameters:
      deltaMs - Number of milliseconds elapsed since last invocation