Skip to content

Commit

Permalink
Closed the rounded rectangle in Path2d.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhoux committed Jan 2, 2024
1 parent cfbd3af commit 0a0e895
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cinder/Path2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,7 @@ Path2d Path2d::roundedRectangle( float x, float y, float width, float height, fl
shape.arcTo( rx, ry, 0, false, true, vec2( x, y + height - ry ) );
shape.lineTo( x, y + ry );
shape.arcTo( rx, ry, 0, false, true, vec2( x + rx, y ) );
shape.close();
return shape;
}

Expand Down

0 comments on commit 0a0e895

Please sign in to comment.