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

#1 2011-02-06 21:10:11

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Fractal Designer

FractalDesigner
FractalDesigner2.0 Better U.I. (instead of all the ask boxes, sliders are shown)

This project creates fractals of all shapes and sizes, but, unlike all the others, you can invent your OWN fractal! There are 3 simple commands; turn, move, and recurse. They all take one input, and are pretty self-explanatory, except for recurse. Recurse is where recursion comes in! The input for the recurse command is the number which determines the size for the next iteration.

Oh, yeah, and once you've entered in all the variables, press space for it to start drawing.

For example, a Serpinski triangle:

Code:

move size;turn -120;recurse 2;move size;turn -120;recurse 2;move size;turn -120;recurse 2;

And, a snowflake one:

Code:

turn 120;move size;recurse 3;turn -60;move size;turn 120;move size;recurse 3;turn -60;move size;turn 120;move size;recurse 3;turn -60;move size;turn 120;move size;recurse 3;turn -60;move size;turn 120;move size;recurse 3;turn -60;move size;turn 120;move size;recurse 3;turn -60;move size;

And this makes a cool tree. Who ever said that fractals had to be symetrical?

Code:

move size;turn -15;recurse 1.3333333333;turn 35;recurse 1.6666666666;turn -200;move size;turn 180;

Comming Soon:
1. More parameters for recursion (variables passed down through the 'recurse' command)
2. Calculations (e.g. 'move size * 2')
3. Conditional statements

Wow, this is going to turn into a real programming language!

Last edited by rubiks_cube_guy238 (2011-02-09 07:07:42)


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#2 2011-02-07 17:41:11

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: Fractal Designer

One of my best projects. And, does it get any attention? No, of course not. Bump!


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#3 2011-02-09 07:08:16

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: Fractal Designer

shove  sad


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#4 2011-03-15 20:46:22

wilsmar
Scratcher
Registered: 2011-03-15
Posts: 1

Re: Fractal Designer

I don't uderstand. I haven't had Scratch real long, and I don't know how to use you directions. Can you explain it?  sad

Offline

 

Board footer