In this project, you will develop and define a function of your own! This function must take in a shape and manipulate it using at least three transformations. This is the planning sheet. You will also create, save, and share a Pyret file with your teacher.
1 Put a checkmark by each of the shape functions that you plan to use in your personal function. You must choose at least one. If you plan to use a function multiple times, you can add additional checkmarks next to it.
|
|
|
|
|
|
|
2 Put a checkmark by each of the transformation functions you plan to use in your personal function. You must choose at least three. If you plan to use a function multiple times, you can add additional checkmarks next to it.
|
|
|
|
|
|
|
|
3 What do you want your function to do?
-
Example: I want my function to take in any shape, and then: double its size, turn it upside down, and place it in the center of a solid blue square
that is 100 pixels wide.
-
Your response: I want my function to take in a shape, and then:
4 Draw a sketch of what your function would produce for two different provided inputs.
input: triangle(30, "solid", "pink") |
input: rectangle(20, 50, "outline", "yellow") |
---|---|
|
|
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.