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

ColorPalettes Op



ColorPalettes
Namespace: Ops.Color

Op author: tim

Test Patches: 1 Test

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


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



Inputs

Index (integer /Number)

Change it to get another color pallet

Smooth (boolean /Number)

Outputs

Texture (Object)

A texture containing the 5 colors of the current pallet

Color Array (Array)

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


Caught a mistake or want to contribute to the documentation?

Edit Documentation 

Ops.Color.ColorPalettes


Patches using ColorPalettes

  • Examples (2)
  • Public
  • My Patches