Hello
This is the most minimal example of a Gesso application - a starting point for anything you might build.
Configuration
The argument to launch
is an AppSpec
record. The Gesso manual has a section covering AppSpec
in detail.
Here, we use:
name
- the ID of our application - is"hello"
initialState
isunit
because this application doesn’t track any state- the
viewBox
isnull
, meaning we don’t need a custom coordinate system for the drawing - we’ll just use the dimensions of the canvas window
isFullscreen
, so the canvas will take up the entire page- in
behavior
, we overwrite the defaultrender
function with our function that draws the text"hello world"