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
Members list
Value members
Concrete methods
Use the given color as the background.
Make the center of the canvas the origin.
Make the center of the canvas the center of the picture's bounding box.
Make the center of the canvas the center of the picture's bounding box.
Attributes
- Source
- Frame.scala
When redrawing, clear the screen with the background color.
When redrawing, clear the screen with the given color.
Use a fully transparent background.
Size the canvas with the given fixed dimensions.
Size the canvas to fit to the picture's bounding box, plus the given border around the bounding box.
Size the canvas to fit to the picture's bounding box, plus the given border around the bounding box.
Attributes
- Source
- Frame.scala
Title the window with the given string.