From dc8f9ddf7e8e7ba5e8335358e45a5f536df455f7 Mon Sep 17 00:00:00 2001 From: "legoff.laurent" Date: Fri, 26 Nov 2010 16:51:09 +0000 Subject: [PATCH] ps update --- draw2d/src/cmd/ps_tests/TestStar.ps | 17 -------- draw2d/src/cmd/ps_tests/TestTransform.ps | 50 ------------------------ 2 files changed, 67 deletions(-) delete mode 100644 draw2d/src/cmd/ps_tests/TestStar.ps delete mode 100644 draw2d/src/cmd/ps_tests/TestTransform.ps diff --git a/draw2d/src/cmd/ps_tests/TestStar.ps b/draw2d/src/cmd/ps_tests/TestStar.ps deleted file mode 100644 index e17e660..0000000 --- a/draw2d/src/cmd/ps_tests/TestStar.ps +++ /dev/null @@ -1,17 +0,0 @@ -%! -% 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 - diff --git a/draw2d/src/cmd/ps_tests/TestTransform.ps b/draw2d/src/cmd/ps_tests/TestTransform.ps deleted file mode 100644 index f55f7a2..0000000 --- a/draw2d/src/cmd/ps_tests/TestTransform.ps +++ /dev/null @@ -1,50 +0,0 @@ -%! -% Example to demonstrate translate, rotate, and scale - -% operator box: xcoord ycoord box - -% Creates one inch box at xcoord, ycoord -/box { - newpath - moveto - 72 0 rlineto - 0 72 rlineto - -72 0 rlineto - closepath -} def - -% Specify font for text labels -/Helvetica findfont 40 scalefont setfont - -gsave - 40 40 translate % Set origin to (40, 40) - 0 0 box stroke % Draw box at new origin... - 77 0 moveto - (Translated) show % and label -grestore - -gsave - 100 150 translate % Translate origin to (100, 150) - 30 rotate % Rotate counter-clockwise by 30 degrees - 0 0 box stroke % Draw box... - 75 0 moveto - (Translated & Rotated) show % and label -grestore - -gsave - 40 300 translate % Translate to (40, 300) - 0.5 1 scale % Reduce x coord by 1/2, y coord left alone - 0 0 box stroke % Draw box... - 75 0 moveto - (Translated & Squished) show % and label -grestore - -gsave - 300 300 translate % Set origin to (300, 300) - 45 rotate % Rotate coordinates by 45 degrees - 0.5 1 scale % Scale coordinates - 0 0 box stroke % Draw box - 75 0 moveto - (Everything) show -grestore - -showpage