Function cc3bFromHexString

#include <Geode/utils/cocos.hpp>geode::Result<cocos2d::ccColor3B>cc3bFromHexString(,
boolpermissive
)

Parse a ccColor3B from a hexadecimal string. The string may contain a leading ‘#’

Parameters

hexValue

The string to parse into a color

permissive

If true, strings like "f" are considered valid representations of the color white. Useful for UIs that allow entering a hex color. Empty strings evaluate to pure white
Return value
A ccColor3B if it could be successfully parsed, or an error indicating the failure reason
Examples0