doodle.java2d.effect

Members list

Concise view

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.

Attributes

Companion:
object
Source:
Canvas.scala
Graph
Supertypes
class JFrame
class Frame
class Window
class Container
class Component
class Object
trait Matchable
class Any
object Canvas

Attributes

Companion:
class
Source:
Canvas.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Canvas.type
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.

Attributes

Companion:
object
Source:
Center.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
Known subtypes
object AtOrigin.type
object CenteredOnPicture.type
object Center

Attributes

Companion:
class
Source:
Center.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Center.type
final case class Frame(size: Size, title: String, center: Center, background: Option[Color], redraw: Redraw)

The Frame specifies how to create a Canvas. The idiomatic way to create a Frame is to start with Frame.default and then call the builder methods starting with with.

The Frame specifies how to create a Canvas. The idiomatic way to create a Frame is to start with Frame.default and then call the builder methods starting with with.

For example, this Frame specifies a fixed size and a background color.

Frame.default.withSize(300, 300).withBackground(Color.midnightBlue)

Attributes

Companion:
object
Source:
Frame.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
object Frame

Attributes

Companion:
class
Source:
Frame.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Frame.type
object Java2d

Utilities for rendering with Java2D

Utilities for rendering with Java2D

Attributes

Source:
Java2d.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Java2d.type

Attributes

Source:
Java2dAnimationRenderer.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

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.

Attributes

Source:
Java2dAnimationWriter.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source:
Java2dWriter.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source:
Java2dWriter.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source:
Java2dWriter.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source:
Java2dWriter.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source:
Java2dRenderer.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
trait Java2dWriter[Fmt <: Format] extends Writer[Algebra, Frame, Fmt] with Base64[Algebra, Frame, Fmt]

Attributes

Companion:
object
Source:
Java2dWriter.scala
Graph
Supertypes
trait Base64[Algebra, Frame, Fmt]
trait Writer[Algebra, Frame, Fmt]
class Object
trait Matchable
class Any
Known subtypes
object Java2dGifWriter.type
object Java2dJpgWriter.type
object Java2dPdfWriter.type
object Java2dPngWriter.type

Attributes

Companion:
trait
Source:
Java2dWriter.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
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.

Attributes

Companion:
object
Source:
Redraw.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Redraw

Attributes

Companion:
trait
Source:
Redraw.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Redraw.type
sealed abstract class Size extends Product with Serializable

Attributes

Companion:
object
Source:
Size.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
Known subtypes
object Size

Attributes

Companion:
class
Source:
Size.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Size.type