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

Method draw

samples/CairoBasic/src/CairoBasicApp.cpp:38–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 }
37
38 void draw( cairo::Context &ctx ) const
39 {
40 // draw the solid petals
41 ctx.setSource( mColor );
42 makePath( ctx );
43 ctx.fill();
44
45 // draw the petal outlines
46 ctx.setSource( mColor * 0.8f );
47 makePath( ctx );
48 ctx.stroke();
49 };
50
51 private:
52 vec2 mLoc;

Callers

nothing calls this directly

Calls 3

strokeMethod · 0.80
setSourceMethod · 0.45
fillMethod · 0.45

Tested by

no test coverage detected