Skip to content

lightangle

plot · scripts/plot/draw/lightangle.m

: lightangle (az, el)
: lightangle (ax, az, el)
: lightangle (hlight, az, el)
: h = lightangle (…)

Create a light, or move an existing one, by spherical angles.

The azimuth az and elevation el (in degrees, any real value) are measured relative to the camera of the axes. A new light is an infinite white light placed in the current (or the given) axes; with a light handle that light is moved. The light handle is returned.