/
How hard is it for a computer to draw a straight line? How hard is it for a computer to draw a straight line?

How hard is it for a computer to draw a straight line? - PowerPoint Presentation

mitsue-stanley
mitsue-stanley . @mitsue-stanley
Follow
386 views
Uploaded On 2018-01-08

How hard is it for a computer to draw a straight line? - PPT Presentation

Must be easy How does a computer draw a straight line Logon on then Research Find a simple definition of a straight line Can you prove it Be prepared to explain Your answer Draw a straight line on paper ID: 621450

draw line change straight line draw straight change paint pixel prove add answer explain prepared task algorithm bresenham valuep

Share:

Link:

Embed:

Download Presentation from below link

Download Presentation The PPT/PDF document "How hard is it for a computer to draw a ..." is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

Slide1

How hard is it for a computer to draw a straight line?

Must be easy?Slide2

How does a computer draw a straight line.

Logon on,

then Research-

Find a simple definition of a straight line

Can you prove it?.

Be prepared to explain. Your answer.Slide3

Draw a straight line on paper,

use a ruler and label one end A and the other end B.Slide4

Load Paint-

Start/ All programs/Accessories/ Paint

Draw a straight line, using the straight line tool.

How does it work?Slide5

Anchor

Extension

Retraction

Prove with an elastic bandSlide6

Back to Paint.

Magnify your line.

What do you see . Be prepared to explain your answer.Slide7
Slide8

Can you draw a straight line the same way Paint does?

TASK ONESlide9

TASK TWOSlide10

A = 2 x change in Y value

B = A -2 x change in X value

P = A - change in X value

Bresenham's

Line AlgorithmSlide11

For every position along the X axis:

if P is less than 0, draw the new pixel on the same line as the last pixel, and add A to P.

if P was 0 or greater, draw the new pixel one line higher than the last pixel, and add B to P.

continue this process until we reach the end of the line.Slide12
Slide13

A = 2 x change in Y value

B = A -2 x change in X value

P = A - change in X value

Bresenham's

Line AlgorithmSlide14

Hang Man

Push your teams colored button when you miss a question

OUT

OUT

OU

TSlide15

Write a poem about what you have

learnt today.