%!PS % Illustrates for-loop % Joseph O'Rourke % Line parameters 5 setlinewidth 0 0 1 setrgbcolor % Blue 1 setlinecap % Round caps % To convert inches to points /inch {72 mul} def % Set origin to be center of 8.5x11 page 4.25 inch 5.5 inch translate % Draw circles on diagonal % start incr end 0 10 100 { newpath dup % i is on stack, copy it so i,i is on stack % x,y = i,i are the 1st two of the 5 params to arc 50 0 360 arc stroke } for showpage