Class ScreenShape


  • public class ScreenShape
    extends ScreenLED
    Allows the use of an arbitrary 2D or 3D shape to represent an LED

    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 ScreenShape for your sketch, use the PixelTeleporter class method ScreenShapeFactory().

    • Method Detail

      • setOpacity

        public void setOpacity​(int o)
        Set opacity of current shape. It will be updated the next time the shape is drawn.
        Parameters:
        o - opacity for this object (0-255, default == 255)
      • draw2D

        public void draw2D()