I want to make myself a fucntion that sets opengl-drawcolor from a given color in hex, i.e. setGlColor ("#AABBCC")
I read that Int("$AA") gives me a conversion from hex to int, but how do i slice the incoming string up in three parts?
i thought something like string[0]+string[1] would work, but the problem is that string[index] just gives me an ASCII-number, not the character itself
I read that Int("$AA") gives me a conversion from hex to int, but how do i slice the incoming string up in three parts?
i thought something like string[0]+string[1] would work, but the problem is that string[index] just gives me an ASCII-number, not the character itself