| 1200 | } |
| 1201 | |
| 1202 | void rectangle( canvas &that, float width, float height ) |
| 1203 | { |
| 1204 | that.set_color( stroke_style, 0.0f, 0.0f, 0.0f, 1.0f ); |
| 1205 | that.set_color( fill_style, 1.0f, 0.0f, 0.0f, 1.0f ); |
| 1206 | that.set_line_width( 8.0f ); |
| 1207 | that.move_to( 0.3f * width, 0.3f * height ); |
| 1208 | that.line_to( 0.7f * width, 0.3f * height ); |
| 1209 | that.line_to( 0.7f * width, 0.7f * height ); |
| 1210 | that.line_to( 0.3f * width, 0.7f * height ); |
| 1211 | that.close_path(); |
| 1212 | that.move_to( 0.0f, 0.0f ); |
| 1213 | for ( float y = -1.0f; y <= 1.0f; y += 1.0f ) |
| 1214 | for ( float x = -1.0f; x <= 1.0f; x += 1.0f ) |
| 1215 | that.rectangle( ( 0.5f + 0.1f * x ) * width, |
| 1216 | ( 0.5f + 0.1f * y ) * height, |
| 1217 | x * 0.3f * width, y * 0.3f * height ); |
| 1218 | that.line_to( width, height ); |
| 1219 | that.fill(); |
| 1220 | that.stroke(); |
| 1221 | } |
| 1222 | |
| 1223 | void fill( canvas &that, float width, float height ) |
| 1224 | { |
nothing calls this directly
no test coverage detected