I spent about an hour coding this because I couldn't see any snippets like it. Upon checking again I saw SColor can be constructed with 0x hex values anyway. SColor must handle this better than I can.
I didn't finish this off for both 6 and 8 inputs. One problem I found was entering "AABB;;" by accident. ctoul16 should ignore the semicolon but doesn't. This calculation gives a value of about 600 billion.
Why would ctoul16 return a u32 if the value can only return 255 max? Neither can ctoul16 handle a string.
Last edited by wizard4 on Wed Feb 14, 2024 10:56 am, edited 2 times in total.
One of my observations during my Half-Life/Hammer development time was finding the light color that Valve used for outdoor lighting. I came up with one solution easily remembered but slightly immature:
color = irr::video::SColor(0xFAECE5)
Faeces definition - "waste matter remaining after food has been digested, discharged from the bowels; excrement"