aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/plot/libplot/box.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/plot/libplot/box.c')
-rw-r--r--src/cmd/plot/libplot/box.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cmd/plot/libplot/box.c b/src/cmd/plot/libplot/box.c
new file mode 100644
index 00000000..4654bc85
--- /dev/null
+++ b/src/cmd/plot/libplot/box.c
@@ -0,0 +1,8 @@
+#include "mplot.h"
+void box(double x0, double y0, double x1, double y1){
+ move(x0, y0);
+ vec(x0, y1);
+ vec(x1, y1);
+ vec(x1, y0);
+ vec(x0, y0);
+}