-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|512|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> Graphical Effects


 
Pakz
Created : 16 February 2023
 
Language : Html/Javascript

Fractal Leaf (Barsley Furn)





Francois Lionet Poster this code on his facebook. Very little code for a real good looking factal leaf.

I converted it to HTML/Javascript.



 

Comments


Thursday, 16 February 2023, 10:10
Jayenkai
Oooh, that's lovely!
Thursday, 16 February 2023, 10:17
rockford
That's really neat
Friday, 17 February 2023, 15:31
Jayenkai
Maybe it's just pure dumb luck that makes this work as well as it does, but I just can't fathom how the maths of this works!
It's truly baffling code!!! Way above my head.

> Reveal 🔎
^^ JSE version.
If anyone can explain the code, feel free to .. explain the code!
Friday, 17 February 2023, 21:54
Pakz
I think it might just be based on one leaf. And then repeat that leaf pattern in a pattern.

I have no clue what so ever other than that.
Saturday, 18 February 2023, 01:30
AndyH
Well this bit does the centre stalk

if a< 0.01

The rest is mathematical magic to me too.