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 ID | Type |
Color | Color |
Size X | float |
Size Y | float |
Position X | float |
Position Y | float |
Output ports
| Port ID | Type |
Render Texture | RenderTexture |
Scriptable members
| Path | Type |
sizeXInput | float |
sizeYInput | float |
posXInput | float |
posYInput | float |
sizeX | float |
sizeY | float |
posX | float |
posY | float |
Synapse Apps (scripting)
await synapse.modules.create({ type: "ColorTexture" })