diff options
Diffstat (limited to 'graphics/epix/doc/objects.xp')
-rw-r--r-- | graphics/epix/doc/objects.xp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/graphics/epix/doc/objects.xp b/graphics/epix/doc/objects.xp new file mode 100644 index 0000000000..d0828f0b94 --- /dev/null +++ b/graphics/epix/doc/objects.xp @@ -0,0 +1,33 @@ +/* -*-ePiX-*- */ +#include "epix.h" +using namespace ePiX; + +int main() +{ + picture(P(0,0), P(5,2), "3.75 x 1.5in"); + + begin(); + + // roof + triangle(P(0.9, 1), P(3.1, 1), P(2, 1.5)); // vertices + + // sun + circle(P(4,1.5), 0.25); // center and radius + + // house + rect(P(1,0), P(3,1)); // opposite corners + // grid(P(1,0), P(3,1), 1, 10); // corners, numbers of subdivisions + + // door + fill(Black(0.1)); + rect(P(2.3,0), P(2.7,0.8)); // corners + + fill(White()); + // window + rect(P(1.4,0.2), P(2, 0.6)); + bold(); + grid(P(1.4,0.2), P(2, 0.6), 2, 2); + + line(P(xmin(),0), P(xmax(),0)); + end(); +} |