light
Create a light object in axes.
📝Syntax
light()
light(ax, ...)
light(..., propertyName, propertyValue)
go = light(...)
📥Input Arguments
Parameter Description
ax target axes.
propertyName light property name.
propertyValue light property value.
📤Output Arguments
Parameter Description
go a graphics object: light type.
📄Description

light creates a light object in axes. Visible light objects affect surface and patch objects in the same axes when their lighting properties are enabled.

See light properties for the complete property list.

💡Examples
f = figure();
surf(peaks(30), 'EdgeColor', 'none', 'FaceLighting', 'gouraud');
light('Position', [1 -1 1]);
material('shiny');
view(35, 28);
Example illustration
🔗See Also
light propertieslightingmaterialsurf
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub