Skip to content

CleanRectangleXYWH

Juju Adams edited this page Mar 17, 2021 · 6 revisions

 

CleanRectangleXYWH(x, y, width, height)

Returns: Rectangle struct

Name Datatype Purpose
x number x-coordinate of the centre of the rectangle
y number y-coordinate of the centre of the rectangle
width number Width of the rectangle
height number Height of the rectangle

Rectangles defined using this function are no different internally to the standard rectangle shape. Please see the CleanRectangle() documentation for available methods.

N.B. A shape will only draw when you call the .Draw() method.