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

Texture2ColorArray_v2 Op

Namespace: Ops.Gl

Op author: pandur

Test Patches: 1 Test

extract colors from a texture

This op will take an incoming texture and convert each color pixel value to an Array 4 (RGBA).

When using 32bit textures your array values will be in the range of 0.0-1.0.
8bit textures will have values of 0-255.

Be careful with using high resolution textures. For example a texture of only 100x100 pixel will result in 40,000 values:
Red 10,000
Green 10,000
Blue 10,000
Alpha 10,000


update (Trigger)

Trigger the op

texture (Object)

texture in to turn into an array. Beware of high resolutions.

Format index (integer /Number)


trigger (Trigger)

Trigger out

Colors (Array)

Outputs the RGBA arrays as one large array

Floating Point (boolean Number)

If HDR is enable on Image compose this will be true else false

Caught a mistake or want to contribute to the documentation?

Edit Documentation 

field / array unpack4 example

Youtube Video Tutorial

Patches using Texture2ColorArray_v2

  • Examples
  • Public
  • My Patches


cloned op from Ops.Gl.Texture2ColorArray
2023-02-03 - pandur
added core lib: cgl_pixelreader
2023-02-03 - pandur
renameOps.User.pandur.Texture2ColorArray2 renamed to Ops.Gl.Texture2ColorArray_v2
2023-02-03 - pandur