drawing with the pen barb ericson georgia tech june 2011

16
Drawing with the Pen Drawing with the Pen Barb Ericson Barb Ericson Georgia Tech Georgia Tech June 2011 June 2011

Upload: patricia-osborne

Post on 08-Jan-2018

240 views

Category:

Documents


0 download

DESCRIPTION

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

TRANSCRIPT

Page 1: Drawing with the Pen Barb Ericson Georgia Tech June 2011

Drawing with the PenDrawing with the PenBarb EricsonBarb EricsonGeorgia TechGeorgia Tech

June 2011June 2011

Page 2: Drawing with the Pen Barb Ericson Georgia Tech June 2011

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

Page 3: Drawing with the Pen Barb Ericson Georgia Tech June 2011

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

Page 4: Drawing with the Pen Barb Ericson Georgia Tech June 2011

Delete cat sprite• To delete the cat

– Click the scissors– Click the cat

• Or right click on the cat and select delete

Page 5: Drawing with the Pen Barb Ericson Georgia Tech June 2011

Draw the sprite• Click on the

star with a paintbrush– Under the

stage view

Page 6: Drawing with the Pen Barb Ericson Georgia Tech June 2011

Using the paint program

• Click on the ellipse tool– Click the filled

circle– Pick the color– Click and drag

to draw a circle

Page 7: Drawing with the Pen Barb Ericson Georgia Tech June 2011

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

Page 8: Drawing with the Pen Barb Ericson Georgia Tech June 2011

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

Page 9: Drawing with the Pen Barb Ericson Georgia Tech June 2011

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

Page 10: Drawing with the Pen Barb Ericson Georgia Tech June 2011

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

Page 11: Drawing with the Pen Barb Ericson Georgia Tech June 2011

Set-up• When the green

flag is clicked - Control– Clear the drawing

area – in Pen– Put the pen down

– also in Pen

Page 12: Drawing with the Pen Barb Ericson Georgia Tech June 2011

Draw a Square• Repeat 4 times

– Control– Move 10 steps

– Motion• Change to 50

– Turn – Motion• Change to 90

Page 13: Drawing with the Pen Barb Ericson Georgia Tech June 2011

Drawing many squares• We can draw a

flower by drawing many squares– And turning

between them

Page 14: Drawing with the Pen Barb Ericson Georgia Tech June 2011

Breaking this into pieces

• Use broadcast and receive to make reusable parts– drawSquare– drawSquareFlow

er

Page 15: Drawing with the Pen Barb Ericson Georgia Tech June 2011

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

Page 16: Drawing with the Pen Barb Ericson Georgia Tech June 2011

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