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

Slides:



Advertisements
Similar presentations
Computer Graphics Lecture 3 Line & Circle Drawing.
Advertisements

Lecture 2 Line & Circle Drawing
The lines of this object appear continuous However, they are made of pixels 2April 13, 2015.
Instructions for using this template. Remember this is Jeopardy, so where I have written “Answer” this is the prompt the students will see, and where.
constructions A Straight Line constructions Task: Task: Construct a line XY of length 5.9 cm. X  Construct a line more than 5.9 cm long (about 8 cm).
Raster conversion algorithms for line and circle
Energy Flow: Food Chains and Webs. Energy Transfer  Energy transfers from one organism to another when they are consumed and metabolized.  Energy can.
Triangles – what can we remember?. Insert date L.O.: to learn about different types of triangles Task: You have four pieces of blank paper in.
Bentley Data Manager A Tour of the Bentley DigitalPlant Solution for Project Data Management.
Task 19 Explain how to produce hard copies of the drawings, and the advantages and disadvantages of printers and plotters.
Complementary and Supplementary Angles
Drawing Straight Line Graphs
Big Idea There is more than algorithm for each of the operations with rational numbers. Most algorithms for operations with rational numbers use both mental.
Angles Ms. Henson’s 4 th Grade Class. Learning Objectives The student will analyze and measure angles using a protractor. The student will identify angles.
Inequalities and their Graphs Objective: To write and graph simple inequalities with one variable.
Equations of Straight Line Graphs. Graphs parallel to the y -axis All graphs of the form x = c, where c is any number, will be parallel to the y -axis.
Stretching forces. What can forces do? A force is a push, pull or twist. Forces can change: the movement of an object the shape of an object Today, we.
Angles Review. Right Angle Discuss with your neighbor the definition of a right angle. How would you solve the below missing measure? 42 
Faults. Create a Brochure You will use the information about faults to create a brochure that explains what a fault is and the types using examples. The.
Lesson 2.2 Complementary and Supplementary Angles Objective: Recognize complementary and supplementary angles.
Complementary and Supplementary Angles
Lesson 1-15 AP Computer Science Principles
AS Computer Studies Finite State Machines 1.
Aim: How to plot or graph data
What should we teach regarding…
Changing Earth lesson 6A
Learning About Graphing.
Task 12 Describe the application and use of modelling tools (such as for straight lines, curves and circles; how to add dimensions and text to drawings).
Chemical or Physical Change.
Today Is S.T.E.M. Day.
Scientific Notation.
Design Process Identify the problem. Collect information.
INTRODUCTION TO TUX PAINT Graphics Software.
Scientific Notation.
Year 8 Term 3 Revision sheet
micro:bit Global Challenge
micro:bit Global Challenge
micro:bit Global Challenge
micro:bit Global Challenge
Graphical addition of Vectors
WALT: about Hooke‘s Law
Objective: To know the equations of simple straight lines.
Choose a number & answer the question
Educational Applications of Technology By: Samantha Evans
micro:bit Global Challenge
micro:bit Global Challenge
micro:bit Global Challenge
PART 1 Class Agenda TODAY’s PLAN: Today’s TaSK:
micro:bit Global Challenge
micro:bit Global Challenge
Isoperimetric Shapes.
Bell work Build the following expressions to find which is greater:
micro:bit Global Challenge
micro:bit Global Challenge
micro:bit Global Challenge
micro:bit Global Challenge
Reader Questioner Recorder Summarizer Your Job:
Write on the Construction Paper
Video Notes Organizer What did I learn today?.
micro:bit Global Challenge
micro:bit Global Challenge
Aim: How to plot or graph data
Connnect The DOTS….
micro:bit Global Challenge
micro:bit Global Challenge
Review Questions 3rd OA.5.
micro:bit Global Challenge
This Tastes Like Cardboard
Get your calculator out!
Objective: To know the equations of simple straight lines.
Presentation transcript:

How hard is it for a computer to draw a straight line? 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, use a ruler and label one end A and the other end B.

Draw a straight line, using the straight line tool. Load Paint- Start/ All programs/Accessories/ Paint Draw a straight line, using the straight line tool. How does it work?

Prove with an elastic band Anchor Extension Retraction Prove with an elastic band

What do you see . Be prepared to explain your answer. Back to Paint. Magnify your line. What do you see . Be prepared to explain your answer.

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

TASK TWO

Bresenham's Line Algorithm A = 2 x change in Y value B = A -2 x change in X value P = A - change in X value

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.

Bresenham's Line Algorithm A = 2 x change in Y value B = A -2 x change in X value P = A - change in X value

Push your teams colored button when you miss a question Hang Man Push your teams colored button when you miss a question OUT OUT OUT

Write a poem about what you have learnt today.