Fractal algorithms that react to external stimuli

I’m looking for a script that will generate a fractal that responds to external conditions. For example, if I have a site and one side is the ocean and the other side is land, can I run a script that will generate a fractal object, e.g. coral reef, that is responding to the conditions of the site. Anything like that around?