Discuss Scratch

HeroBrineNZK
Scratcher
82 posts

How do I draw a circle using scripts?


Hi everyone, can you please tell me how to draw a circle using blocks?
Thnx
drmcw
Scratcher
1000+ posts

How do I draw a circle using scripts?

Easiest way is
whenclickedgotox:0y:100pointindirection90clearpendownrepeat360move1stepsturn1degreespenup
HeroBrineNZK
Scratcher
82 posts

How do I draw a circle using scripts?

Ok, thanks
Colorful!

whenclickedgotox:0y:0pointindirection90clearrepeat360move1stepsturn1degreeschangepencolorby1pendownpenup

Last edited by HeroBrineNZK (Sept. 20, 2013 06:31:17)

-appletree-
Scratcher
43 posts

How do I draw a circle using scripts?

whenclickedforeverturn15degreesmove10steps
-appletree-
Scratcher
43 posts

How do I draw a circle using scripts?

-appletree- wrote:

whenclickedforeverturn15degreesmove10steps
pendown

oh do pen down!
Cyoce
Scratcher
500+ posts

How do I draw a circle using scripts?

definedrawcirclewithradiusratx:xy:ysetito0penupgotox:xy:y+rpendownrepeat360gotox:x+r*sinofiy:y+r*cosofichangeiby1

Last edited by Cyoce (Jan. 3, 2015 21:49:46)

hppavilion
Scratcher
100+ posts

How do I draw a circle using scripts?

Cyoce wrote:

definedrawcirclewithradiusratx:xy:ysetito0penupgotox:xy:y+rpendownrepeat360gotox:x+r*sinofiy:y+r*cosofichangeiby1
And if he wants an ellipse he should use:

definedrawellipsewithradiir1,r2atx:xy:ysetito0penupgotox:xy:y+rpendownrepeat360gotox:x+r1*sinofiy:y+r2*cosofichangeiby1

Last edited by hppavilion (Jan. 4, 2015 01:47:30)

Harakou
Scratcher
1000+ posts

How do I draw a circle using scripts?

-appletree- wrote:

whenclickedforeverturn15degreesmove10steps
This thread is over a year old and it looks like the question has already been answered. Please don't bump up old threads.

Powered by DjangoBB