I tried looking to see if Godot had any existing functions to do this but there does not seem to be, unless I'm looking for the wrong thing.

Ideally, I want a function to turn HTML/Hex colors back into RGB versions. Like turning FFFFFF back to (255, 255, 255). Anyone have any pointers?

The easiest way would be to just make a Color object and read off the r, g, and b properties.

var c = Color('ffffff') printt(c.r 255, c.g 255, c.b * 255)

Huh, that is actually pretty easy. Thanks!

2 years later