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
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.
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.Slide7Slide8
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.Slide12Slide13
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.