Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a P5 sketch that works as a simple paint program... Draw a blank canvas with a color palette at the left including red, orange,
Write a P5 sketch that works as a simple paint program... Draw a blank canvas with a color palette at the left including red, orange, yellow, green, cyan, blue, magenta, brown, white, and black boxes. hw2 Windows Ink Works 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 mouselsPressed 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. Paint lines instead of points. For full credit, ensure that the palette always remains visible even if the user tries to paint overtop it. hw2 www wilman Windows Ink Workspace
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started