π MadLibs
Unit 3 β Building Apps | December 22π― Learning Targets
API can develop an abstraction when writing a program or creating other computational artifacts.API can use multiple levels of abstraction to write programs.API can identify multiple levels of abstractions that are used when writing programs.- I can use a button to launch a user-defined function with multiple inputs in p5.
Mad Libs Project
- At least 5
inputsfor parts of speech - MadLibs
buttonthat launches a function to create a new sentence. - Code comments show evidence of iteration.
- Code comments reference previous approaches, and bugs.
Create a paragraph
This works JUST like createButton:
paragraph = createP("One day, I was walking to the " + p + " and I saw a " + a + " " + n);
paragraph.position(220, 0);
π Push Yourself
We havenβt explored it in this class, but each of your p5 projects has a style.css file just waiting for you to make it look good.