| 587 | } |
| 588 | |
| 589 | Path2d Path2d::rectangle( float x, float y, float width, float height ) |
| 590 | { |
| 591 | Path2d shape; |
| 592 | shape.moveTo( x, y ); |
| 593 | shape.lineTo( x + width, y ); |
| 594 | shape.lineTo( x + width, y + height ); |
| 595 | shape.lineTo( x, y + height ); |
| 596 | shape.close(); |
| 597 | return shape; |
| 598 | } |
| 599 | |
| 600 | Path2d Path2d::roundedRectangle( float x, float y, float width, float height, float rx, float ry ) |
| 601 | { |