ProtoFlux:ColorToHexCode: Difference between revisions

From Resonite Wiki
the bug was patched a while ago part 2
m YoshBot moved page ProtoFlux:Color To Hex Code to ProtoFlux:ColorToHexCode: Automated: removing spaces from ProtoFlux namespace
 
(No difference)

Latest revision as of 23:47, 20 August 2025

Color To Hex Code
Color
*
ShortForm
IncludeAlpha
Prefix
Colors

Color To Hex Code converts a Color to a string hex color code such as "#FFAABC".

Inputs

Color (Color)

The color to convert. Color components are clamped to the range 0-1.

ShortForm (Bool)

If true, convert to a short form such as "#FAC" instead of "#FFAACC".

IncludeAlpha (Bool)

If true, include the alpha channel as the last component.

Prefix (String)

The string to prefix the color code with. Defaults to "#".

Outputs

* (String)

The resulting hex code.

Gallery

References