| 154 | // curve to |
| 155 | struct TestCurveTo : public TestBase { |
| 156 | virtual void run( fli::cairo::Context &ctx ) { |
| 157 | double x=25.6, y=128.0; |
| 158 | double x1=102.4, y1=230.4, x2=153.6, y2=25.6, x3=230.4, y3=128.0; |
| 159 | |
| 160 | ctx.moveTo( x, y ); |
| 161 | ctx.curveTo( x1, y1, x2, y2, x3, y3 ); |
| 162 | |
| 163 | ctx.setLineWidth( 10.0 ); |
| 164 | ctx.stroke(); |
| 165 | |
| 166 | ctx.setSourceRgba( 1, 0.2, 0.2, 0.6 ); |
| 167 | ctx.setLineWidth( 6.0 ); |
| 168 | ctx.moveTo( x, y ); |
| 169 | ctx.lineTo( x1, y1 ); |
| 170 | ctx.moveTo( x2, y2 ); |
| 171 | ctx.lineTo( x3, y3 ); |
| 172 | ctx.stroke(); |
| 173 | } |
| 174 | }; |
| 175 | |
| 176 | // dash |
nothing calls this directly
no test coverage detected