|
Computer Science Home
6th Grade Tech Ed
7th Grade Computer Science
8th Grade Computer Science A
Gmail
Google Drive
Google Classroom
Infinite Campus
Typing.com
(Join Class through Google Classroom)
Schoology
Code.org
Tynker Coding Website
Tynker Resource Page
Tynker Online Support Video Help
Quizlet | Quizlet LIVE
Everfi
Khan Academy
Social Media Tips
Netsmartz
Code HS
Karel the Dog class code: 1251
CSTA Standards
ISTE Standards
|
Changing Pen Color (Lesson 4)
Introduction
Let’s get artsy! In this lesson, you will create drawings on the Stage using pen drawing. Additionally, you create an Etch A Sketch©-style project!
New Code Blocks
- : Clear all markings made by the pen or stamp.
- : Set the pen’s thickness to the specified value.
- : Set the pen’s color to the specified color.
- : Point the Actor at the specified degree.
- : Increase the color by the number specified by the parameter.
- : Broadcast a message to all Actors in the program.
- : Listen for a message or broadcast from other scripts before activating.
- : Rotate the Actor to the left (counter-clockwise) by a specified amount.
- : Broadcast a message to all Actors in the program and wait until all activated scripts finish running.
- : Actor will glide to the specified x- and y-coordinates over a specified length of time.
- : Put the pen down to draw an image on the Stage.
Objectives
you...
- Use Pen commands to create projects
- Create an Etch A Sketch©-style project
Activities (45 minutes)
1. Race Car Example (Example)
- This module is an example of a completed Race Car project. you create your own version of this project in the next module!
- How to turn the race car: Tell students to use the arrow keys (web) or tilt your device (mobile).
- you need to click or tap on the Stage to stamp the Actor.
2. Race Car (DIY)
- In this DIY (do-it-yourself) project, you program a racer to move forward and respond when the left and right arrow keys are pressed (web) or when your device is tilted left and right (mobile).
- Did students finish early? Direct your attention to the bonus activity in “Step 4" of the tutorial, which encourages them to modify your code and make the racer move faster or slower!
3. Doodle Racer Example (Example)
- you view a completed Doodle Racer project. you’ll create your own version of this project in the next module!
- Optional: Ask students how the doodle racer is different from the race car from the previous module. (The doodle racer leaves behind a colorful trail.)
4. Doodle Racer (DIY)
- In this DIY project, you program a racer to leave a pen trail of different colors!
- Optional: Encourage students to create fun, colorful geometric shapes using your doodle racer!
5. Draw an Ice Cream Cone (Puzzle)
- To solve this puzzle module, you need to use the “set pen color” and “broadcast” blocks together.
- Give a hint: Tell students that the pen color must be set to the correct color before using a “broadcast” block.
6. Fun Drawing Example (Example)
- In this module, you watch a project of two racers drawing an ice cream cone. you’ll create your own version of this project in the next module!
7. Fun Drawing (DIY)
- In this DIY project, you follow the tutorial to program a racer to draw a circle and a square using pen drawing. Note: If you complete the code exactly as suggested, the circle and the square drawn by the racer will overlap.
- Bonus: Encourage students to modify your code and create more geometric drawings using simple shapes!
8. Etch-a-Sketch Example (Example)
- you watch a completed Etch A Sketch© project where a spaceship draws on the Stage! you’ll create your own version of this project in the next module!
- Check that students are pressing the arrow keys (for web) or tilting your device (mobile) to draw on the Stage.
9. Etch-a-Sketch (DIY)
- In this DIY project, you program a racer that you can control using arrow keys (web) or tilt controls (mobile). The racer will draw a lined trail where it travels, similar to an Etch A Sketch©! Additionally, you program the racer to change the sketch color.
- How to play:
- On web: Control the racer using the arrow keys. Use the spacebar to change the pen color.
- On mobile: Control the racer using the tilt sensors. Tap on the screen to change the pen color.
Extended Activities (10 minutes)
Artist Wanted!
- Choose an object (e.g., Tetris pieces, city skyline) that you can draw using your Etch A Sketch© project.
- Share your drawings with the class.
- What cool works of art did you create?
- Did you modify your project or experiment with your code?
U.S. Standards
U.S. Standards
- K-12 CTSA Computer Science Standards (Revised 2017)
Computer Science Teachers Association:
- 1B-AP-10
- 1B-AP-11
- 1B-AP-12
- 1B-AP-15
- 2-AP-12
- 2-AP-13
- 2-AP-15
- 2-AP-16
- 2-AP-17
CCSS-Math: MP.1
- CCSS-ELA: RF.5.4.A, 6-8.RST.3, 6-8.RST.4, 6-8.RST.7
- CS CA: 3-5.AP.10, 3-5.AP.12, 3-5.AP.13, 3-5.AP.14, 3-5.AP.17, 6-8.AP.12, 6-8.AP.13, 6-8.AP.16, 6-8.AP.17
- ISTE: 1.c, 1.d, 4.d, 5.c, 5.d, 6.b
|