Canvas

With the help of a GC it is possible to draw on a Canvas widget. The usual functions like dots, lines, (rounded) rectangles, ovals, polylines, arcs, text and images are supported. All shapes can be outlined or (when closed) filled with any color and opacity.

Try the example on the left. The controls at the bottom are:

Polyform
Click on several points in the drawing area to draw a polyline. Close and fill the shape by clicking on the starting point.
Oval
Click to define the center, click once more to define the radius.
Stamp
Click once to draw an image into the area.
Transparency
Draw semi-transparent shapes.
Clear
Clears the drawing area.