bug - dynamic plane is inverted

17 views
Skip to first unread message

Adam Majewski

unread,
Apr 24, 2015, 12:22:33 PM4/24/15
to xaos-...@googlegroups.com
Hi,


I think that dynamic plane ( for julia sets ) is inverted  = upside down 

See :

;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)



and compare to 





It can be checked by coloring right upper quadrant  

  {  z : re(z)>0 and im(z)> 0  }


In my c programs I use : 



// 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;
}

 

Am I right ?

Adam


Adam Majewski

unread,
Apr 26, 2015, 3:57:58 AM4/26/15
to xaos-...@googlegroups.com
I'm lookin for the code when I can change it . 
 
  
Reply all
Reply to author
Forward
0 new messages