diff options
author | Noel Welsh <noel@untyped.com> | 2017-05-31 13:30:03 +0200 |
---|---|---|
committer | Noel Welsh <noel@untyped.com> | 2017-05-31 13:30:03 +0200 |
commit | 6168080be4a171f23977af01bf1e831a500fed91 (patch) | |
tree | 1289307e1482c2a46a11802c5f4603c78688538f | |
parent | 3967aa60988034a64f7d2a4a2bcb955b6f68a4db (diff) | |
download | creative-scala-template-6168080be4a171f23977af01bf1e831a500fed91.tar.gz creative-scala-template-6168080be4a171f23977af01bf1e831a500fed91.tar.bz2 creative-scala-template-6168080be4a171f23977af01bf1e831a500fed91.zip |
Update to Doodle 0.8.0 / Scala 2.12
-rw-r--r-- | build.sbt | 8 | ||||
-rw-r--r-- | src/main/scala/Example.scala | 7 |
2 files changed, 8 insertions, 7 deletions
@@ -1,4 +1,4 @@ -scalaVersion := "2.11.8" +scalaVersion := "2.12.2" resolvers += Resolver.bintrayRepo("underscoreio", "training") @@ -6,7 +6,7 @@ initialCommands in console := """ |import doodle.core._ |import doodle.core.Image._ |import doodle.syntax._ - |import doodle.jvm.Java2DCanvas._ + |import doodle.jvm.Java2DFrame._ |import doodle.backend.StandardInterpreter._ |import doodle.examples._ """.trim.stripMargin @@ -16,6 +16,6 @@ cleanupCommands in console := """ """.trim.stripMargin libraryDependencies ++= Seq( - "underscoreio" %% "doodle" % "0.7.0", - "org.typelevel" %% "cats" % "0.7.2" + "underscoreio" %% "doodle" % "0.8.0", + "org.typelevel" %% "cats" % "0.9.0" ) diff --git a/src/main/scala/Example.scala b/src/main/scala/Example.scala index 5226246..ac72a34 100644 --- a/src/main/scala/Example.scala +++ b/src/main/scala/Example.scala @@ -1,12 +1,13 @@ import doodle.core._ import doodle.core.Image._ import doodle.syntax._ -import doodle.jvm.Java2DCanvas._ +import doodle.jvm.Java2DFrame._ import doodle.backend.StandardInterpreter._ // To use this example, open the SBT console and type: // // Example.image.draw -object Example { - val image = circle(10) on circle(20) on circle(30) +object Example extends App { + val image = circle(10).fillColor(Color.red) on circle(20) on circle(30) + image.draw } |