pxh

Mandelbrot set generator

pxh
Jun 11th, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.47 KB | None | 0 0
  1. #define x 1200
  2. #define d(y)a(y)
  3. #define l(y)r(y)
  4. #define r(y)d(y)
  5. #define t(y)int y
  6. #include <stdio.h>
  7. #define a(y)double y,
  8. #define b(y)y,y>>8,y>>16,y>>24
  9. M(a(n)d(e)l(b)r(o)t(_)){return
  10. n*n+e*e>36?_:_?M(n*n-e*e+b,2*n
  11. *e+o,b,o,~-_):0;}main(i,p){pr\
  12. intf("BM%c%c%c%c%c%c%c%c%c%c%\
  13. c%c%c%c%c%c%c%c%c%c%c%c%c%c",b
  14. (x*x*2+26),b(0),b(26),b(12),b(
  15. x+x*131072/3),b(1572865));for(
  16. i=0;i<x*x*2+(p=M(0,0,3.6*(i%x)
  17. /x-2.7,3.6*(i++/x)/x-1.2,255))
  18. /256;printf("%c%c%c",p,p,p));}
Advertisement
Add Comment
Please, Sign In to add comment