Question: Please write the p5 code that would complete ALL of the requirements for this project: Create a paint app program that has a blank canvas

Please write the p5 code that would complete ALL of the requirements for this project:

Create a paint app program that has a blank canvas with a color palette at the left including red, orange, yellow, green, cyan, blue, magenta, brown, white, and black boxes. Let the user click and drag the mouse on the canvas to apply paint. Let the user click on the color palette boxes to set the paint color. You will need to use mousePressed or mouseIsPressed to determine whether a click is happening, and if so use mouseX and mouseY to determine whether this click should apply paint to the canvas or change the paint color.

Utilize tone.js and create the sound component of the project:

Compose music to play along while painting. Using sequences, scheduling and looping. Have interactions while painting generate corresponding sounds or music and make sure the gestures and sounds are related. e.g. brush stroke sounds or changing color sounds Sounds do not have to be realistic. Do they work together well with the music?

All user initiated events should have corresponding sound effects: The sound of clearing the screen, changing colors, actively painting. Adapt the music and/or sound effects with the drawing states - empty filled screen e.g. as the drawing goes on, have the music, synthesis, sound files, or sound effects change and adapt

PLEASE WRITE THE CODE FOR THIS PROJECT THAT INCLUDES ALL OF THE COMPONENTS!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!