Gradient color input problem

The color input on the gradient component does not accept numerical input. Usually double clicking would allow entering a number. Can this be fixed?

Hi Martin, it’s not a solution for the specific problem, but I recently wrote this small function for generating color gradients by sampling (using linear or cosine interpolation) along an input list of colors (i.e. to get simple and explicit control, and for implementation in GHPython scripts). Might help: (8.9 KB)


I hate setting up gradients so this is a great solution!

Thanks Anders

1 Like

Hi Martin, I just realised I forgot to wrap the color output type (since I had only ever implemented the function inside a larger script), which speeds things up quite a bit when generating large output lists: (8.6 KB)