A graphics context is a module that has a handle to the script’s graphics output window and a library of graphics routines that are used to draw on the window. A graphics context is supplied to the script on.paint event handler each time the window needs to be redrawn.
The graphics context employs a pixel-based coordinate system with the origin in the upper left corner of the drawing window.
Related Topics