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

Function stroke_long

test/test.cpp:1383–1394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1381}
1382
1383void stroke_long( canvas &that, float width, float height )
1384{
1385 that.set_color( stroke_style, 0.0f, 0.0f, 0.0f, 1.0f );
1386 for ( float step = 0.0f; step <= 29.0f; step += 1.0f )
1387 {
1388 that.move_to( 0.4f * width, -23.0f * height );
1389 that.line_to( width * step / 29.0f, height );
1390 that.move_to( -23.0f * width, 0.4f * height );
1391 that.line_to( width, height * step / 29.0f );
1392 }
1393 that.stroke();
1394}
1395
1396void clip( canvas &that, float width, float height )
1397{

Callers

nothing calls this directly

Calls 4

set_colorMethod · 0.80
move_toMethod · 0.80
line_toMethod · 0.80
strokeMethod · 0.80

Tested by

no test coverage detected