;Position file automatically generated by XaoS 3.5
; - a realtime interactive fractal zoomer
;Use xaos -load <filename> to display it
(initstate)
(palette 1 1191063399 0)
(formula 'mandel)
(juliaseed -0.11 0.6557)
(maxiter 1388)
(julia #t)
(view -0.1986 0.01201 2.757 2.757)
// Check Orientation of image : mark first quadrant
// it should be in the upper right position
// uses global var : ...
int CheckOrientation(unsigned char A[] )
{
unsigned int ix, iy; // pixel coordinate
double Zx, Zy; // Z= Zx+ZY*i;
unsigned i; /* index of 1D array */
for(iy=iyMin;iy<=iyMax;++iy)
{
Zy = GiveZy(iy);
for(ix=ixMin;ix<=ixMax;++ix)
{
// from screen to world coordinate
Zx = GiveZx(ix);
i = Give_i(ix, iy); /* compute index of 1D array from indices of 2D array */
if (Zx>0 && Zy>0) A[i]=255-A[i]; // check the orientation of Z-plane by marking first quadrant */
}
}
return 0;
}