kcl-std → functions → appearance

appearanceFunction in std::solid

Set the appearance of a solid. This only works on solids, not sketches or individual paths.

This will work on any solid, including extruded solids, revolved solids, and shelled solids.

Arguments

NameTypeDescriptionRequired
solids[Solid; 1+] or ImportedGeometryThe The solid(s) whose appearance is being set.Yes
colorstringColor of the new material, a hex string like '#ff0000'.Yes
metalnessnumber(_)Metalness of the new material, a percentage like 95.7.No
roughnessnumber(_)Roughness of the new material, a percentage like 95.7.No

Returns

[Solid; 1+] or ImportedGeometry

Examples

Found a typo?