We are about to switch to a new forum software. Until then we have removed the registration on this forum.
So i´ve just started with fractals watching shiffman nature of code videos, and im very interesting in developing fractals with infinite zoom but i´ve haven´t figured it out,i´ve already tryd with scale and zoom in z, but with no succes.
this is my try :
float zoom;
float zoomspeed;
float zoomacel;
float size;
int counter;
void setup() {
size(600, 600, P3D);
zoomspeed = 1;
zoomacel = 0;
size = 100;
}
void draw() {
background(255);
zoomspeed +=zoomacel;
zoom += zoomspeed;
translate(0, 0, zoom);
fill(0);
drawcircle(width/2,height/2,600);
fill(255, 0, 0);
}
void drawcircle(float x,float y,float size) {
fill(255);
ellipse(x, y, size, size);
fill(0);
ellipse(x, y, size*0.90, size*0.90);
if (size > 0.1) {
counter++;
size*=0.75;
drawcircle(x,y,size);
//println("SIZE :", size);
}
}
Answers
This is not infinite and not smooth but ...
Thanks ! That code works beatifully, i don´t get it why you say is not infinite
Yet i noticed that is not that smooth.
I´ve created this effect based on your code yet i still have a lot to improved.
Here is a simplified,smooth and stable version of it: