Referenced from lesson Function Composition
You’ll be investigating these functions with your partner:
; text : String Number String -> Image
; scale : Number Image -> Image
; rotate : Number Image -> Image
; flip-horizontal : Image -> Image
; flip-vertical : Image -> Image
1) Make an image of your name, in big purple letters. Draw the Circle of Evaluation and write the Code that will create this image.
2) Try using the scale
function to make your name bigger or smaller. Draw the Circle of Evaluation (hint: use what you wrote above!), then write the Code.
3) In your own words, what does scale
do?
4) Try out rotate
, flip-horizontal
, and flip-vertical
. Use the space below to write your Code, then test out your Code in WeScheme when you’re ready.
These materials were developed partly through support of the National Science Foundation,
(awards 1042210, 1535276, 1648684, and 1738598).
Bootstrap:Algebra by Emmanuel Schanzer, Jen Poole, Ed Campos Jr, Flannery Denny, and Dorai Sitaram
is licensed under a
Creative Commons 4.0 Unported License.
Based on a work at www.BootstrapWorld.org.
Permissions beyond the scope of this license may be available by contacting
schanzer@BootstrapWorld.org.