diff options
Diffstat (limited to 'src/cmd/plot/libplot/circ.c')
-rw-r--r-- | src/cmd/plot/libplot/circ.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cmd/plot/libplot/circ.c b/src/cmd/plot/libplot/circ.c new file mode 100644 index 00000000..53337117 --- /dev/null +++ b/src/cmd/plot/libplot/circ.c @@ -0,0 +1,12 @@ +#include "mplot.h" +void circ(double xc, double yc, double r){ + Point p; + int rad; + p.x=SCX(xc); + p.y=SCY(yc); + if (r < 0) + rad=SCR(-r); + else + rad=SCR(r); + ellipse(screen, p, rad, rad, 0, getcolor(e1->foregr), ZP); +} |