Doodle: Compositional Vector Graphics
Copyright Noel Welsh.
Doodle is a Scala library for compositional vector graphics.
Distributed under the Apache 2.0 license.
This is the development branch of Doodle. The current release is
master branch has the released version.
You can use Doodle in your own project by importing the JARs published to Maven Central. To use it add the following to your
scalaVersion := "2.12.8" // Doodle is currently published for Scala 2.12 only libraryDependencies += "creativescala.org" %% "doodle" % "0.9.0-SNAPSHOT"
Alternatively you can
git clone or download Doodle and use it directly from the SBT console. See the instructions below.
Creative Scala is currently the main documentation for Doodle. Creative Scala is a free introductory Scala ebook. Follow the link to download your copy from our web site.
Below we have a few tips to get you started.
Getting Started from SBT
bash$ sbt > # This is the SBT prompt. Press Ctrl+D to quit to the OS.
Start the console:
> rootJVM/console scala> # This is the Scala prompt. Press Ctrl+D to quit to SBT.
Use Scala commands to draw a shape in a native window:
A window should appear containing a red circle.
You can also save your masterpieces to a file.
Doodle currently supports writing to PNG, GIF, and JPG formats. Just alter the type parameter of
Doodle was written by Noel Welsh with contributions from the contributors listed by Github.