GDDM-PGF V2R1.3 OPS User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF | BOOK


Creating rounded corners

GDDM-PGF V2R1.3 OPS User's Guide
SC33-1776-00



Use the keyword RADIUS (R) to create rounded corners. For example:


          line 10 10, 10 50, 90 50, w 5mm, r 2cm

draws a circular arc with a radius of 2cm at the corner point (10,50) The width is 5mm.

The radius cannot be more than half the distance between the corner point and the nearest point. For example, if the line limits a square, the radius can be at most half the length of the side, creating a circle. If you specify a radius larger than the limit, OPS will reduce it to the maximum without giving an error message. See Figure 35 for some examples.


    __________________________________________________________________________________ 
   |                                                                                  |
   |                                                                                  |
   |                                                                                  |
   |                                                                                  |
   | PICTURE 31                                                                                 |
   |                                                                                  |
   |                                                                                  |
   |                                                                                  |
   |__________________________________________________________________________________|

Figure 35. Sample lines


Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012