beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
Ops.Color.HexToRGB

HexToRGB
op id:45087567-c32c-4cac-b8b1-3e2f2a640938
Converts a hex color like `#ff0000` to number values

summary (oneliner)

The resulting colors will be in range [0..1].
If Bytes is set to true the colors will be in range [0..255].

doc

youtube id

collections

related ops

Inputs

Hex (Number)

A hex color, e.g. #ff0000 or 00ff00 (you can omit the # character if you want)


Bytes (Number)

If true the output will be in range [0..255], otherwise [0..1]


Outputs

R (Number)

The red amount


G (Number)

The green amount


B (Number)

The blue amount


Credits

Caught a mistake or want to contribute to the documentation?


Edit this documentcancel save

Examples using HexToRGB

Public Patches using HexToRGB