We're excited and proud to launch Thingiverse Apps. Learn More about what this means to you.
This is a small utility to convert hue-saturation-value colors into RGB colors for use with OpenSCAD's color() module.
Check out the instructions tab to see more detail.
[Edit: fixed a bug where hue was actually being set by 0-360 not 0.0 - 1.0]
To use it in your own project, download the .scad and put it in your openscad library folder or in the same folder as the project you are using it in. Then, at the top of your script just type:
We've also included this in Customizer! Include it in your customizers by typing:
the useful function in this lib is:
function hsvToRGB(h, s, v, a)
give this function a hue, saturation, value, and alpha between 0.0 and 1.0 and it will return a vector with RGBA values in [r, g, b, a] format with values between 0.0 and 1.0
HSV to RGB OpenSCAD Library by thingiverse is licensed under the Creative Commons - Attribution - Share Alike license.
So what's this mean?
We're sure thingiverse would love to see what you've printed - take a photo and share it on Thingiverse as a Make.
To post a Make simply visit this Thing again and click I Made One to start uploading your photo. You can also download the Thingiverse Mobile app (available via Google Play and Apple App Store) to take a photo and upload your Make right from the app!