Week 3: Drawing on the Canvas and Creating Timers Flashcards

1
Q

How do computers draw?

A

Computer monitor - 2D grid of piles stored in a frame buffer

Computers update the monitor based on the frame buffer at a rate of 60-72 times a second - this is the refresh rate

Applications register with the computer a special function called a “draw handler”

The draw handler updates the canvass using a collection of commands.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How are coordinates measured on a canvas?

A

Grid starts in top left corner at [0, 0] and accepts [x, y] coordinates (height in pixels, width in pixels) which increase in value as they move from left to right and top to bottom.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When drawing text in Python, how do the positional coordinates relate to where the text is drawn?

A

The positional coordinates will be at the bottom left of the text entered; important to remember for positioning text.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly