GraphicsΒΆ

The rest of this page describes the Graphics library using Python syntax. For example, you can use:

from Myro import *

to include the subset of Graphics functions and classes contained in the Calico Myro module. To directly load all of the defined functions from the Graphics library in Calico, one could:

from Graphics import *

This will make all of the functions and classes available directly:

circle = Circle((100,200), 20)

Or, you could also:

import Graphics

However, then you must always use the “Graphics.” prefix on functions and classes:

circle = Graphics.Circle((100,200), 20)

You can also just import the items you want, like so:

from Graphics import Circle

The following code assumes that you have imported all of the functions and classes from Graphics. The term “shape” is used to describe generic graphical objects.