MCPcopy Create free account
hub / github.com/a-e-k/canvas_ity / transform

Function transform

test/test.cpp:373–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371}
372
373void transform( canvas &that, float width, float height )
374{
375 that.set_color( stroke_style, 0.0f, 0.0f, 0.0f, 1.0f );
376 for ( int step = 0; step < 8; ++step )
377 {
378 that.transform( 1.0f, 0.0f, 0.1f, 1.0f, width * -0.05f, 0.0f );
379 that.stroke_rectangle( width * 0.25f, height * 0.25f,
380 width * 0.5f, height * 0.5f );
381 }
382}
383
384void transform_fill( canvas &that, float width, float height )
385{

Callers 5

add_glyphMethod · 0.85
text_to_linesMethod · 0.85
scaleMethod · 0.85
rotateMethod · 0.85
translateMethod · 0.85

Calls 3

set_colorMethod · 0.80
transformMethod · 0.80
stroke_rectangleMethod · 0.80

Tested by

no test coverage detected