add ps test files link
This commit is contained in:
parent
5334d4cf16
commit
62bd2068f6
1 changed files with 17 additions and 0 deletions
17
draw2d/src/cmd/ps_tests/Tests.ps
Normal file
17
draw2d/src/cmd/ps_tests/Tests.ps
Normal file
|
@ -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
|
||||
|
Loading…
Reference in a new issue