doodle.java2d.effect

Type members

Classlikes

final class Canvas extends JFrame

A Canvas is an area on the screen to which Pictures can be drawn.

A Canvas is an area on the screen to which Pictures can be drawn.

Companion:
object
Source:
Canvas.scala
object Canvas
Companion:
class
Source:
Canvas.scala
sealed abstract class Center extends Product with Serializable

Determines where the center of the canvas is located.

Determines where the center of the canvas is located.

Companion:
object
Source:
Center.scala
object Center
Companion:
class
Source:
Center.scala
final case class Frame(size: Size, title: String, center: Center, background: Option[Color], redraw: Redraw)

The Frame specifies how to create a Canvas.

The Frame specifies how to create a Canvas.

Companion:
object
Source:
Frame.scala
object Frame
Companion:
class
Source:
Frame.scala
final class Java2DPanel(frame: Frame)(implicit runtime: IORuntime) extends JPanel
Companion:
object
Source:
Java2DPanel.scala
Companion:
class
Source:
Java2DPanel.scala
object Java2d

Utilities for rendering with Java2D

Utilities for rendering with Java2D

Source:
Java2d.scala

Write an animation as an animated GIF. The GIF file format doesn't support transparency to the degree we need to faithfully render Java2d images. In particular it doesn't support semi-transparent redraw. As a result we just fill with the background color on each frame, if the background is set.

Write an animation as an animated GIF. The GIF file format doesn't support transparency to the degree we need to faithfully render Java2d images. In particular it doesn't support semi-transparent redraw. As a result we just fill with the background color on each frame, if the background is set.

Source:
Java2dAnimationWriter.scala
trait Java2dWriter[Fmt <: Format] extends Writer[Algebra, Frame, Fmt] with Base64[Algebra, Frame, Fmt]
Companion:
object
Source:
Java2dWriter.scala
Companion:
class
Source:
Java2dWriter.scala
sealed trait Redraw

Determines how the Canvas handles drawing multiple Pictures. The default is to clear the Canvas with the Frame 's background color every time a new picture is rendered. Alternatively a different color can be specified. This allows one to blend together pictures while keeping a constant background.

Determines how the Canvas handles drawing multiple Pictures. The default is to clear the Canvas with the Frame 's background color every time a new picture is rendered. Alternatively a different color can be specified. This allows one to blend together pictures while keeping a constant background.

Companion:
object
Source:
Redraw.scala
object Redraw
Companion:
class
Source:
Redraw.scala
sealed abstract class Size extends Product with Serializable
Companion:
object
Source:
Size.scala
object Size
Companion:
class
Source:
Size.scala