home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Animation Festival 1.4
/
gaf_vol1.iso
/
demos
/
resource
/
cone.poc
< prev
next >
Wrap
Text File
|
1990-05-31
|
472b
|
37 lines
//Makes a cone. Whoopi!
cone(int maxrad, int x, int y)
{
int i;
int swidth, sheight;
GetSize(&swidth, &sheight);
for (i=0;i<=maxrad;i++)
{
Circle(x,y,i);
Circle(x+1,y,i);
Circle(x, y+1,i);
SetColor(i);
}
}
main()
{
int x,y,rad;
char ibuf[16];
SetFilled(0);
GetInk(ibuf);
SetInk("v grad");
for(;;)
{
if (RubCircle(&x,&y,&rad))
cone(rad, x, y);
else
break;
}
SetInk(ibuf);
}