algorithmic modeling for Rhino
Hi there.
I need to create a parametric gradient, meaning that I can autometically input colors without using standart gradient GUI component.
For now I succeed parsing and re-creating color from ARGB-s. It is not the best option - as gradient is linear in the RGB 3d space (simple remapping) which couse some brownish colors in the middle sometimes. Also, I cant imagine how to do it with 3 colors instead of 2. Shall I create an arc/besier with 3 points in rgb 3d and parse it back to rgb?
However, I am a bit stck with that as there is no more deconstruct/construct pairs fora an other color models. In fact, there is a serious lack of color deconstruction components. So I wonder, if there is any reason for that, (like, constrcting HSL but deconstructing into HSV) or it is just me the only one who needed that?
Tags:
I can't answer your question about HSV vs HSL - but here's an approach to dynamically creating gradients from a list of input colors. If you want all your colors evenly spaced, then you can just use the built in "interpolate" component and leave it at that - if you want to control the positions/stops of each color along the gradient, you'll need to do a bit more fancy footwork.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by