Nov 29
Mr. Happy Guy with Catepillars
Fundamentals of Physical Computing
Lab Seven: Programing Lab 2, part 11: Shared Function
YOUR OWN FUNCTION
- Add your own feature to the world! You might want to use a character you’ve already created, or devise a new feature. Be creative and colorful! Make your feature with at least 3 shapes.
- Put your feature into its own appropriately named function, and add at least 2 parameters to move it around the screen. Try to add a parameter to change the size of the character/feature.
- Add comments to your functions, include your name in those comments, and include descriptions what the parameters do in the function.
- Use your function in the sketch. Populate your sketch with at least 5 instances of your feature/character.
- Share your function with the class! Put the code for your function in the message body of an e-mail and send it to the class group mailing list.
- Save As.. this sketch, naming it yourname-myfunction