String contraining HEX color to Color value

I have a txt file that contains colors in the form of #01abEf and I want to load them and turn into processing color variable type. How can I do this?

How can I turn “#FF00FF” to color(255,0,255) ?

1 Like

Hello,

Take a look at:

You will also have to restore the alpha…

https://processing.org/reference/color_datatype.html

I am confident you can do the rest…

:)

1 Like