1-04-17から1日間の記事一覧

Z^Z^Z.. Julia set

#include <stdio.h> #include <stdlib.h> #include <math.h> // color stuff void hue2rgb(int hue, int vmax, int *r, int *g, int *b) { int *max=r; int *p1=g; int *p2=b; int h0= hue+60; if(h0>=360)h0-=360; if(h0>=240) { max=b; p1=r; p2=g; h0-=240; } else if(h0>=120) { max</math.h></stdlib.h></stdio.h>…

Z^Z^Z^Z .. Mandelblot set

#include <stdio.h> #include <stdlib.h> #include <math.h> // color stuff void hue2rgb(int hue, int vmax, int *r, int *g, int *b) { int *max=r; int *p1=g; int *p2=b; int h0= hue+60; if(h0>=360)h0-=360; if(h0>=240) { max=b; p1=r; p2=g; h0-=240; } else if(h0>=120) { max</math.h></stdlib.h></stdio.h>…