doodle.canvas.effect

Members list

Type members

Classlikes

final case class Canvas(target: Node, frame: Frame)

Attributes

Companion
object
Source
Canvas.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Canvas

Attributes

Companion
class
Source
Canvas.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Canvas.type

Attributes

Source
CanvasRenderer.scala
Supertypes
class Object
trait Matchable
class Any
Self type
final case class Frame(id: String, size: Size, background: Option[Color])

The Frame specifies how to create the area where the canvas output will be drawn. The idiomatic way to create a Frame is to start with Frame(anId), where anId is the id of the DOM element where the output should be drawn, and then call the builder methods starting with with.

The Frame specifies how to create the area where the canvas output will be drawn. The idiomatic way to create a Frame is to start with Frame(anId), where anId is the id of the DOM element where the output should be drawn, and then call the builder methods starting with with.

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

Frame("canvas").withSize(300, 300).withBackground(Color.midnightBlue)

Attributes

Companion
object
Source
Frame.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Frame

Attributes

Companion
class
Source
Frame.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Frame.type
enum Size

Attributes

Companion
object
Source
Size.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Size

Attributes

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