ColorArray

Read with AI
All docs in one file (llms-full.txt)
ColorArray #Color #Node
ColorArray

Holds a list of colors (a palette) on the node and outputs the single color specified by Index. The index wraps by the modulo of the element count, so it returns to the start even past the range. Negative values also wrap around to the correct position by adding the element count. Running a beat trigger through Counter and plugging it into Index lets you cycle the palette every beat.

  • Index — the position to select. Wraps by modulo (default 0)
  • The initial palette is two colors, white and black
  • + Add on the node appends white to the end, and - on each row deletes it. Clicking the color square opens and closes that row’s picker (alpha editable)
  • The header shows the currently selected position, like [0]

If the whole palette is deleted so it is empty, the output becomes a fully transparent color (RGBA all 0) and the header shows (empty). It is built to send a value explicitly even when empty, so that no stale color remains downstream.

Input ports

Port IDType
Indexint

Output ports

Port IDType
ColorColor

Scriptable members

PathType
indexInputint

Synapse Apps (scripting)

await synapse.modules.create({ type: "ColorArray" })

Also referenced from