Web colors & TOPs [hex ⇌ rgba]

There are two components in this example:

hex_to_rgba
convert color values from hexadecimal in a single DAT to RGBA in multiple TOPs

rgba_to_hex
convert color values from RGBA in multiple TOPs to hexadecimal in a single DAT

I have been meaning to build some reusable components for parsing hex color values into TOPs en masse for some time.

Though, this particular approach was prompted by a message from zombience on the touchdesigner slack channel #how_do_i.
touchdesigner.slack.com/archive … 9020000052

cheers
web_colors_example.toe (6.97 KB)

5 Likes