diff options
Diffstat (limited to 'graphics/epix/doc/pathstyle.xp')
-rw-r--r-- | graphics/epix/doc/pathstyle.xp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/graphics/epix/doc/pathstyle.xp b/graphics/epix/doc/pathstyle.xp new file mode 100644 index 0000000000..47fe65e5e1 --- /dev/null +++ b/graphics/epix/doc/pathstyle.xp @@ -0,0 +1,24 @@ +/* -*-ePiX-*- */ +#include "epix.h" +using namespace ePiX; + +void dash_sample(double ht, std::string pattern) +{ + line_style(pattern); + line(P(0,ht), P(3,ht)); + label(P(3, ht), P(4,0), "\\code{line\\_style(\""+pattern+"\")}", r); +} + +int main() { + picture(P(0,0), P(4,4), "4x1in"); + + begin(); + + dash_sample(4, "-\\ \\ -"); + dash_sample(3, "-\\ \\ \\ \\ -"); + dash_sample(2, " .\\ "); + dash_sample(1, "-\\ .\\ -"); + dash_sample(0, ".\\ - ."); + + end(); +} |