From 62bd2068f674be4708aaa1acee0db3cce6f20614 Mon Sep 17 00:00:00 2001 From: "legoff.laurent" Date: Fri, 26 Nov 2010 16:45:40 +0000 Subject: [PATCH] add ps test files link --- draw2d/src/cmd/ps_tests/Tests.ps | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 draw2d/src/cmd/ps_tests/Tests.ps diff --git a/draw2d/src/cmd/ps_tests/Tests.ps b/draw2d/src/cmd/ps_tests/Tests.ps new file mode 100644 index 0000000..e17e660 --- /dev/null +++ b/draw2d/src/cmd/ps_tests/Tests.ps @@ -0,0 +1,17 @@ +%! +% Example of rotation... draws 36 lines in a circular pattern + +0 10 360 { % Go from 0 to 360 degrees in 10 degree steps + newpath % Start a new path + + gsave % Keep rotations temporary + 144 144 moveto + rotate % Rotate by degrees on stack from 'for' + 72 0 rlineto + stroke + grestore % Get back the unrotated state + +} for % Iterate over angles + +showpage +