summaryrefslogtreecommitdiff
path: root/graphics/epix/doc/dots.xp
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/epix/doc/dots.xp')
-rw-r--r--graphics/epix/doc/dots.xp28
1 files changed, 28 insertions, 0 deletions
diff --git a/graphics/epix/doc/dots.xp b/graphics/epix/doc/dots.xp
new file mode 100644
index 0000000000..1f13fb6099
--- /dev/null
+++ b/graphics/epix/doc/dots.xp
@@ -0,0 +1,28 @@
+/* -*-ePiX-*- */
+/* dots.c -- Dot primitives */
+#include "epix.h"
+using namespace ePiX;
+
+int main()
+{
+ unitlength("1pt");
+ bounding_box(P(0,0), P(8,1));
+ picture(P(72,12));
+ offset(P(10,2));
+
+ begin();
+
+ spot(P(0,0));
+ dot(P(1,0));
+ ddot(P(2,0));
+
+ box(P(4,0));
+ bbox(P(5,0));
+
+ line(P(6.5,0), P(8.75,0));
+
+ ring(P(7,0));
+ circ(P(8,0));
+
+ end();
+}