a port of the Processing Visualization Language
Name

normal()

Description

Sets the current normal vector. This is for drawing three dimensional shapes and surfaces and specifies a vector perpendicular to the surface of the shape which determines how lighting affects it. Processing attempts to automatically assign normals to shapes, but since that's imperfect, this is a better option when you want more control. This function is identical to glNormal3f() in OpenGL.

Syntax
normal(nx,ny,nz)
Parameters
nx float: x direction
ny float: y direction
nz float: z direction
Returns None
Usage Web & Application
Related lights()
beginShape()
endShape()

This reference is licensed under the CC BY-NC-SA 2.0 license:

Creative Commons License
Fork me on GitHub