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

#1 2009-09-17 19:27:47

melikanikole
Scratcher
Registered: 2009-09-12
Posts: 5

circle

I had been trying make circle with sqrt formula, deltaX, signY, and radius.  it only go left and right   anyone can help me with that?

Offline

 

#2 2009-09-18 15:06:57

goch
Scratcher
Registered: 2007-06-06
Posts: 21

Re: circle

To draw a circle I use sinus and cosinus.

Here is a script, which draws a circle:

When green flag clicked
  set angle to 0
  repeat 360
     change angle by 1
     set x to cos of angle * 150
     set y to sin  of angle * 150

"angle" is a variable. The values of cosinus and sinus are always between -1 and 1.
So you have to multiply these values by in this case 150, so that you can see the circle. Try out other numbers! Don't forget the pen down block.

In this project http://scratch.mit.edu/projects/goch/678308
the cabins describe circle.

Does this help?

Offline

 

#3 2009-09-18 15:37:51

TheSaint
Scratcher
Registered: 2008-11-04
Posts: 1000+

Re: circle

melikanikole wrote:

I had been trying make circle with sqrt formula, deltaX, signY, and radius.  it only go left and right   anyone can help me with that?

You can create a circle by graphing using this forumla:

Sqt ( Radius of Circle - X^2)
-1 * Sqt (Radius of Circle - X^2)

Offline

 

Board footer