Color From Hex Code (LogiXノード)

From Neos Wiki
Revision as of 15:33, 10 February 2022 by Aesc (talk | contribs) (Created page with "Color From Hex Code (LogiXノード)")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Other languages:
English • ‎日本語
Color From Hex Code
'ColorFromHexCode' LogiX node
Inputs
  String HexCode
Outputs
  Color *
  Bool Parsed

The Color From Hex Code node outputs a color corresponding to the input HexCode.

Usage

Hexadecimal color codes are commonly used to specify RGB(A) colors in text format, particularly for usage on webpages and rich text.


The input HexCode string can include, but does not require, a leading #. If there are only 3 hex values (i.e. only RGB is specified) the output alpha value is 1.


The Parsed output indicates whether the HexCode can be successfully parsed to a color.


The default output color is [0,0,0,0] which corresponds to completely transparent black. This is output whenever the input cannot be parsed as a valid HexCode.

Examples

Node Menu

Template:NodeMenu-Color/ja