Global Function
Declaration
func rect(x: Double, y: Double, width: Double, height: Double)
Parameters
| x | x-coordinate of the bottom left corner of the rectangle. |
| y | y-coordinate of the bottom left corner of the rectangle. |
| width | Width of the rectangle. |
| height | Height of the rectangle. |
Returns
-
Description
Draws a rectangle in the view.
Examples
rect(x: 50, y: 80, width: 40, height: 40)Related