본문내용
#include
#include
#include
#define ROUND(x) (int)(x+0.5)
#define MAX 500
int imageArray[MAX][MAX][3];
typedef struct {
float x;
float y;
} Point2D;
void main()
{
int i, j, c, w, h, maxLevel;
int k, p;
FILE *fp;
Point2D vertice[3];
Point2D tmp;
char fn[20];
for(i=0;i
for(j=0;j
for(c=0;c<3;c++){
imageArray[i][j][c]=255;
}
}
}
vertice[0].x = 250.0; vertice[0].y = 100.0;
vertice[1].x = 100.0; vertice[1].y = 400.0;
vertice[2].x = 400.0; vertice[2].y = 400.0;
tmp.x = rand()%500; tmp.y = rand()%500;
for(k=0; k<50000; k++) {
p = rand() % 3;
tmp.x = ( tmp.x + vertice[p].x) / 2.0;
tmp.y = ( tmp.y + vertice[p].y) / 2.0;
#include
#include
#define ROUND(x) (int)(x+0.5)
#define MAX 500
int imageArray[MAX][MAX][3];
typedef struct {
float x;
float y;
} Point2D;
void main()
{
int i, j, c, w, h, maxLevel;
int k, p;
FILE *fp;
Point2D vertice[3];
Point2D tmp;
char fn[20];
for(i=0;i
imageArray[i][j][c]=255;
}
}
}
vertice[0].x = 250.0; vertice[0].y = 100.0;
vertice[1].x = 100.0; vertice[1].y = 400.0;
vertice[2].x = 400.0; vertice[2].y = 400.0;
tmp.x = rand()%500; tmp.y = rand()%500;
for(k=0; k<50000; k++) {
p = rand() % 3;
tmp.x = ( tmp.x + vertice[p].x) / 2.0;
tmp.y = ( tmp.y + vertice[p].y) / 2.0;
소개글