Adds Rect to Path, appending PathVerb#MOVE, three PathVerb#LINE, and PathVerb#CLOSE, starting with top-left corner of Rect; followed by top-right, bottom-right, and bottom-left. @param rect Rect to add as a closed contour @return reference to Path @see <a href="https:
(Rect rect)
| 1235 | * @see <a href="https://fiddle.skia.org/c/@Path_addRect">https://fiddle.skia.org/c/@Path_addRect</a> |
| 1236 | */ |
| 1237 | public Path addRect(Rect rect) { |
| 1238 | return addRect(rect, PathDirection.CLOCKWISE, 0); |
| 1239 | } |
| 1240 | |
| 1241 | /** |
| 1242 | * Adds Rect to Path, appending {@link PathVerb#MOVE}, three {@link PathVerb#LINE}, and {@link PathVerb#CLOSE}, |