ArgPhi





Images made with function mturn.
This function computes external argument of point Z0=0 for mandelbrot set for Fc(z)= z*z + c
external argument = Arg(Phi(Z0))
This function gives external argument in turns
1 [turn] = 360 [degrees] = 2* Pi [radians]
Most important parts of this programs is is based on code of program mandel by Wolf Jung.  Thx for publishing the code under GNU General Public License
IDE = Dev-C++ v 4.9.9.2
OS - Windows
type - console program
graphic library : SDL .



if (last_iter==iter_max) {color=(0 << 16) | (0 << 8) | 0;}
else // exterior of M-set
{
double argphi=mturn(C);
if (argphi<0) color=(100 << 16) | (100 << 8) | 100;
else color=13000+(int(1024*argphi)% max_color)*1000000 ;
};
//or :
//else color=GiveColorFromList8(1+int(1024*argphi) % 8 );

Code

Here we are using GiveRainbowColor function
This function ( in C++ version) takes double position. If position < = 1 then colors are not repeating:

Position is < = 7 ( here are 7 repetition of colors )

Position is < = 10( 10 repetition)

Position is < = 50( 50 repetition)

Position is < = 100( 100 repetition)

Position is < = 500( 500 repetition)


Position is < = 70.0( 70 repetition)

Code
Here jturn function is used

Main page


Autor: Adam Majewski

Feel free to e-mail me. (:-)) adammaj1-at-o2-dot--pl

Strona utworzona przy pomocy programu: EditPlus www.editplus.com

About