Module: renderers > basic > colored_rectangle

Documentation > Modules > renderers > basic > colored_rectangle

Module: renderers > basic > colored_rectangle

Description

Renders a quad (rectangle). Generates UV coordinates for all four corners. Can be colored, resized rotated around an axis.

Here a colored rectangle has been connected directly to the screen. Its size has been reduced to 0.3, 0.3.

See also:

Orbit Camera

Input Parameters

spatial

spatial.position

Type: float3

Connections: Allowed

Compatible modules

A 3-dimensional position. X, Y and Z.

spatial.angle

Type: float

Connections: Allowed

Compatible modules

Rotate the rectangle around the rotation axis. 1.0 is one revolution.

spatial.rotation_axis

Type: float3

Connections: Allowed

Compatible modules

A 3-dimensional axis of rotation.

spatial.size

Type: float3

Connections: Allowed

Compatible modules

Size, X and Y. Z is ignored.

border

border.border_enable

Type: enum

Connections: Enums do not support connections.

Draws a border using the line drawing mechanism in OpenGL.

Enumeration possible values:

border.border_width

Type: float

Connections: Allowed

Compatible modules

Controls the border width. Note that since this is rendered as OpenGL lines, there is an upper limit to how thick it can be.

border.border_color

Type: float4

Connections: Allowed

Default Controller: controller_col

Compatible modules

RGBA color of the border line.

color

Type: float4

Connections: Allowed

Default Controller: controller_col

Compatible modules

Color, RGBA is used.

Output Parameters

render_out

Type: render

Connections: Allowed

Compatible modules