Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color #7

Open
joeskeen opened this issue Aug 2, 2023 · 3 comments · May be fixed by #37
Open

Color #7

joeskeen opened this issue Aug 2, 2023 · 3 comments · May be fixed by #37

Comments

@joeskeen
Copy link

joeskeen commented Aug 2, 2023

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.

@t-paul
Copy link
Member

t-paul commented Aug 6, 2023

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.

@enemali
Copy link

enemali commented Feb 10, 2024

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

@Scopeuk
Copy link

Scopeuk commented Jul 2, 2024

As noted in #34 (comment) this is starting to be integrated. It is still under development.

@ochafik ochafik linked a pull request Jul 8, 2024 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants