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

#1 2010-01-31 14:25:29

xXFineSigilXx
Scratcher
Registered: 2010-01-31
Posts: 1

Basic Question: Making a geometric star

Hello,

I've recently started programming (Scratch is my first exposure) and am stuck with trying to create a star polygon.

I'm using the <move(  )steps> and <turn cw(  )degrees> scripts in conjunction with pen/pen down (line drawing).... but am not sure mathematically, which angles to use and how to program the degrees to turn to make a 5-point star (presumably with each side equal in length and each interior angle equal).

Would appreciate any advice on this. Thanks much!

Offline

 

#2 2010-01-31 14:57:34

greenflash
Scratcher
Registered: 2009-05-27
Posts: 1000+

Re: Basic Question: Making a geometric star

You going to want to repeat these steps:

[blocks]
<repeat( 5 )
<move( any number)steps>
<turn cw( 144 )degrees>
[/blocks]

If you accually want it to draw something, you're going to need to use the pen blocks, but 144 is the degree number you want to use.


http://i48.tinypic.com/2wrkirk.pnghttp://i46.tinypic.com/6r5zk7.pnghttp://i45.tinypic.com/2vtxr1t.png

Offline

 

Board footer