๐จ๐จ Unit 2 Final Project: Interactive Drawing App
How can I use my skills in p5 to create a drawing application?
Last updated
How can I use my skills in p5 to create a drawing application?
Last updated
Remember the days of Microsoft Paint? When you could click a start bar, open a program that came preloaded on the computer, and just create? Those days were good. Those days were simple. Those days were internet free and possibly came with very little in the way of design sense.
We are better today; we have the tools needed to build our very own, p5 Microsoft Paint that looks better than ever before. And so thatโs what we are going to do!
Requirements:
Create a program that allows you to draw with the mouse.
Create at least 4 buttons that will control different aspects of the program, such as color changes.
Create at least 4 key press reactions that will control different aspects of the program, such as brush type.
Utilize objects to control multiple attributes of the same element (such as the drawing tool), or the same attribute of multiple elements (such as the button colors).
Make sure the user understands how to use your program!
BONUS REQUIREMENT: Make your canvas saveable by following the instructions under the extension!
Writing Prompt:
Write a sales pitch for your program that includes instructions on how to use it and persuasive reasoning behind why you made your specific design choices.
Meets requirements
At least 5 buttons
Create a drawing pen using the mouse ONLY when the mouse is being pressed
Have one button be a random color
All medium requirements plus the followingโฆ
Make an eraser Make a way to clear the canvas
Make complex brush types, beyond just drawing with different shapes
Create a website to house your creation
You are welcome to briefly teach students how to program in a save option using the built in saveCanvas() function or save function. The former requires the canvas to be stored in a variable, but the latter will just save an image of the canvas by default. If you choose to introduce this to students, they should use them in a major callback function outside of the draw function to avoid repetition, such as mousePressed or keyPressed, like so:
This culminating project of Unit 2 challenges students to make an interactive application that will allow a user to draw (and change their drawing tool in a variety of ways). Some students will approach this head on and make very obvious drawing applications, and some will enjoy an opportunity to flex and explore their design skills. Both are fantastic approaches to this project.
This is a complex project, and students will need to carefully manage their code to avoid getting lost. Encourage them to use comments as often as possible to keep things straight!
This will be the most challenging project students have encountered so far, as it requires combining many skills and dealing with a complex control flow. Students may need help โchunkingโ their project so they do not become overwhelmed and try to do everything at once.
Suggestions for this are available in the Project Introduction, but you can also create worksheets or other resources if you think it will help your students navigate the creation of their drawing application.
Within this design-based challenge, there are many prompts you can give students to make the project seem more relevant to them and the cultures of communities that they are a part of. (Please recall that communities can refer to a lot of things, including just the culture of being a teen, a Minecraft player, or a KPop fan - be mindful that you are allowing students to explore choice in their creations in a way that is authentic to them!)
Possible CR-SE Prompts:
Recreate your own version of MS paint so that it includes colors, stamps, and elements that you will find useful for your art projects.
Create a drawing app that includes features specific to a certain community (ex: color schemes that reflect your community, or drawing tools that create an important indigenous pattern).
Create a drawing app that is accessible to all users in your community (take into account color blindness, button size, etc)
Create a drawing app that allows users to quickly put together images and shapes to address specific issues on a shareable image (ex. animal shapes, logos of nonprofits, slogans (text)).
Students should be able to:
Showcase skills learned in Unit 2
Create a drawing application with button and key press reactions that allows the user to draw with the mouse
1-2 45 minute periods for launch & Planning
3-4 45 minute periods for work time
This is all quite subjective; in early projects, you should adjust pace to suit your students so they can make something they are proud of. But this project should take about a week.
Abstraction
Describe different things I tried in order to achieve a goal.
Explain why I chose to include the specific components of my prototype over others.
Explain characteristics or patterns that informed a function or an interface I created.
Explain why using patterns is necessary when creating with a computer.
Algorithms
Describe how instructions can have different outputs depending on inputs.
Demonstrate the benefit of using an event, conditional or loop in my prototype.
Explain how a function I prototyped can be used by someone else.
Suggest changes to an algorithm that impacts my family or my community.
Programming
Discuss what can and cannot be done with a specific set of commands.
Describe the changes I made after testing at least three parts of my program.
See above for timing - students should be held accountable for getting things done each day through a series of check ins, but they also need a chance to make something meaningful to them.
No extra materials required, but you may want extra paper or coloring materials for planning purposes.
This project serves as the final summative Assessment for Unit 2.
Assess the final project. Check for the ability to:
Experiment with the commands of a programming language.
Create a program that can has different outputs based on different key and/or mouse inputs
Create a creative drawing program.
Assess wrap ups and progress. Check for the ability to:
Describe different things they tried in order to achieve a goal.
Explain why they chose to include the specific components of their prototype over others.
Explain how their prototyped can be used by someone else.
Ask students to go back to the good olโ days and think about MS Paint (or any other drawing application). What could you do with it? What couldnโt you do?
This is a big project as there is a lot of control-flow happening here beyond just drawing order. It is useful to ask students to consider an MVP - minimum viable product - before beginning, and plan around that. You can do this easily with planning worksheets.
To keep track of student progress, ask them to take a piece of paper and fold it into thirds. Label each one โNOW,โ โSOON,โ and โLATER.โ Students should write on post its what they need to do to complete their MVPs and put in appropriate columns. Things the finish from now will be removed from the paper, and then items from soon and later will move up. It is recommended to have students complete this or some sort of planning activity before they begin!
A good practice, especially during long term projects, is to have students share their progress. You can do this through volunteers, or as is my preference, through random selection.
This share out method can be used outside of project time, as well. Use a calendar to sign up 1-2 students per day, working your way through your roster (and then repeating once you reach the end). Each day, be sure to conference or check in with students who will share so they are aware they are sharing and also know what they will talk about. Students can share successes or struggles - if they share a success, they should focus on what they did to make it happen (so the class can learn). If they share a struggle, they should ask questions that the class can then assist them. Allow about 5 minutes for both shares.