tests/arthur/data/qps/pens.qps
changeset 0 1918ee327afb
equal deleted inserted replaced
-1:000000000000 0:1918ee327afb
       
     1 translate 10 10
       
     2 
       
     3 begin_block penstyles
       
     4 setPen black 0 solidline flatcap
       
     5 drawLine 0 0 100 0
       
     6 setPen black 0 dashline flatcap
       
     7 drawLine 100 0 100 40
       
     8 setPen black 0 dotline flatcap
       
     9 drawLine 100 40 200 0
       
    10 setPen black 0 dashdotline flatcap
       
    11 drawLine 200 0 300 0
       
    12 setPen black 0 dashdotdotline flatcap
       
    13 drawLine 300 0 400 40
       
    14 
       
    15 translate 0 50
       
    16 setPen blue 2 solidline flatcap
       
    17 drawLine 0 0 100 0
       
    18 setPen blue 2 dashline flatcap
       
    19 drawLine 100 0 100 40
       
    20 setPen blue 2 dotline flatcap
       
    21 drawLine 100 40 200 0
       
    22 setPen blue 2 dashdotline flatcap
       
    23 drawLine 200 0 300 0
       
    24 setPen blue 2 dashdotdotline flatcap
       
    25 drawLine 300 0 400 40
       
    26 
       
    27 translate 0 50
       
    28 setPen red 5 solidline flatcap
       
    29 drawLine 0 0 100 0
       
    30 setPen red 5 dashline flatcap
       
    31 drawLine 100 0 100 40
       
    32 setPen red 5 dotline flatcap
       
    33 drawLine 100 40 200 0
       
    34 setPen red 5 dashdotline flatcap
       
    35 drawLine 200 0 300 0
       
    36 setPen red 5 dashdotdotline flatcap
       
    37 drawLine 300 0 400 40
       
    38 end_block
       
    39 
       
    40 translate 0 50
       
    41 scale 1 2
       
    42 repeat_block penstyles
       
    43 
       
    44 
       
    45 # Test cap styles
       
    46 resetMatrix
       
    47 translate 420 10
       
    48 setPen green 5 dashdotline flatcap
       
    49 drawLine 0 0 200 0
       
    50 setPen green 5 dashdotline roundcap
       
    51 drawLine 0 20 200 20
       
    52 setPen green 5 dashdotline squarecap
       
    53 drawLine 0 40 200 40
       
    54 
       
    55 
       
    56 # Test join styles
       
    57 resetMatrix
       
    58 translate 420 80
       
    59 setBrush nobrush
       
    60 begin_block joinstyles
       
    61 setPen orange 10 solidline flatcap miterjoin
       
    62 drawPolyline [ 0 0  80 0  80 80  0 80 ]
       
    63 
       
    64 translate 0 100
       
    65 setPen aquamarine 10 solidline squarecap beveljoin
       
    66 drawPolyline [ 0 0  80 0  80 80  0 80 ]
       
    67 
       
    68 translate 0 100
       
    69 setPen purple 10 solidline roundcap roundjoin
       
    70 drawPolyline [ 0 0  80 0  80 80  0 80 ]
       
    71 end_block
       
    72 
       
    73 translate 130 -200
       
    74 scale 2 1
       
    75 rotate 1
       
    76 repeat_block joinstyles
       
    77 
       
    78 # transparent lines
       
    79 resetMatrix
       
    80 translate 10 400
       
    81 setPen #7f000000
       
    82 drawLine 0 0 50 0
       
    83 setPen #7f000000 1 SolidLine
       
    84 drawLine 0 10 50 10
       
    85 setPen #7f000000 5 SolidLine
       
    86 drawLine 0 20 50 20
       
    87 setPen #7f000000 10  SolidLine
       
    88 drawLine 0 30 50 30
       
    89 setPen #7f000000
       
    90 drawLine 0 0 0 50
       
    91 setPen #7f000000 1 SolidLine
       
    92 drawLine 10 0 10 50
       
    93 setPen #7f000000 5 SolidLine
       
    94 drawLine 20 0 20 50
       
    95 setPen #7f000000 10 SolidLine
       
    96 drawLine 30 0 30 50
       
    97 
       
    98 # pen styles
       
    99 resetMatrix
       
   100 translate 0 500
       
   101 setPen black 0 DashLine
       
   102 drawLine 20 20 100 20
       
   103 translate 0 10
       
   104 setPen black 0 DotLine
       
   105 drawLine 20 20 100 20
       
   106 translate 0 10
       
   107 setPen black 0 DashDotLine
       
   108 drawLine 20 20 100 20
       
   109 translate 0 10
       
   110 setPen black 0 DashDotDotLine
       
   111 drawLine 20 20 100 20
       
   112 
       
   113 # scaling ellipse
       
   114 resetMatrix
       
   115 setPen black 0.008 DashLine
       
   116 translate 250 550
       
   117 rotate 30
       
   118 scale 250 250
       
   119 drawEllipse -0.4 -0.4 0.8 0.8
       
   120 
       
   121 # scaling path
       
   122 path_addEllipse star -0.3 -0.3 0.6 0.6
       
   123 
       
   124 resetMatrix
       
   125 setPen black 0.008 DashLine
       
   126 translate 250 550
       
   127 rotate 30
       
   128 scale 250 250
       
   129 drawPath star
       
   130