Color To Hex Code (LogiX node)

From Neos Wiki
Jump to navigation Jump to search
Other languages:
Color To Hex Code
'ColorToHexCode' LogiX node
Inputs
  Color Color
  Bool IncludeAlpha
  Bool ShortForm
  String Prefix
Outputs
  Color *

The Color To Hex Code node outputs a hexadecimal code corresponding to the input RGB(A) Color.

Usage

Default Color output is #000000 which corresponds to black.


If IncludeAlpha is True (False by default) a trailing fourth pair of hexadecimal values is added which encodes the alpha input value.


If ShortForm is True (false by Default) the output corresponding to each of R, G and B (and alpha if IncludeAlpha is True) is scaled and rounded so as to be represented as a single hexadecimal digit.


The Prefix input is prepended to the output string (# by default).

Examples

Node Menu

Color
Back Blending Channels Black Body Color Color (RGBA) Color From Hex Code Color To Hex Code
From HSL From HSV Hue Invert Luminance To HSL To HSV