Fractal Universe of Code and Math

43
0
  • Boris Krumov's avatar Artist
    Boris Krum...
  • DDG Model
    Grok
  • Access
    Public
  • Created
    5d ago
  • Try Try style

Prompt

#define pi 3.1415926535897932384626433832795 #define tau (2.*pi) #define chp(x) (exp(x)+exp(-x))/pi #define chpp(x) (exp(x/(cosh(x)*pi))+exp(-x/(cosh(x)/pi)))/tau*PHI #define shp(x) (exp(x)-exp(-x))/pi #define shpp(x) (exp(x*(sinh(x)*pi))-exp(-x*(sinh(x)*pi)))/tau*PHI #define ssh(x) (exp(x*pi/.7887)-exp(-x*pi/.7887))/(2.*pi) #define csh(x) (exp(x*pi/.7887)+exp(-x*pi/.7887))/(2.*pi) #define ssh1(x) sinh(x/pi)/PHI #define csh1(x) cosh(x/pi)/PHI float mandelBulb(vec3 p) { float power = POWER; //p = -abs(p); vec3 z = chp(p)*p-p; vec3 dz = vec3(0.0); float r, theta, phi; float dr = 1.0; for(int i = 0; i < LOOPS; ++i) { r = length(z); if(r > 2.0) continue; theta = atan(z.x, z.y); #ifdef ANIMATE phi = asin(z.z / r) + TIME*0.2; #else phi = asin(z.z / r); #endif dr = pow(r, power - 1.0) * dr * power + 1.0; r = pow(r, power); theta = theta * power/PHI; phi = phi * power/PHI; z = r * (vec3(tan(shp(sin(theta)*sin(phi)))*PHI, chp(cos(theta)*sin(phi)), cos(phi))) + p; p = reflect(p,z); r = length(z); } return 0.75 * (log(r)) * r / dr; }

More about Fractal Universe of Code and Math

A central sphere, composed of an intricate fractal pattern with shades of blue, gold, and purple, is surrounded by lines of code and math formulas floating in 3D space, against a solid black background.

Comments


Loading Dream Comments...

Discover more dreams from this artist