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

Function transform_stroke

test/test.cpp:399–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399void transform_stroke( canvas &that, float width, float height )
400{
401 that.set_color( stroke_style, 0.0f, 0.0f, 0.0f, 1.0f );
402 that.set_line_width( 8.0f );
403 float segments[] = { 22.0f, 8.0f, 10.0f, 8.0f };
404 that.set_line_dash( segments, 4 );
405 that.begin_path();
406 that.arc( width * 0.5f, height * 0.5f, min( width, height ) * 0.4f,
407 0.0f, 6.28318531f );
408 that.close_path();
409 that.transform( 1.0f, 1.0f, 0.0f, 2.0f, 0.0f, 0.0f );
410 that.stroke();
411}
412
413void set_transform( canvas &that, float width, float height )
414{

Callers

nothing calls this directly

Calls 8

set_colorMethod · 0.80
set_line_widthMethod · 0.80
set_line_dashMethod · 0.80
begin_pathMethod · 0.80
arcMethod · 0.80
close_pathMethod · 0.80
transformMethod · 0.80
strokeMethod · 0.80

Tested by

no test coverage detected