CGO Text

From PyMOLWiki
Revision as of 21:10, 14 November 2005 by Inchoate (talk | contribs) (Reverted edit of 2chemp, changed back to last version by Inchoate)
Jump to navigation Jump to search
CGO Text Example from following example
# draw text using cgo
from pymol import cmd
from pymol.cgo import *
from pymol.vfont import plain

cgo = []

axes = [[2.0,0.0,0.0],[0.0,2.0,0.0],[0.0,0.0,2.0]]

pos = [0.0,0.0,0.0]
wire_text(cgo,plain,pos,'Hello World',axes)

pos = [0.0,-3.0,0.0]
cyl_text(cgo,plain,pos,'Hello Universe',0.10,axes=axes)