Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active February 3, 2026 20:23
Show Gist options
  • Select an option

  • Save dacr/77cbb6e41a424d5d16e23745c915730c to your computer and use it in GitHub Desktop.

Select an option

Save dacr/77cbb6e41a424d5d16e23745c915730c to your computer and use it in GitHub Desktop.
Smallest doodle example. / published by https://github.com/dacr/code-examples-manager #5423ee0c-032e-47f7-b8a5-af5a1ec75338/589dd1acc4f035ec27f1a315925c54878d201726
// summary : Smallest doodle example.
// keywords : scala, vector-graphics, doodle, @testable
// publish : gist
// authors : David Crosson
// license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
// id : 5423ee0c-032e-47f7-b8a5-af5a1ec75338
// created-on : 2019-07-02T19:58:14Z
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
// ---------------------
//> using scala "3.4.2"
//> using dep "org.creativescala::doodle:0.23.0"
//> using dep "org.creativescala::doodle-image:0.23.0"
// ---------------------
import doodle.core.*
import doodle.core.format.*
import doodle.image.*
import doodle.image.syntax.all.*
import doodle.java2d.*
import cats.effect.unsafe.implicits.global
//Image.circle(100).fillColor(Color.red).draw()
Image.circle(100).fillColor(Color.red).write[Png]("circle.png")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment