Class LXDynamicColor

All Implemented Interfaces:
LXLoopTask, LXPath, LXSerializable, LXOscComponent, LXParameterListener

public class LXDynamicColor extends LXModulatorComponent implements LXOscComponent
A dynamic color is a color that has a few different settings that allows it to either be fixed or to change its value over time.
  • Field Details

  • Constructor Details

    • LXDynamicColor

      public LXDynamicColor(LXSwatch swatch)
    • LXDynamicColor

      protected LXDynamicColor(LXSwatch swatch, int initialColor)
  • Method Details

    • getSwatch

      public LXSwatch getSwatch()
    • getPath

      public String getPath()
      Description copied from class: LXComponent
      Accessor for the path of this object. Returns the path this component was registered with. Some subclasses may override this if path structure is dynamic.
      Specified by:
      getPath in interface LXPath
      Overrides:
      getPath in class LXComponent
      Returns:
      path of this component relative to its parent
    • getIndex

      public int getIndex()
    • getBasis

      public double getBasis()
    • getHue

      public double getHue()
      Gets the hue of the current dynamic color. This will return a valid value even if brightness is all the way down and the color is black.
      Returns:
      Hue
    • getHuef

      public float getHuef()
      Gets the hue of the current dynamic color. This will return a valid value even if brightness is all the way down and the color is black.
      Returns:
      Hue
    • getSaturation

      public float getSaturation()
      Gets the saturation of the current dynamic color. This will return a valid value even if brightness is all the way down and the color is black.
    • getBrightness

      public float getBrightness()
    • getColor

      public int getColor()
      Gets the current value of this dynamic color
      Returns:
      Color, which may be blending or oscillating different options