I'm done with the Algebra, Syntax, Constructor and now working on Java2d Backend. Clipit is the end implementation, taking clipping area as Closed Path as argument as it was intended to.
@main def hello(): Unit =
val closed = ClosedPath.empty
.moveTo(80, -60)
.lineTo(10, 10).lineTo(10, 60).lineTo(80, 60).lineTo(80, -60)
val blackSquare = Picture.triangle(200, 100).fillColor(Color.red).clipit(closed)
blackSquare.draw()
Right now with the Java2dClip.scala file where after the setClip is done, when doing Clip, java.awt.Shape is required as argument where I have Drawing[A], and need to return vice versa.
I'm done with the Algebra, Syntax, Constructor and now working on Java2d Backend. Clipit is the end implementation, taking clipping area as Closed Path as argument as it was intended to.
Right now with the Java2dClip.scala file where after the setClip is done, when doing Clip, java.awt.Shape is required as argument where I have Drawing[A], and need to return vice versa.