Skip to main content
ICT
Lesson A5 - Designing and Using Classes
 
Main Previous
Title Page >  
Summary >  
Lesson A1 >  
Lesson A2 >  
Lesson A3 >  
Lesson A4 >  
Lesson A5 >  
Lesson A6 >  
Lesson A7 >  
Lesson A8 >  
Lesson A9 >  
Lesson A10 >  
Lesson A11 >  
Lesson A12 >  
Lesson A13 >  
Lesson A14 >  
Lesson A15 >  
Lesson A16 >  
Lesson A17 >  
Lesson A18 >  
Lesson A19 >  
Lesson A20 >  
Lesson A21 >  
Lesson A22 >  
Lesson AB23 >  
Lesson AB24 >  
Lesson AB25 >  
Lesson AB26 >  
Lesson AB27 >  
Lesson AB28 >  
Lesson AB29 >  
Lesson AB30 >  
Lesson AB31 >  
Lesson AB32 >  
Lesson AB33 >  
Vocabulary >  
 

LAB ASSIGNMENT A5.2 page 11 of 11

Müller

Background:

The Müller-Lyer illusion is caused by an image that consists of two parallel line segments. One line segment looks like an arrow with two heads, while the other line segment looks like an arrow with two tails. Although the line segments are exactly the same length, they appear to be unequal.


The Müller-Lyer Illusion

Assignment:

  1. Write a class that illustrates this illusion. When designing your methods, look to see if there is any sequence of events that you are using repeatedly. Repeated blocks of code are good candidates for creating methods. Remember, you want to avoid repeating code unnecessarily. (Hint: In the picture above, there are 10 individual lines that are drawn. What other things can you see right off that are repeated?)

  2. Modify the program so that it draws two new vertical line segments. Each of the new line segments should connect the end points of the two parallel line segments that cause the Müller-Lyer illusion. Does adding these new lines affect your perception of the illusion?

  3. The Ponzo Illusion is another visual illusion that deals with lines. Add a picture to your program that illustrates this illusion. Like the picture below. The two vertical lines should be the exact same length and placed at the same height.


The Ponzo Illusion

 

Main Previous
Contact
 © ICT 2006, All Rights Reserved.