Pj3dLight
Create a simple light.
Usage:
Pj3dLight (Pj3d object)
Pj3dLight (Pj3d object, int r, int g, int b)
Returns:
Nothing
Example:
Pj3dLight light = new Pj3dLight(p);
light.setColor(20, 20, 20);
Download:
Pj3dText3D.pde
Methods:
setColor(int r, int g, int b)
→ Change the light color
setDirection(float x, float y, float z)
→ set the position of the light
<- back