A visualization in Roassal is presented in a canvas. The canvas acts as a placeholder for graphical shapes, and shapes may be added to and removed from a canvas. The canvas is modeled using the RSCanvas class, and most of the operations related to a canvas are expressed using messages.
All the code provided in this chapter is available at https://github.com/bergel/AgileVisualizationAPressCode/blob/main/02-02-Canvas.txt.
Opening, Resizing, and Closing a Canvas
Creating and opening a canvas is central when using Roassal. A canvas is created using the RSCanvas new expression. A canvas is ...