Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MWB: Drawing Try Notion HW6: Drawing Objectives Working With Loops . Continued Practice With Functions Definitions And It Statements For This Assignment You'll Be Using

MWB: Drawing Try Notion HW6: Drawing Objectives Working With Loops . Continued Practice With Functions Definitions And It Statements For This Assignment You'll Be Using The Gulpy You Can Download From Canvan.Module As We Did For Homework 4. You Will Need To Have This File In The Same Folder As Your Solution. Here Is The HWB_starter.Py Iyou Can Download

hello this is a homwork problem please help we are using gui.py

ose to help this discussion. Look at Figures 1, 2 and 3. I will refer to each of these as one line grid Each line grid is made up of a sequence of straight lines. . Given the coord

, with 4 areas of space between them. How much space goes between each line so that the total with is 1607 It's not 160/6, or 30 if there are 4 areas of spoon, with a witth of 30 in gach, that's only 304 or 120 units. Here are the properties of each row of for: Description Width Common Number of lines Color point (y) Facing Up Figure 120 (0,0) 10 blue True Figure B 200 (-350,0) 9 orange False Figure (200.-2001) green False 150 5 Implementation Requirements You need to implement two function definitions, HWO: Drawing Implementation Requirements You need to implement two function definitions,

1. one function to draw one line grid at any location, of any width, with any number of lines, and any color 2. one function to draw one fan at any location, of any width, with any number of lines, and any color, and facing up or down. Do not write 2 functions for the fan, one to draw facing up and the other to draw facing down, There should be just 1 function to draw a fan, with a parameter specifying facing up or down. Other than some difference in math, the algorithm is the same regardless of facing up or down. Put 6 function calls in your main() function to create the image above,

using the values from the tables as arguments. Note - when I calculated the amount of space between the lines, I used math.floor() to get an integer value Documentation and Style Please follow the Documentation and Style Guidelines found on the class website. Suggestions recommend starting by drawing a line grid and a fan on graph paper using the one of the examples. Using specific values from the example you will see how to calculate the end points and the amount of space between fines. Implement one function at a time, and testing as you go

esting should include calling your function several times with different arguments, to ensure that the function uses the parameter values correctly. Written Report Link to the instructions. Two python files: Guiry and HW6 starterry Minimize File Preview ZOOM + # Starter code for homework 6 CANVAS_WIDTH = 900 CANVAS_HEIGHT = 800 from Gui import def main(): # remove these lines and add your own code canvas.text([0,0], text = "hello") canvas. line 11-20,0], [-100, 0]], 'fill = 'red')

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_2

Step: 3

blur-text-image_3

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

Pro Android Graphics

Authors: Wallace Jackson

1st Edition

1430257857, 978-1430257851

More Books

Students also viewed these Programming questions

Question

Define no-fault insurance and discuss its pros and cons.

Answered: 1 week ago