Math module

rgba

procedure · 4 overloadsSource

The same procedure as xyzw, named for colors: red, green, blue and alpha as a Vector4.

rgba :: (x: float, y: float, z: float, w: float) -> Vector4

Short form of Vector4.{ x, y, z, w }.

Parameters

x: float
the x component.
y: float
the y component.
z: float
the z component.
w: float
the w component.

Returns

rgba :: (x: float) -> Vector4

A vector with all four components set to x.

Parameters

x: float
the value for each component.

Returns

rgba :: (v: Vector2, z: float, w: float) -> Vector4

Extends a Vector2 with z and w components.

Parameters

v: Vector2
supplies x and y.
z: float
the z component.
w: float
the w component.

Returns

rgba :: (v: Vector3, w: float) -> Vector4

Extends a Vector3 with a w component.

Parameters

v: Vector3
supplies x, y and z.
w: float
the w component.

Returns

See also