Welcome to Fractal Forums

Fractal Math, Chaos Theory & Research => IFS - Iterated Function Systems => Topic started by: Chris Thomasson on May 31, 2016, 08:01:19 AM




Title: Simple, 2d forest setting non-linear IFS...
Post by: Chris Thomasson on May 31, 2016, 08:01:19 AM
Where `rn' is a random number from 0...1:
____________________________
Code:
if (rn < 0.0108) 

    px = px - tan(px) + (cos(px) / 2.0); 
    py = py + abs(cos(px * 1.618)); 


else if (rn < 0.068) 

    px = cos(px - 0.01); 
    py = sin(py + 0.4); 



else 

    px = cos(px + 0.6); 
    py = sin(py / 1.168); 

____________________________

Here is a very crude rendering I made a while back:

https://plus.google.com/101799841244447089430/posts/jfpsXNaRc3x (https://plus.google.com/101799841244447089430/posts/jfpsXNaRc3x)

Does this IFS work for you?