Quote: "You are the guy that made that fractal engine, right?"
Yes, I made HyperFractals for generating fractals based on complex holomorphic functions. If I do release the next edition of HyperFractals, I'll add this algorithm to it.
Quote: "How did you come up with those complex formulas?"
If you mean the colour interpolation function, that is my formula for moving about in the three-dimensional colour space.
The actual spatial interpolation was by Ron Menendez; I just converted his drawing method to DBPro code.
Here's a much better, faster version of the Sierpinski plotter, with variable parameters for drawing an entire class of fractals: (The supplied parameters generate the Koch snowflake.)
set display mode 1024,768,32 : `or whatever your screen resolution is
radius# = screen height()*0.4
centrex# = screen width()*0.5 : centrey# = screen height()*0.5
d as float : n as integer
d = 2.0/3.0 : `alter this value ( relative distance to interpolate )
n = 6 : `alter this value ( number of points )
DIM p(n-1,1) as float
DIM colour(n-1) as dword
c as dword
For i = 0 to n-1
p(i,0) = (centrex#)+radius#*SIN(i*(360.0/n))
p(i,1) = (centrey#)+radius#*COS(i*(360.0/n))
colour(i) = HSL to RGB(i*(360.0/n),1.0,0.5)
Next i
Rx as float : Ry as float
Rx = centrex# : Ry = centrey#
Do
lock pixels
For x = 1 to 100
i = rnd(n-1)
Rx = (1.0 - d)*Rx + d*p(i,0)
Ry = (1.0 - d)*Ry + d*p(i,1)
c = RGB((RGBR(c)+RGBR(colour(i)))/2,(RGBG(c)+RGBG(colour(i)))/2,(RGBB(c)+RGBB(colour(i)))/2)
dot Rx,Ry,c
Next x
unlock pixels
Sync
Loop
The optimist's right, The pessimist's right.