Rectangle

In this lesson, we'll learn how to make a rectangle using paths.

We'll cover the following

Rectangle

We introduced the rectangle function in the Basic Drawing Operations chapter. There isn’t a lot more to say about it. It just helps us draw a rectangle. The call rectangle(x, y, width, height) is roughly equivalent to this code:

Get hands-on with 1200+ tech skills courses.