| 1029 | } |
| 1030 | |
| 1031 | void 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 | |
| 1053 | void line_to( canvas &that, float width, float height ) |
| 1054 | { |
no test coverage detected