Advertisement
Aslai

Untitled

Feb 10th, 2013
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <cstdio>
  2. #define D double
  3. int main(){FILE*q=fopen("an.bmp","wb");fwrite("BM?ร\0\0\0\0\0\0\0\0 \0\0\0รดรด\0\0",4,8,q);for(D j=0;j++<500;)for(D i=0;i++<500;){D x,y,c=x=y=0;while(x*x+y*y<4&&c++<100)y=2*x*y+j/125-2+(x=x*x-y*y+i/125-3)-x;int o=5*c*(4<x*x+y*y);fwrite(&o,3,1,q);}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement