Link Search Menu Expand Document

Cube

A simple cube. Commonly used as a placeholder asset or marker.

Constructor

 cube = Cube(bounds)

Arguments

Name Type Description
bounds Bounds The Cube’s initial bounds.

Returns

Nothing


Methods

Cube:setColor (rgba)

Sets the Cube’s color

Arguments

Name Type Description
rgba table The r, g, b and a values of the text color, each defined between 0 and 1. For example, {1, 0.5, 0, 1}

Returns

Nothing