Package pixelTeleporter.library
Class ScreenLED
- java.lang.Object
-
- pixelTeleporter.library.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().
-
-
Constructor Summary
Constructors Constructor Description ScreenLED(PixelTeleporter parent)ScreenLED(PixelTeleporter parent, float x, float y)ScreenLED(PixelTeleporter parent, float x, float y, float z)
-
Method Summary
Modifier and Type Method Description voiddraw()voiddraw3D()intgetBrightness()intgetIndex()intrenderAssist()Translates ScreenLED to center and returns an int containing the pixel's current RGB color.voidsetIndex(int n)
-
-
-
Constructor Detail
-
ScreenLED
public ScreenLED(PixelTeleporter parent)
-
ScreenLED
public ScreenLED(PixelTeleporter parent, float x, float y)
-
ScreenLED
public ScreenLED(PixelTeleporter parent, float x, float y, 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:
-
-