Category : C Source Code
Archive   : HERC-C.ZIP
Filename : GRCIRC.C
#define LINT_ARGS
#include
extern float a_r;
extern int grset(int, int);
void grcirc(x1, y1, rad)
unsigned x1, y1;
long rad;
{
unsigned i, j, k, r, x;
r = rad*.75;
rad *= rad;
for(k = 0; k <= r; k++) {
x = (sqrt((double)(rad - k*k)));
i = a_r * x;
grset(x1+k, y1+i);
grset(x1-k, y1+i);
grset(x1+k, y1-i);
grset(x1-k, y1-i);
j = a_r * k;
grset(x1+x, y1+j);
grset(x1-x, y1+j);
grset(x1+x, y1-j);
grset(x1-x, y1-j);
}
}
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/