A rectangle positioned and sized in world units. More...
Rectangle extends Qt Quick's Rectangle to work with ClayCanvas world coordinates. Position and size are specified in world units, automatically transformed to screen coordinates.
Example usage:
import Clayground.Canvas as Canv Canv.Rectangle { canvas: myCanvas xWu: 5; yWu: 3 widthWu: 2; heightWu: 1 color: "red" }
The parent canvas for coordinate transformation. Required.
X position in world units.
Y position in world units.
Width in world units.
Height in world units.