Language \ Environment \ Comparison
 
Index
 
  The Processing 1.0 _ALPHA_ Reference is a work in progress.
If you see any errors or have any comments, please write to: reas at groupc.net
Name  

light()

   
Examples  
... 

Description   Add a new light source. Each light has a location, color, and type as specified by the parameters passed into the function.
   
Syntax  
light(x, y, z, v1, v2, v3, type)
   
Parameters  
x   int or float: x-position of light source

y   int or float: y-position of light source

z   int or float: z-position of light source

v1   int or float: red (or hue) value for the light's color

v2   int or float: green (or saturation) value for the light's color

v3   int for float: blue (or brightness) value for the light's color

type   Either AMBIENT, DIFFUSE, or SPECULAR

   
Returns   none
   
Usage   Web & Application
   
Related   lights()
noLight()
   
© 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas