ColorPalettes Op

ColorPalettes

Contains a collection of nice color palettes output to texture or array via index


<p>Outputs a harmonic color pallet. By changing the <code>Index</code> value, you will get another one. The resulting <code>Color Array</code> contains 15 values (5 × 3) – so 5 colors with a red, green and blue value between <code>0</code> and <code>1</code>. The resulting array looks like this: <code>[c1red, c1green, c1blue, c2red, c2green, c2blue, …]</code>. You probably want to connect the <code>Color Array</code> port to an <a href="/op/Ops.Array.Array3GetNumbers">Ops.Array.Array3GetNumbers</a> op, to get the r, g, and b values for one color out of the array.<br>Or use the <a href="/op/Ops.Array.InterpolateNumbersArray3">Ops.Array.InterpolateNumbersArray3</a> op to interpolate smoothly between the 5 colors</p>


Full Name
  • Ops.Color.ColorPalettes
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorgithubTest Patches


INPUT PORTS


Index (Number:

<i>integer</i>

)

<p>Change it to get another color pallet</p>

Smooth (Number:

<i>boolean</i>

)

OUTPUT PORTS


Texture (Object)

<p>A texture containing the 5 colors of the current pallet</p>

Color Array (Array)

<p>The color array containing 5 colors (15 values in total, 3 values per color – r, g and b)</p>


Patches using ColorPalettes

  • Examples
  • Public
  • My Patches