Question
I need help creating this program using Python. 1.Create a 400 by 400 pixel window with a white background. 2. Include your name and date
I need help creating this program using Python.
1.Create a 400 by 400 pixel window with a white background.
2. Include your name and date as a comment at the top of your code.
3. Build your image by stacking ellipses, rects, and lines (using at least 3 of each shape).
4. Use fill, stroke, and strokeWeight to add detail.
5. Utilize proper programming structure and include descriptive comments.
6. Make a keyPressed function so that when a key on the keyboard is pressed, the background color changes to light blue (daylight).
7. Make a mousePressed function so that when a mouse button is pressed, the background color changes to dark blue (night sky).
**The end result is supposed to look like the pictures below.
(with keyPressed) (with mousePressed)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