diff options
Diffstat (limited to 'src/main/scala/Example.scala')
-rw-r--r-- | src/main/scala/Example.scala | 7 |
1 files changed, 4 insertions, 3 deletions
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 } |