PDA

View Full Version : Fractal tree


pom
12-19-2004, 10:35 AM
A nice little fractal tree that grows leaves :)

Krilnon
12-19-2004, 10:49 AM
That's pretty cool!

When I click to clear all the mc's, the leaves stay behind.

Ψ
12-19-2004, 11:24 AM
WOOOOOOOOOOOooooooooooOOOOOOWWWWWWWWW i like it :) looks great

unikrl8
12-21-2004, 04:34 AM
cool :-D

pom
12-23-2004, 11:59 AM
That's pretty cool!

When I click to clear all the mc's, the leaves stay behind.Do they? :h: Weird :-/ I'll take a look at that this weekend.

hee_hah_dude
01-01-2005, 08:09 AM
wow !
interesting !
How did u do that

pom
01-01-2005, 12:07 PM
hhd > The source is attached :P

And you guys were right, there's a mistake in the code. You need to add a line:// Some line before that
function growHeart (x,y,mS) {
ii++;
var heart = coeur.duplicateMovieClip("c"+ii, 100000+ii);
clip_arr.push(heart);
heart._xscale = heart._yscale = 0;
// rest of the code

evileks
01-01-2005, 02:38 PM
Code worked. I was watching it make the trees and I get distracted, looking around on the web, I close my browser and I see Flash is still open and it is covered in leaves still making trees, I try and close flash and I get an error, then windows shut down. WTF? I can understand flash needing to close but not windows?

GreenLantern
01-02-2005, 06:22 AM
Amazing.

pom
01-02-2005, 09:51 AM
Code worked. I was watching it make the trees and I get distracted, looking around on the web, I close my browser and I see Flash is still open and it is covered in leaves still making trees, I try and close flash and I get an error, then windows shut down. WTF? I can understand flash needing to close but not windows?Wow, sorry about that, I hope it didn't cause too much trouble :-/

Darkfuzz
01-03-2005, 11:17 PM
Its like having your own forest! LoL http://www.kirupa.com/forum/images/smilies/silly.gif Thats really cool.

Anyone try changing the leaf to a different pic? 'Gets some pretty funky results.

jerez_z
01-05-2005, 02:59 PM
I made something like that, as my introduction to fractals... turned out pretty good (gets pretty processor intensive near the end though).

Nicely done pom

EDIT:
If you uncomment a couple of things it also has a wind effect:


//uncomment these:

//line 113
this._rotation = (_root.w*this.level)+this.rot;
if (this._rotation>50) {
_root.m = false;
} else if (this._rotation<-50) {
_root.m = true;
}

//line 137
windInt = setInterval(setWind, 100);

Disco-Stu
01-05-2005, 04:29 PM
http://www.phong.com

He's got some cool tree/fractal experiments in the astrophong section...