aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/plot/libplot/disk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/plot/libplot/disk.c')
-rw-r--r--src/cmd/plot/libplot/disk.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cmd/plot/libplot/disk.c b/src/cmd/plot/libplot/disk.c
new file mode 100644
index 00000000..47b39012
--- /dev/null
+++ b/src/cmd/plot/libplot/disk.c
@@ -0,0 +1,12 @@
+#include "mplot.h"
+void plotdisc(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);
+ fillellipse(screen, p, rad, rad, getcolor(e1->foregr), ZP);
+}