openscad-playground
openscad-playground copied to clipboard
Color
According to the OpenSCAD User Manual/First Steps/Changing the color of an object example:
color([1,0,0]) cube([2,3,4]);
translate([3,0,0])
color([0,1,0]) cube([2,3,4]);
translate([6,0,0])
color([0,0,1]) cube([2,3,4]);
should look like this:
but in the openscad playground looks like this:
Having different pieces rendered in different colors is very useful when designing practical parts that may fit around other pieces.