Class ScreenLED

  • Direct Known Subclasses:
    ScreenShape

    public class ScreenLED
    extends Object
    Represents individual "LEDs".

    x,y,z are positional coordinates in world space, and index is the LED's index in the incoming RGB pixel data stream.

    To create a ScreenLED for your sketch, use the PixelTeleporter class method ScreenLEDFactory().

    • Field Detail

      • x

        public float x
      • y

        public float y
      • z

        public float z
    • Method Detail

      • setIndex

        public void setIndex​(int n)
      • getIndex

        public int getIndex()
      • draw

        public void draw()
      • draw3D

        public void draw3D()
      • getBrightness

        public int getBrightness()
      • renderAssist

        public int renderAssist()
        Translates ScreenLED to center and returns an int containing the pixel's current RGB color. Calling program is responsible for pushMatrix/popMatrix;
        Returns: