What is wrong with: canvas.draw_line( (300, 400), 5, yellow)

Write two lines of code to draw the following circles centered at 600,600. The radius of the smallest circle is 200. There are 50 points between the larger circle and the smaller circle.

Which of the following draw these circles?
canvas.draw_circle((600, 600), 200, 3, "Black") canvas.draw_circle((650, 650), 250, 3, "Black")

canvas.draw_circle((600, 600), 200, 3, "Black") canvas.draw_circle((600, 600), 250, 3, "Black")

canvas.draw_circle((600, 600), 200, 3, "Black") canvas.draw_circle((650, 650), 200, 3, "Black")

canvas.draw_circle((200, 250), 600, 3, "Black") canvas.draw_circle((200, 250), 650, 3, "Black")

Recommended textbook solutions

What is wrong with: canvas.draw_line( (300, 400), 5, yellow)

Tonal Harmony, Workbook

8th EditionByron Almen, Dorothy Payne, Stefan Kostka

1,387 solutions

What is wrong with: canvas.draw_line( (300, 400), 5, yellow)

U.S. History

1st EditionJohn Lund, Paul S. Vickery, P. Scott Corbett, Todd Pfannestiel, Volker Janssen

567 solutions

What is wrong with: canvas.draw_line( (300, 400), 5, yellow)

The Language of Composition: Reading, Writing, Rhetoric

2nd EditionLawrence Scanlon, Renee H. Shea, Robin Dissin Aufses

661 solutions

What is wrong with: canvas.draw_line( (300, 400), 5, yellow)

Ways of the World: A Global History

3rd EditionRobert W. Strayer

232 solutions

The point (1,3) is... D

The point (6,8) is... A

The point (8,6) is... B

The following statement draws a ___ line... Diagonal Line

Which of the following correctly draws a point on the screen? (got it wrong) IT IS NOT - canvas.draw_point(123,125)

Which command correctly draws strings on the screen?... draw_text

Which color is created by:... Red

Colors in graphics are represented by a ___ date type... String

Which of the following is drawn by:... the 4 layered squares

In the following circle command, the radius is ____... 50

Which of the following will print a vertical line?... canvas.draw_line((100,140), (100,40), 4, “Black”)

Which of the following will output a box?... canvas.draw_polygon([150, 50), (150, 150), (50, 150), (50,50)], 1, “Black”)

Which of the following will output: black circle... canvas.draw_circle((150, 150), 50, 1, “Black”, “Black”)

Check ALL of the correr answers. What would the following for loop print?... 3 and 2

Which command tells the for loop what to count by?... range

What is returned by the code: range(5,100,25)?... [5, 30, 55, 80]

Write two lines of code to draw the following circles centered at 600,660. The radius of the smallest circle is 200. There are.... Which of the following draw these circles?... canvas.draw_circle((600,600),200,3,”Black”) canvas.draw_circle((600,600),250,3,”Black”)

Which of the following is NOT true about for loops:... They are used to replace user input while loops

Consider the following command:... Which represents the line thickness?... IT IS NOT - D (got it wrong)

Which of the commands below would be most useful is you were trying to create a face shape for you emoticon?... IT IS NOT - draw_line (got it wrong)

# Interactive Drawing # Shapes # This is an overview of the shapes that can be drawn on the # canvas. For full details, please look at the documentation. # If you are having issues figuring out which shape is drawn # by which line of code, try commenting some of them out. # General notes: It is acceptable to use either () or [] when # listing points. However, be careful that you match # the number and type of () or [] that you are using. Also, # polygons and circles have optional parameters that allow # you to select a fill color. import simplegui import math # Global Variables canvas_width = 600 canvas_height = 600 # Event Handlers def draw(canvas): # Line Segment point_one = (10, 20) point_two = (300, 20) line_width = 5 line_color = 'Red' canvas.draw_line(point_one, point_two, line_width, line_color) canvas.draw_line((335, 25), (550, 50), 25, 'Blue') # Connected Line Segments # Note that any number of points are allowed, and they # connect in the order that they are listed in the # method parameters. (same goes for polygons) point_one = (30, 50) point_two = (130, 150) point_three = (170, 100) line_width = 10 line_color = 'Purple' canvas.draw_polyline([point_one, point_two, point_three], line_width, line_color) canvas.draw_polyline([(500, 150), (400, 100), (342, 117), (301, 151), (200, 150)], 3, 'Orange') # Polygons - All point_one = (50, 200) point_two = (80, 260) point_three = (170, 210) point_four = (100, 225) point_five = (75, 205) line_width = 5 line_color = 'Aqua' fill_color = 'Lime' canvas.draw_polygon([point_one, point_two, point_three, point_four, point_five], line_width, line_color) point_one = (250, 200) point_two = (280, 260) point_three = (370, 210) point_four = (300, 225) point_five = (275, 205) canvas.draw_polygon([point_one, point_two, point_three, point_four, point_five], line_width, line_color, fill_color) canvas.draw_polygon([(450, 200), (550, 200), (450, 300), (550, 300)], 10, 'Navy', 'Olive') # Polygons - Rectangles # Same syntax as polygons, just using four points canvas.draw_polygon([(50, 300), (50, 350), (150, 350), (150, 300)], 8, 'Green') # Simple formulas: # Top left corner = (a, b), Bottom right = (c, d) a = 200 b = 300 c = 220 d = 350 canvas.draw_polygon([(a, b), (a, d), (c, d), (c, b)], 2, 'Yellow', 'Yellow') # Top left corner = (a, b) a = 275 b = 300 width = 140 # For squares, width = height height = 75 canvas.draw_polygon([(a, b), (a, b + height), (a + width, b + height), (a + width, b)], 20, 'Fuchsia') # Polygons - Triangles # Same syntax as polygons, just using three points canvas.draw_polygon([(50, 420), (150, 470), (200, 370)], 5, 'Teal', 'Teal') # For right triangles: a = 200 b = 450 width = 100 # For one type of isosceles triangle, width = height height = 100 canvas.draw_polygon([(a, b), (a + width, b), (a, b + height)], 6, 'White') # Formula for equilateral triangles: a = 450 b = 450 width = 100 canvas.draw_polygon([(a, b), (a + width, b), ((2 * a + width) / 2, b + width / 2 / math.tan(math.pi / 6))], 5, 'Black', 'Gray') # Circles center = (75, 550) radius = 30 line_width = 5 line_color = 'Silver' fill_color = 'Maroon' canvas.draw_circle(center, radius, line_width, line_color) center = (150, 550) canvas.draw_circle(center, radius, line_width, line_color, fill_color) canvas.draw_circle((350, 550), 50, 10, 'Red') canvas.draw_circle((350, 550), 25, 10, 'Blue', 'Blue') # Frame frame = simplegui.create_frame('Shapes', canvas_width, canvas_height) # Register Event Handlers frame.set_draw_handler(draw) # Remember to start the frame frame.start()