openscad-playground icon indicating copy to clipboard operation
openscad-playground copied to clipboard

Color

Open joeskeen opened this issue 2 years ago • 3 comments

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: image

but in the openscad playground looks like this: image

Having different pieces rendered in different colors is very useful when designing practical parts that may fit around other pieces.

joeskeen avatar Aug 02 '23 00:08 joeskeen

OpenSCAD only supports colors in Preview mode and the WASM version does not support this mode at all. So for the time being we can only document that somewhere.

The OpenGL updates that are currently in progress might bring Preview support, full color mode is quite high on the wishlist but unlikely to happen any time soon unless someone jumps at that topic.

t-paul avatar Aug 06 '23 20:08 t-paul

adding colors will be very useful , i want to use this to teach kids

enemali avatar Feb 10 '24 12:02 enemali

As noted in https://github.com/openscad/openscad-playground/issues/34#issuecomment-2203209642 this is starting to be integrated. It is still under development.

Scopeuk avatar Jul 02 '24 17:07 Scopeuk