next up previous contents index
Next: help Up: Tcl Text Commands Previous: exit   Contents   Index


graphics

The graphics command draws low-level graphics primitives. These primitives can be used to draw a box around a molecule, or an arrow between two atoms, or place a text label somewhere in space. The command syntax is graphics <molid> <cmd>, where <molid> is a valid molecule id and <cmd> is one of the commands listed below. To create a ``blank'' molecule, use the Tcl command mol new. See the draw command for a possibly more convenient interface. Also refer to the VMD script library for some examples of user-defined graphics scripts.

As graphical primitives are added to the list they are assigned a unique, increasing id. The first object added is assigned $0$, the second is assigned $1$, etc. The commands which add an item return its value.


next up previous contents index
Next: help Up: Tcl Text Commands Previous: exit   Contents   Index
vmd@ks.uiuc.edu