Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

(with keyPressed) (with mousePressed)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

Students also viewed these Databases questions