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

Function close_path

test/test.cpp:1031–1051  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1029}
1030
1031void close_path( canvas &that, float width, float height )
1032{
1033 that.set_color( stroke_style, 0.0f, 0.0f, 0.0f, 1.0f );
1034 that.set_color( fill_style, 1.0f, 0.0f, 0.0f, 1.0f );
1035 that.set_line_width( 8.0f );
1036 that.close_path();
1037 that.line_to( 0.5f * width, 0.5f * height );
1038 that.line_to( 0.2f * width, 0.8f * height );
1039 that.line_to( 0.2f * width, 0.2f * height );
1040 that.close_path();
1041 that.line_to( 0.5f * width, 0.2f * height );
1042 that.line_to( 0.8f * width, 0.2f * height );
1043 that.close_path();
1044 that.close_path();
1045 that.move_to( 0.5f * width, 0.8f * height );
1046 that.line_to( 0.8f * width, 0.8f * height );
1047 that.line_to( 0.8f * width, 0.5f * height );
1048 that.close_path();
1049 that.fill();
1050 that.stroke();
1051}
1052
1053void line_to( canvas &that, float width, float height )
1054{

Callers 1

rectangleMethod · 0.85

Calls 7

set_colorMethod · 0.80
set_line_widthMethod · 0.80
close_pathMethod · 0.80
line_toMethod · 0.80
move_toMethod · 0.80
fillMethod · 0.80
strokeMethod · 0.80

Tested by

no test coverage detected