Thursday 22 April 2021

fractal

 

 

 

 

 


 

 

 to begin

begin      

         breathe in

breathe in

          breathe out

wrap your thought

      around your heart

warp your heart

through your thoughts

     time

and space

create now

                                               then

when you are ready

you will see

your life is s subtle

                            fractal


double MinRe = -2.0;
double MaxRe = 1.0;
double MinIm = -1.2;
double MaxIm = MinIm+(MaxRe-MinRe)*ImageHeight/ImageWidth;
double Re_factor = (MaxRe-MinRe)/(ImageWidth-1);
double Im_factor = (MaxIm-MinIm)/(ImageHeight-1);
unsigned MaxIterations = 30;

for(unsigned y=0; y<ImageHeight; ++y)
{
    double c_im = MaxIm - y*Im_factor;
    for(unsigned x=0; x<ImageWidth; ++x)
    {
        double c_re = MinRe + x*Re_factor;

        double Z_re = c_re, Z_im = c_im;
        bool isInside = true;
        for(unsigned n=0; n<MaxIterations; ++n)
        {
            double Z_re2 = Z_re*Z_re, Z_im2 = Z_im*Z_im;
            if(Z_re2 + Z_im2 > 4)
            {
                isInside = false;
                break;
            }
            Z_im = 2*Z_re*Z_im + c_im;
            Z_re = Z_re2 - Z_im2 + c_re;
        }
        if(isInside) { putpixel(x, y); }
    }
}

Saturday 10 April 2021

closing in opening up


 

i've cheated death

i go to sleep every night and die

i wake and am born every morn

it's that simple

i remember everything

all of the time

underneath my spirit

guided by my fortune

a ghost story i brought

from my castle

home with me

sitting by the fire

heavily meditated 

underwhelmed underneath 

the same stars

the black hole in my mind

will take me to

another place

strange and different

i am not scared