light
Create a light object
Description
light
creates a Light
object in the current
axes.
You cannot see Light
objects themselves, but you can see their effects
on any patch and surface objects present in the axes containing the lights. A number of
functions create patch and surface objects, including surf
, mesh
, pcolor
, fill
, and fill3
, as well as the surface
and patch
functions.
light(
sets light properties using
one or more name-value arguments. For example, you can specify the color of a light as
green by using Name,Value
)light("Color","green")
. For a list of properties, see
Light Properties.
lt = light(___)
returns a Light
object.
Use lt
to modify properties of the light after creating it. For a list
of properties, see Light Properties.
Examples
Input Arguments
Version History
Introduced before R2006a