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

RectangleTexture_v3 Op

Ops.Gl.TextureEffects.RectangleTexture_v3


RectangleTexture

Op author: pandur

There is a newer version of this op!


This version will not receive any updates. It is recommended to use a newer version.

Current version: Ops.Gl.TextureEffects.RectangleTexture_v4

Draw a 2D rectangle with controllable parameters


summary (oneliner)

Handy for creating masks and layers.



doc

issues

example patch id

youtube id

caniuse query

collections

related ops

Inputs

render (Trigger)

Trigger in


Blending

Blend Mode index (integer /Number)

Amount (Number)

Blend amount


Center (boolean /Number)

Size

Width (Number)

Width of the rectangle


Height (Number)

Height of the rectangle


Aspect Ratio (boolean /Number)

Aspect ratio of the rectangle


Position

X (Number)

The x position of the rectangle


Y (Number)

The y position of the rectangle


Rotate (Number)

Rotates the rectangle


roundness (Number)

Softens the 4 corners


Color

r (Number)

Red amount


g (Number)

Green amount


b (Number)

Blue amount


a (Number)

Alpha amount


Outputs

trigger (Trigger)

Trigger out


Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save

rect 2d example v3

Open Example In Editor


Patches using RectangleTexture_v3

Changelog


Ops.User.pandur.Rectangle2d2 renamed to Ops.Gl.TextureEffects.Rectangle_v3
2019-12-04 - pandur

Ops.Gl.TextureEffects.Rectangle_v3 renamed to Ops.Gl.TextureEffects.RectangleTexture_v3
2020-04-20 - pandur

fix bug with alpha rendering
2022-02-08 - pandur