Alphabet order and moved previous field position
@@ -18,12 +18,12 @@ It contains the following classes:
The `Canvas` class is the core api for graphical display.
### Fields
+#### `static font: String`
+This is the name of the default font used for `Canvas.print(str, x, y, color)`. You can set this to `Font.default` to return to the DOME built-in font.
#### `static height: Number`
This is the height of the canvas/viewport, in pixels.
#### `static width: Number`
This is the width of the canvas/viewport, in pixels.
-#### `static font: String`
-This is the name of the canvas font as a string.
### Methods
#### `static circle(x: Number, y: Number, r: Number, c: Color) `
@@ -90,10 +90,6 @@ Resize the canvas to the given `width` and `height`, and reset the color of the
If `c` isn't provided, we default to black.
Resizing the canvas resets the "clipping region" to encompass the whole canvas, as if `Canvas.clip()` was called.
-### Instance Field
-#### `font: String`
-This sets the name of the default font used for `Canvas.print(str, x, y, color)`. You can set this to `Font.default` to return to the DOME built-in font.
-
## Color
An instance of the `Color` class represents a single color which can be used for drawing to the `Canvas`.
