The expected input format for the color is "RRGGBBAA"
Note:
- uses std::stoul() to convert hex as string to unsigned long. No error is handled for the conversion so a bad format there will result in crash :D PEBKAC
- color struct are not memcopied but relies instead on struct copy via assignment to be handled correctly (I think it should)
该提问来源于开源项目:Gargaj/Bonzomatic