Presentation is loading. Please wait.

Presentation is loading. Please wait.

Transformations Challenge By Yossra Hamid Under the supervision of Professor Susan Rodger Duke University June 2014.

Similar presentations


Presentation on theme: "Transformations Challenge By Yossra Hamid Under the supervision of Professor Susan Rodger Duke University June 2014."— Presentation transcript:

1 Transformations Challenge By Yossra Hamid Under the supervision of Professor Susan Rodger Duke University June 2014

2 Overview This is a simple challenge designed for beginners in Alice. You will be adding in code to the world, Transformation_Challenge.a2w. The activity should take 20 minutes. This challenge will allow students to practice working in methods and dragging in commands. For preparation, complete at least one of the Introduction to Alice Tutorials.

3 Starting Out Open the world Transformations_Challenge.a2w This should be in your world.my first method

4 Play - Something’s Wrong… Play the world. You’ll notice that it describes different types of transformations. You can see a blue pentagon appear and disappear – but the transformations do not happen! You will add code so that the Blue Pentagon completes each transformation.

5 Changing the Methods The world has five methods. You will be making changes to Rotation, Reflection, Translation, and Resize. Access them by clicking edit next to the name on the world’s details

6 Changing the Methods Each method follows a similar pattern: 1.The Red Pentagon describes the transformation. 2.The world pauses for one second. 3.The Blue Pentagon appears. 4.The Blue Pentagon disappears.

7 Changing the Methods You will be adding code for the Blue Pentagon to complete the transformation: 1.The Red Pentagon describes the transformation. 2.The world pauses for one second. 3.The Blue Pentagon appears. 4. The Blue Pentagon does the transformation. 5.The Blue Pentagon disappears. 6. The Blue Pentagon returns to the original position (by doing the opposite).

8 Transformations RotationReflection Translation Resize For more information on transformations, visit www.mathsisfun.com/geometry/transformations.html

9 Rotation This is the Rotation method. You will be adding code at the red arrows.

10 Rotation 1.To rotate the Blue Pentagon, add one line of code inside the Do In Order to roll the Blue Pentagon.25 revolution left around Y-Axis for 2 seconds (Hint: You will need to use AsSeenBy and Duration) 2.To return the Blue Pentagon to the original position, add one line of code that rolls the Blue Pentagon.25 revolution right around Y- Axis

11 Reflection This is the Reflection method. You will be adding code at the red arrows.

12 Reflection 1.To reflect the Blue Pentagon, add one line of code inside the Do In Order to turn the Blue Pentagon.35 revolution left around Y-Axis for 2 seconds (Hint: You will need to use AsSeenBy and Duration) 2.To return the Blue Pentagon to the original position, add one line of code that turns the Blue Pentagon.35 revolution right around Y- Axis

13 Translation This is the Translation method. You will be adding code at the red arrows.

14 Translation 1.To translate the Blue Pentagon, add two lines of code inside the Do In Order to move the Blue Pentagon up and left 2 meters at the same time (Hint: You will need to use a DoTogether) 2.To return the Blue Pentagon to the original position, add two lines of code that move the Blue Pentagon down and right 2 meters

15 Resize This is the Resize method. You will be adding code at the red arrows.

16 Resize 1.To resize the Blue Pentagon, add two lines of code inside the Do In Order to resize the Blue Pentagon to 0.5 for 2 seconds, then to 4 for 2 seconds (Hint: You will need to use Duration) 2.To return the Blue Pentagon to the original position, add two lines of code that resizes the Blue Pentagon to 2, then to 0.25

17 Finished World When finished, the world should play like this :


Download ppt "Transformations Challenge By Yossra Hamid Under the supervision of Professor Susan Rodger Duke University June 2014."

Similar presentations


Ads by Google