Version 0 of Alternative Canvases

Updated 2009-01-15 18:33:53 by KJN

The canvas widget is Tk's workhorse for 2D graphical display, and can handle both bitmap and vector graphics. It was inspired by Joel Bartlett's ezd program, which provides structured graphics in a Scheme environment. In turn, canvas has inspired similar features in other graphical toolkits and even in web browsers via the <canvas> tag [L1 ].

The Tk canvas lacks modern features such as antialiasing, and an alpha channel for transparency/translucency. These might be implemented in future versions of Tk - see Tk 9.0 WishList.

This page lists alternatives to the Tk canvas widget for 2D graphics. Some of these are really replacements for Tk itself, others use the feature set of the 3D library OpenGL but in a 2D mode.

Widget Replacements

  • TkZinc - see zinc
  • TkPath

Tk Replacements

OpenGL-based tools

  • 3dcanvas
  • Canvas2½D [L2 ] which uses Tcl3D and claims to be 100% compatible with Tk canvas