MCPcopy Create free account
hub / github.com/cinder/Cinder / run

Method run

test/cairoTest/cairoTest.cpp:156–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154// curve to
155struct 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

Callers

nothing calls this directly

Calls 6

setLineWidthMethod · 0.80
strokeMethod · 0.80
setSourceRgbaMethod · 0.80
moveToMethod · 0.45
curveToMethod · 0.45
lineToMethod · 0.45

Tested by

no test coverage detected