Skip to content

Commit

Permalink
Add id picture transformation.
Browse files Browse the repository at this point in the history
  • Loading branch information
litan committed Oct 24, 2019
1 parent 3e0e053 commit c0d9f18
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/main/scala/net/kogics/kojo/lite/CoreBuiltins.scala
Original file line number Diff line number Diff line change
@@ -160,6 +160,7 @@ trait CoreBuiltins extends Rationals {
val BatchPics = picture.BatchPics
val trans = picture.trans _
val rot = picture.rot _
def id = picture.trans(0, 0)
def scale(f: Double) = picture.scale(f)
def scale(x: Double, y: Double) = picture.scale(x, y)
def draw(pictures: Picture*) = pictures.foreach { _ draw () }
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
@@ -3,8 +3,8 @@ package net.kogics.kojo.lite
object Versions {
val KojoMajorVersion = "2.7"
val KojoVersion = "2.7.08"
val KojoRevision = "r14"
val KojoBuildDate = "23 October 2019"
val KojoRevision = "r15"
val KojoBuildDate = "24 October 2019"
val JavaVersion = {
val jrv = System.getProperty("java.runtime.version")
val arch = System.getProperty("os.arch")

0 comments on commit c0d9f18

Please sign in to comment.