Download presentation
Presentation is loading. Please wait.
Published byPatricia Osborne Modified over 8 years ago
1
Drawing with the Pen Barb Ericson Georgia Tech June 2011
2
Project Description We will create a spider sprite and have it draw with the Pen blocks –We will teach it to draw a square –And make a flower out of many squares
3
Big Picture Delete the cat sprite Paint the sprite that you will draw with –A spider Program the sprite –To draw a square when it receives a square message –And a flower out of many squares
4
Delete cat sprite To delete the cat –Click the scissors –Click the cat Or right click on the cat and select delete
5
Draw the sprite Click on the star with a paintbrush –Under the stage view
6
Using the paint program Click on the ellipse tool –Click the filled circle –Pick the color –Click and drag to draw a circle
7
Draw legs for the spider Use the line tool to draw legs –Click on the line tool icon –Pick the color for the legs –Click and drag to draw
8
Draw a head and eyes Use the ellipse tool to draw a head and eyes –Click "undo" if you make a mistake –Click "OK" when done
9
Grow or shrink sprite You can change the size of the sprite –Click on the arrows pointing out icon to grow it and arrows pointing in to shrink –Then click on sprite
10
Programming Steps When the green flag is clicked do all set-up –Clear the drawing area –Draw a square How do you draw a square? –Repeat 4 times Move 50 steps Turn 90 degrees
11
Set-up When the green flag is clicked - Control –Clear the drawing area – in Pen –Put the pen down – also in Pen
12
Draw a Square Repeat 4 times – Control –Move 10 steps – Motion Change to 50 –Turn – Motion Change to 90
13
Drawing many squares We can draw a flower by drawing many squares –And turning between them
14
Breaking this into pieces Use broadcast and receive to make reusable parts –drawSquare –drawSquareFlower
15
Challenge Add other shapes –Triangle Add a way to clear the drawing –When you press a key Add a variable to control the width of the square –You can even make this a slider
16
Connection to Art Piet Mondrian made modern art with just black lines and solid colors –Can you do something like this? –Try setting the pen width and color
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.