Skip to content

Commit

Permalink
Add withNoPen picture transform.
Browse files Browse the repository at this point in the history
  • Loading branch information
litan committed Aug 22, 2023
1 parent 47fbd51 commit 160f855
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/main/scala/net/kogics/kojo/core/Picture.scala
Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,5 @@ trait Picture extends InputAware {
def withClipping(clipPic: Picture): Picture
def withMask(maskPic: Picture): Picture
def withPenCapJoin(capJoin: (Int, Int)): Picture
def withNoPen(): Picture
}
4 changes: 2 additions & 2 deletions src/main/scala/net/kogics/kojo/lite/Versions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package net.kogics.kojo.lite
object Versions {
val KojoMajorVersion = "2.9"
val KojoVersion = "2.9.26"
val KojoRevision = "r5"
val KojoBuildDate = "18 August 2023"
val KojoRevision = "r6"
val KojoBuildDate = "22 August 2023"
val JavaVersion = {
val jrv = System.getProperty("java.runtime.version")
val arch = System.getProperty("os.arch")
Expand Down
1 change: 1 addition & 0 deletions src/main/scala/net/kogics/kojo/picture/pics.scala
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ trait CorePicOps2 extends GeomPolygon { self: Picture =>
def withClipping(clipPic: Picture): Picture = new ClipPicWithPic(this, clipPic)(canvas)
def withMask(maskPic: Picture): Picture = this.withEffect(new MaskOp(maskPic))
def withPenCapJoin(capJoin: (Int, Int)): Picture = PostDrawTransform { pic => pic.setPenCapJoin(capJoin) }(this)
def withNoPen(): Picture = PostDrawTransform { pic => pic.setNoPen() }(this)
}

trait RedrawStopper extends Picture {
Expand Down

0 comments on commit 160f855

Please sign in to comment.