L'autenticazione di Google non è riuscita. Per favore riprova più tardi!
All Lesson Plans

Drawing Lines with Pixels

Computer based images are made up of thousands of tiny dots of color called pixels. They are the smallest unit in a digital display.

A pixel is represented by a dot or square on a computer monitor display screen.

To draw a line on the computer screen, you simply need to color the squares that depict the line.

Invite student use this polypad to create vertical, horizontal and tilted lines by coloring the pixels. Use notice and wonder routine to compare the number of colored pixels and the length of each line.

How many pixels should we color in to depict a line?

Main Activity

Although the number of colored pixels to draw vertical or horizontal lines is very straightforward, the tilted lines like the diagonals of a rectangle worth exploring!

Diagonals are the line segments that connect two non-adjacent vertices of polygons. Rectangles have two diagonals that connect two opposite vertices. They are the same size.

The pink line segment here represents the tilted line we would like the draw using the pixels.

Invite students to count the number of squares the diagonal passes through.

Clarify that to draw the diagonal of a 6 x 10 rectangle, we color 14 pixels (squares).

Many things can vary in these rectangles: the width, the length, and the number of squares the diagonal passes through (or is "cut"). One of the strategies we can use is keeping one of these variables constant to find the pattern.

Click here to share the canvas with the students. To figure out the relation among ll, ww and dd, you may need to draw many examples. At the start, you may not be ready to answer the first question, but see if you can build up to that.

Display students screens to discuss about the visual patterns. Ask students if the visual patterns formed by the colored squares can help them to figure out the number patterns.

  • If some students already figured out that the visual patterns are effected by the dimensions, ask them to lead a class discussion about the dimensions being multiple of each other, being prime or relatively prime ..
  • if not, invite students to explore differences between how the squares are aligned when the length and width have common factors and when they don't.
    • How will the pixel squares align in a square(l=w) (l=w)?
    • How will the squares align when the length of the rectangle is a multiple of the width (l=nw)(l=n\cdot w)?

Hint

Help students to conclude that the number of colored pixels to draw each diagonal is always less than the sum of length and width. But that difference changes depending the size of the rectangles.

If students need extra guidance, invite them to explore rectangles such as 6×86 \times 8, 10×1510 \times 15, 8×128 \times 12 , and 12×1512 \times 15.

After they made their drawings, use the notice and wonder routine. If it does not come up naturally ask students, if they notice a pattern in the differences betweenl+wl+wand d when the length and width have common factors.

Solution

The number of colored pixels (dd) to draw the diagonal of a l×wl \times w rectangle is

d=l+wGCF(l,w)d = l + w−GCF(l,w).

So to draw a tilted line which has the same length of a 45×12045 \times 120 rectangle’s diagonal, we need to color 45+120GCF(45,120)=15045 +120-GCF(45,120)= 150 pixels!

Polypads

Pixel Smile – Polypad – Polypad
polypad.org/5DtAGNc6v16KCw
Pixel Line coloring – Polypad – Polypad
polypad.org/Fa9fmbO7HhjMg
Pixel Line-ing – Polypad – Polypad
polypad.org/cbxT2DgzxtJhlw#axes
Pixel Line-ing Drawings – Polypad – Polypad
polypad.org/HSWdZbjyzLviA

Desmos Classroom Link

Pixel Line-ing • Activity Builder by Desmos Classroom
teacher.desmos.com/activitybuilder/custom/636ecaa843c4ad5d0706b243