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.
For example, this Frame specifies a fixed size and a background color.