Skip to content

light

plot · scripts/plot/draw/light.m

: h = light ()
: h = light (prop, val, …)
: h = light (ax, …)

Create a light object in the current or given axes.

The properties are Color (default white), Position (a 3-element vector, default [1 0 1]), Style ("infinite" or "local"), Visible and Tag; Parent selects the axes. The handle of the new light is returned.