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