This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-05-16 04:30:43

ZebraCrazy122
New Scratcher
Registered: 2012-05-16
Posts: 6

Making shapes with the pen tool?

I would like to know how to change the size of a shape but while keeping the same proportions. Say I make a pentagon using the pen tool and I want to keep the same shape of the pentagon but in a different size, what do i do? I am using the 'Move ___ steps" tool and the "Turn___ degrees" tool. Do i divide the number by something or are there any rules to this? Thank you.

Offline

 

#2 2012-05-16 10:18:40

ManaUser
Scratcher
Registered: 2009-03-11
Posts: 100+

Re: Making shapes with the pen tool?

If you increase the size of the moves (while keeping everything else the same) it would draw the same shape bigger.


http://i.imgur.com/SPYSM.gif http://i.imgur.com/t9k1Z.gif http://i.imgur.com/OwYVa.gif http://i.imgur.com/0qlZq.gif

Offline

 

#3 2012-05-16 15:29:17

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: Making shapes with the pen tool?

ManaUser wrote:

If you increase the size of the moves (while keeping everything else the same) it would draw the same shape bigger.

Yes, just make move__steps a larger number.


Why are the secret organizations getting all the attention?  mad

Offline

 

#4 2012-05-16 15:52:20

axorion
Scratcher
Registered: 2010-01-05
Posts: 28

Re: Making shapes with the pen tool?

Make a variable named scale. Multiply all moves by scale. If you want to change the location that the shape grows or shrinks around start by moving from that point with the pen up. Change the value of scale to change the size.

set [scale v] to (2.5)
pen up
go to x: (0) y: (0)
point in direction (90)
move ((scale) * (12)) steps
set pen size to ((scale) * (2))
pen down
turn right (135) degrees
move ((scale) * (18)) steps
turn right (90) degrees
move ((scale) * (24)) steps

Last edited by axorion (2012-05-18 07:47:37)

Offline

 

#5 2012-05-16 18:12:01

Prestige
Scratcher
Registered: 2008-12-15
Posts: 100+

Re: Making shapes with the pen tool?

No matter of the scale of the shape, the interior angles will be the same. So move [Scale Steps] and turn through whatever the angle corresponding to the shape is. Simple!


"Don't insult someone until you've walked a mile in their shoes. That way, if they don't like what you have to say, you'll be a mile away and still have their shoes  smile  "

Offline

 

Board footer