code hs worksheets c.9, Slides of Computer science

code hs 3.9 worksheet that is for 10th grade

Typology: Slides

2020/2021

Uploaded on 12/20/2023

jaxen-martinez
jaxen-martinez 🇺🇸

1 document

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Programming with Turtle Graphics - Unit 3: Foundations
3.9 Artistic Effects
Table of Contents:
Video 3.9.1 Artistic Effects
Check for Understanding 3.9.2 Artistic Effects
Example 3.9.3 Rainbow Octagon
Example 3.9.4 Circle Square Triangle
Exercise 3.9.5 Four Colored Triangles
Exercise 3.9.6 Colorful Bracelet
Challenge 3.9.7 Kid's Shapes Toy
Directions: Video 3.9.1 Artistic Effects
Watch the video!
Directions: Check for Understanding 3.9.2 Artistic Effects
Hig hli ght the cor rec t a nswer (s) for each ques tio n.
Question: 1
How would I change Tracy’s trail to a yellow line with a thickness of 10 pixels?
1. Color(Yellow)
thickness(10)
2. color(“yellow”)
pensize(10)
3. color yellow()
pensize(10)
4. color yellow():
pensize(10)
Question: 2
What is true of Tracy’s color command?
1. You can only use hex color codes
2. There are 10 different colors that Tracy knows
3. The color name must have underscores between words (ex: light_blue)
4. The color name must be in quotation marks
Question: 3
What is the correct way to draw a circle that is filled in?
1. begin_fill()
circle(20)
end_fill()
2. circle(20)
begin_fill()
end_fill()
3. circle(begin_fill, 20, end_fill)
4. circle(20)
end_fill()
pf3

Partial preview of the text

Download code hs worksheets c.9 and more Slides Computer science in PDF only on Docsity!

3.9 Artistic Effects

Table of Contents:

Video 3.9.1 Artistic Effects

Check for Understanding 3.9.2 Artistic Effects

Example 3.9.3 Rainbow Octagon

Example 3.9.4 Circle Square Triangle

Exercise 3.9.5 Four Colored Triangles

Exercise 3.9.6 Colorful Bracelet

Challenge 3.9.7 Kid's Shapes Toy

Directions: Video 3.9.1 Artistic Effects

Watch the video!

Directions: Check for Understanding 3.9.2 Artistic Effects

Highlight the correct answer(s) for each question.

Question: 1

How would I change Tracy’s trail to a yellow line with a thickness of 10 pixels?

  1. Color(Yellow) thickness(10)
  2. color(“yellow”) pensize(10)
  3. color yellow() pensize(10)
  4. color yellow(): pensize(10)

Question: 2

What is true of Tracy’s color command?

  1. You can only use hex color codes
  2. There are 10 different colors that Tracy knows
  3. The color name must have underscores between words (ex: light_blue)
  4. The color name must be in quotation marks

Question: 3

What is the correct way to draw a circle that is filled in?

  1. begin_fill() circle(20) end_fill()
  2. circle(20) begin_fill() end_fill()
  3. circle(begin_fill, 20, end_fill)
  4. circle(20) end_fill()

3.9 Artistic Effects Question: 4 What would be the output of the following command? circle(50,360,5)

  1. 3

  2. Question: 5 What would be the output of the following command? circle(50,180,3)

  3. 1

Directions: Example 3.9.3 Rainbow Octagon As you explore this example, test out the following:  Rewrite this program using a function. o The original program uses 26 lines of code (excluding comments and blank space.) How much more efficient is your program? o Do you feel the program is easier to read and follow with or without the added function? Explain.  Change the pensize to 50. What do you notice about the ends of the lines Tracy draws? Challenge: Alter the program so the inside of the octagon is colored in cyan, as shown below: