Canvas Basics
Borders and Dashes
Colors and Gradients
Opacity
Rect Function
100

This is the width and height, in pixels, of the standard canvas.

What is 400 x 400?

100

This is the default value of the border property.

What is None?

100

This function lets you create a custom color using red, green, and blue values.

What is rgb(red, green, blue)?

100

This is the default opacity value for a shape.

What is 100?

100

These are the four parameters, in order, that Rect() takes.

What are left, top, width, height?

200

As you move in this direction, x values increase.

What is right?

200

This is the default borderWidth value.

What is 2?

200

This is the required range for each value (red, green, blue) in an rgb color.

What is 0 to 255, inclusive?

200

An opacity of this value makes a shape completely transparent.

What is 0?

200

This is the default fill color for a shape if none is specified.

What is black?

300

As you move in this direction, y values increase.

What is down?

300

This is the code to draw a rectangle with a green border of width 4.

What is Rect(left, top, width, height, border='green', borderWidth=4)?

300

This is the default type of gradient.

What is a radial gradient?

300

Opacity is described as the opposite of this.

What is transparency?

300

To draw a rectangle with no fill at all, set this argument to this value.

What is fill=None?

400

The corner of the XY graph are we working in.

What is the bottom right corner?

400

This is how you'd write dashes to create dashes of length 1 pixel and gaps of length 4 pixels.

What is dashes=(1, 4)?

400

This is the minimum number of colors required to create a gradient.

What is 2?

400

When shapes overlap, this determines which one appears on top.

What is drawing order (shapes drawn later appear in front)?

500

In a linear gradient, this parameter determines which direction the fade starts from.

What is start?

M
e
n
u