Color Texture

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

A node that outputs a RenderTexture with just one rectangle of the specified color placed on it. The output RT is at the global resolution (GlobalSettings), and the rectangle is drawn inside it. The color is specified with the color picker on the node, or from the Color port.

  • Size X / Size Y — the size of the rectangle (pixels). Default is 100×100. The sliders in the control UI are 1-1920 / 1-1080
  • Position X / Position Y — offset from the center (pixels). Default is 0,0. The sliders in the control UI are -960 to 960 / -540 to 540

The rectangle is drawn as a RawImage on a canvas, and that render result is copied to the output buffer every frame. The first RT flows to the output port 15 frames after initialization.

Input ports

Port IDType
ColorColor
Size Xfloat
Size Yfloat
Position Xfloat
Position Yfloat

Output ports

Port IDType
Render TextureRenderTexture

Scriptable members

PathType
sizeXInputfloat
sizeYInputfloat
posXInputfloat
posYInputfloat
sizeXfloat
sizeYfloat
posXfloat
posYfloat

Synapse Apps (scripting)

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