Color by code

Hi All,

Is there a specific node to get a color based on code i.e where I input (1,2,3,…) and get (red, yellow, green ,cyan…). The only node I have seen is color pallete where I select from a list.

Hi!

If you want to pick by RGB values
image

Or if you want to select by name (clockwork package)

image

You could make if statements, or use a small dict to link colors to your number input

1 Like

You can also build a list of the colors (using by ARGB or via the pallet), and then use a List.GetItemAtIndex.

1 Like