In Polybios, each page object maintains a flag named "graphics mode". The graphics mode corresponds to the graphics object of the PDF specification.
The graphics mode is changed by invoking particular functions. The functions that can be invoked are decided by the value of the graphics mode.
The following figure shows the relationships of the graphics mode.