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

#1 2012-01-29 11:44:22

jackrulez
Scratcher
Registered: 2009-08-01
Posts: 1000+

How to make awesome swirly fractals. (tutorial)

They look like this.
http://img651.imageshack.us/img651/7806/picture6vu.png
To make them, first we'll need three variables. Let's call them "counter", "previousxposition", "previousyposition", and "previousdirection".
The script is as follows:

when gf clicked
set [counter v] to (1)
set [previousxposition v] to (x position)
set [previousyposition v] to (y position)
set [previousdirection v] to (direction)
pen down
repeat [the size you want-- 200 is good for 5 sides]
   move (counter) steps
   turn cw (((360) / [the number of sides you want up to 360]) + (2)) degrees
   change [counter v] by (1)
end
pen up
go to x: (previousxposition) y: (previousyposition)
point in direction (previousdirection)

Last edited by jackrulez (2012-01-29 12:00:49)


Yawn, another boring text signature. I should really make something better.

Offline

 

#2 2012-01-29 11:54:12

hello12345678910
Scratcher
Registered: 2009-07-11
Posts: 100+

Re: How to make awesome swirly fractals. (tutorial)

Awesome, I already know how to though. Are you gonna finish it?


http://tinyurl.com/8yt32o9 http://tinyurl.com/6tgwp5r || Fish = F+I+S+H = 6+9+19+8 = 42<<The answer to Life, the Universe and Everything

Offline

 

#3 2012-01-29 12:01:11

jackrulez
Scratcher
Registered: 2009-08-01
Posts: 1000+

Re: How to make awesome swirly fractals. (tutorial)

hello12345678910 wrote:

Awesome, I already know how to though. Are you gonna finish it?

Finished. ^^


Yawn, another boring text signature. I should really make something better.

Offline

 

#4 2012-01-29 12:18:34

hello12345678910
Scratcher
Registered: 2009-07-11
Posts: 100+

Re: How to make awesome swirly fractals. (tutorial)

jackrulez wrote:

hello12345678910 wrote:

Awesome, I already know how to though. Are you gonna finish it?

Finished. ^^

Cool. Mind if I add this to http://scratch.mit.edu/forums/viewtopic.php?id=88043?


http://tinyurl.com/8yt32o9 http://tinyurl.com/6tgwp5r || Fish = F+I+S+H = 6+9+19+8 = 42<<The answer to Life, the Universe and Everything

Offline

 

#5 2012-01-29 19:19:16

jackrulez
Scratcher
Registered: 2009-08-01
Posts: 1000+

Re: How to make awesome swirly fractals. (tutorial)

hello12345678910 wrote:

jackrulez wrote:

hello12345678910 wrote:

Awesome, I already know how to though. Are you gonna finish it?

Finished. ^^

Cool. Mind if I add this to http://scratch.mit.edu/forums/viewtopic.php?id=88043?

No, I don't.


Yawn, another boring text signature. I should really make something better.

Offline

 

#6 2012-02-01 00:12:08

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: How to make awesome swirly fractals. (tutorial)

Interesting. Very useful script for creating arbitrarily large fractals!


http://trinary.tk/images/signature_.php

Offline

 

Board footer