doodle.canvas.effect
package doodle.canvas.effect
Members list
Type members
Classlikes
Attributes
- Companion
- object
- Source
- Canvas.scala
- Supertypes
object Canvas
Attributes
- Companion
- class
- Source
- Canvas.scala
- Supertypes
- Self type
-
Canvas.type
object CanvasRenderer extends Renderer[Algebra, Frame, Canvas]
Attributes
- Source
- CanvasRenderer.scala
- Supertypes
- Self type
-
CanvasRenderer.type
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
object Frame
Attributes
- Companion
- class
- Source
- Frame.scala
- Supertypes
- Self type
-
Frame.type
enum Size
Attributes
- Companion
- object
- Source
- Size.scala
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
object Size
Attributes
- Companion
- enum
- Source
- Size.scala
- Supertypes
- Self type
-
Size.type
In this article