Use Identity Property Starter File to respond to the questions below.
Scale
1 With your partner, predict what belongs in each blank below. Then, test your prediction using WeScheme to see if you were correct.
Scaling by 1 will produce an image that is
Scaling by 1/2 will produce an image that is .
Scaling by 1/10 will produce an image that is .
Scaling by 0 will produce
2 Place a checkmark next to lines of code that you predict will produce an image identical to the original. Then, run the code to test your predictions.
(scale (/ 5 5) hello) |
(scale (+ -20 20 1) hello) |
|
(scale (* 1/2 2) dog) |
(scale 0 dog) |
|
(scale -1 dog) |
(scale (+ 45 -45) dog) |
Rotate
3 In the Interactions Area (right), type (rotate 90 dog). What happened?
4 Place a checkmark next to the code that you predict will produce an image identical to the original. Run the code to test your predictions.
(rotate 180 dog) |
(rotate 90 dog) |
|
(rotate -90 dog) |
(rotate -180 dog) |
|
(rotate 360 dog) |
(rotate -360 dog) |
|
(rotate 450 dog) |
(rotate (* 360 19) dog) |
5 What did you discover? For what degrees did rotate produce an identical image?
Flip
6 In the Interactions Area (right), type (flip-vertical dog). Try (flip-horizontal dog). What happened? How is the image returned different from the original?
7 Place a checkmark next to lines of code that you predict will produce an image identical to the original. Then, run the code to test your predictions.
(flip-vertical (flip-horizontal dog)) |
(flip-horizontal (flip-vertical dog)) |
|
(flip-vertical (flip-vertical dog)) |
(flip-horizontal (flip-horizontal dog)) |
★ Write the longest, most complex line of code you can that applies several transformations to dog , but produces an identical output.
These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, 1738598, 2031479, and 1501927).
Bootstrap by the Bootstrap Community is licensed under a Creative Commons 4.0 Unported License. This license does not grant permission to run training or professional development. Offering training or professional development with materials substantially derived from Bootstrap must be approved in writing by a Bootstrap Director. Permissions beyond the scope of this license, such as to run training, may be available by contacting contact@BootstrapWorld.org.