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"initialStateisunitbecause this application doesn’t track any state- the
viewBoxisnull, meaning we don’t need a custom coordinate system for the drawing - we’ll just use the dimensions of the canvas windowisFullscreen, so the canvas will take up the entire page- in
behavior, we overwrite the defaultrenderfunction with our function that draws the text"hello world"
Sample output
