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
object Canvas
Companion
class
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
object Center
Companion
class
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
object Frame
Companion
class
final
class Java2DPanel(frame: Frame)(implicit runtime: IORuntime) extends JPanel
Companion
object
Companion
class
object Java2d

Utilities for rendering with Java2D

Utilities for rendering with Java2D

object Java2dAnimationRenderer extends AnimationRenderer[Canvas]
object Java2dAnimationWriter extends AnimationWriter[Algebra, Drawing, Frame, Gif]

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.

object Java2dGifWriter extends Java2dWriter[Gif]
object Java2dJpgWriter extends Java2dWriter[Jpg]
object Java2dPdfWriter extends Java2dWriter[Pdf]
object Java2dPngWriter extends Java2dWriter[Png]
object Java2dRenderer extends DefaultRenderer[Algebra, Drawing, Frame, Canvas]
trait Java2dWriter[Format] extends Writer[Algebra, Drawing, Frame, Format] with Base64[Algebra, Drawing, Frame, Format]
Companion
object
Companion
class
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
object Redraw
Companion
class
sealed abstract
class Size extends Product with Serializable
Companion
object
object Size
Companion
class