Skip to content

Commit

Permalink
Fix bug where fillPolygon would only draw the ouline
Browse files Browse the repository at this point in the history
  • Loading branch information
Krassnig committed Nov 14, 2023
1 parent 16bde7d commit d820b12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/codedraw/Image.java
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,7 @@ public void fillPolygon(double x1, double y1, double x2, double y2, double x3, d
checkNaNAndInfinity(vertices, "vertices");

beforeDrawing();
drawPolygon(new DoubleList().add(x1, y1, x2, y2, x3, y3).add(vertices).toArray());
fillPolygon(new DoubleList().add(x1, y1, x2, y2, x3, y3).add(vertices).toArray());
afterDrawing();
}

Expand Down

0 comments on commit d820b12

Please sign in to comment.