Skip to content

Commit

Permalink
quickfix
Browse files Browse the repository at this point in the history
  • Loading branch information
aspiringLich committed Feb 6, 2023
1 parent e3bf034 commit 96d839a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/java/paintingcanvas/drawable/Drawable.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public T setOutline(Color color, int thickness) {
* @return The original object to allow method chaining
*/
public T setOutline(int thickness) {
this.outlineColor = color;
this.outlineStroke = new BasicStroke(thickness * 2);
return this.getThis();
}
Expand Down
5 changes: 5 additions & 0 deletions src/test/java/examples/Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ public static void main(String[] args) {
new Circle(canvas.width(), canvas.height(), 10, Color.RED);
new Circle(canvas.width(), 0, 10, Color.RED);


Circle c = new Circle(100, 100, 20)
.setColor(255, 0, 0)
.setOutline(10);

Line line = new Line(0, 0, 100, 100).setThickness(10)
.setColor(0xff0000);

Expand Down

0 comments on commit 96d839a

Please sign in to comment.