HexToRGB_v2 Op

HexToRGB

Converts a hex color like #ff0000 to number values


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


Full Name
  • Ops.Color.HexToRGB_v2
Visibility
  • Core Op - Official cables op
License
  • MIT
Authorgithub








No op example found on this server

INPUT PORTS


Hex (String)

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

Bytes (Number:

<i>boolean</i>

)

<p>If <code>true</code> the output will be in range <code>[0..255]</code>, otherwise <code>[0..1]</code></p>

OUTPUT PORTS


R (Number)
G (Number)
B (Number)

Patches using HexToRGB_v2

  • Examples
  • Public
  • My Patches