ambient

ambient-float

ambient-int

emissive

emissive-float

emissive-int

shininess

specular

ambient

Arguments
[rgb][x y z]
Docstring
Sets the ambient reflectance for shapes drawn to the screen. This
is combined with the ambient light component of environment. The
color components set through the parameters define the
reflectance. For example in the default color mode, setting x=255,
y=126, z=0, would cause all the red light to reflect and half of the
green light to reflect. Used in combination with emissive, specular,
and shininess in setting the material properties of shapes.
Works only inside sketch functions?
Yes
Original Processing method
ambient()

ambient-float

Arguments
[gray][x y z]
Docstring
Sets the ambient reflectance for shapes drawn to the screen. This
is combined with the ambient light component of environment. The
color components set through the parameters define the
reflectance. For example in the default color mode, setting x=255,
y=126, z=0, would cause all the red light to reflect and half of the
green light to reflect. Used in combination with emissive, specular,
and shininess in setting the material properties of shapes.
Works only inside sketch functions?
Yes
Original Processing method
ambient()

ambient-int

Arguments
[rgb]
Docstring
Sets the ambient reflectance for shapes drawn to the screen. This
is combined with the ambient light component of environment. The rgb
color components set define the reflectance. Used in combination
with emissive, specular, and shininess in setting the material
properties of shapes.
Works only inside sketch functions?
Yes
Original Processing method
ambient()

emissive

Arguments
[r g b][c]
Docstring
Sets the emissive color of the material used for drawing shapes
drawn to the screen. Used in combination with ambient, specular, and
shininess in setting the material properties of shapes.

If passed one arg - it is assumed to be an int (i.e. a color),
multiple args are converted to floats.
Works only inside sketch functions?
Yes
Original Processing method
emissive()

emissive-float

Arguments
[r g b][float-val]
Docstring
Sets the emissive color of the material used for drawing shapes
 drawn to the screen. Used in combination with ambient, specular, and
 shininess in setting the material properties of shapes. Converts all
 args to floats
Works only inside sketch functions?
Yes
Original Processing method
emissive()

emissive-int

Arguments
[int-val]
Docstring
Sets the emissive color of the material used for drawing shapes
drawn to the screen. Used in combination with ambient, specular, and
shininess in setting the material properties of shapes. Converts all
args to ints
Works only inside sketch functions?
Yes
Original Processing method
emissive()

shininess

Arguments
[shine]
Docstring
Sets the amount of gloss in the surface of shapes. Used in
combination with ambient, specular, and emissive in setting
the material properties of shapes.
Works only inside sketch functions?
Yes
Original Processing method
shininess()

specular

Arguments
[gray][x y z]
Docstring
Sets the specular color of the materials used for shapes drawn to
the screen, which sets the color of hightlights. Specular refers to
light which bounces off a surface in a perferred direction (rather
than bouncing in all directions like a diffuse light). Used in
combination with emissive, ambient, and shininess in setting
the material properties of shapes.
Works only inside sketch functions?
Yes
Original Processing method
specular()