#include<stdio.h>
#include<math.h>
#include<graphics.h>
#define PI 3.14
int main()
{
float i ,j ,x ,y;
int MAXX2 ,MAXY2;
int gd = DETECT,gm = 0;
initgraph(&gd,&gm,"");
MAXX2 = getmaxx()/2;
MAXY2 = getmaxy()/2;
for(i = -5*PI;i < 5*PI;i +=0.01)
for(j = -5*PI;j < 5*PI;j += 0.01)
{
y = sin(i-j*2)*5+i*j;
x = cos(i*2+j)*y+3*y;
putpixel(x+MAXX2 ,y*j/2+MAXY2 ,((int)abs(i+j)*4)%15+1);
}
getch();
}