Created page with " {{#Invoke:ProtoFlux|GenerateUI |Name=Color XFrom Hex Code |Category=Colors |Inputs= [ {"Name":"HexCode", "Type":"String"} ] |Outputs= [ {"Name":"Color", "Type":"colorX"}, {"Name":"Parsed", "Type":"bool"} ] |}} Color From Hex Code is a ProtoFlux node that parses a [https://en.wikipedia.org/wiki/Web_colors hex color code] such as "FFAEBB" into a ColorX. == Inputs == === HexCode (String) === The hex code to turn into a color. Turns this..." |
m YoshBot moved page ProtoFlux:ColorX From Hex Code to ProtoFlux:ColorXFromHexCode: Automated: removing spaces from ProtoFlux namespace |
(No difference)
|
Latest revision as of 23:45, 20 August 2025
Color XFrom Hex Code
Colors
Color From Hex Code is a ProtoFlux node that parses a hex color code such as "FFAEBB" into a ColorX.
Inputs
HexCode (String)
The hex code to turn into a color. Turns this hex code into a color. The code must be a "#" followed by 3, 4, 6 or 8 hexadecimal digits. The 4 and 8 digit forms specify an alpha component, if not given the alpha component is taken to be 1.
Outputs
Color (ColorX)
A color made from the provided hex code. This value is not defined and may have nonsense values if parsing failed (Parsed = false).
Beware: the resulting color always has the Linear color profile, which is contrary to how hex color codes are usually interpreted.[1]
Parsed (bool)
True if parsing succeeded.
See Also
- Color From Hex Code: for the Color type.