© Alexandre Bergel 2022
A. BergelAgile Visualization with Pharohttps://doi.org/10.1007/978-1-4842-7161-2_7

7. Shapes

Alexandre Bergel1  
(1)
Santiago, Chile
 

Shapes are visual elements meant to be added to a canvas. A shape may be configured using various aspects, including color, border, line thickness, and many other parameters. This chapter details a number of shapes supported by Roassal.

All the code provided in this chapter is available at https://github.com/bergel/AgileVisualizationAPressCode/blob/main/02-03-Shapes.txt.

Box

A box is modeled with the RSBox class. For example, the following script adds a box to a canvas:
c := RSCanvas new.
box := RSBox new.
c add: box.
c open

Without any settings, as in this example, a box is gray and has a default size ...

Get Agile Visualization with Pharo: Crafting Interactive Visual Support Using Roassal now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.