= Overview =
This script will create a CGO circle with the origin at the specified X,Y,Z coordinates. Also, you can specify the radius and the colors. See the examples.
If you want to draw a circle around an object or selection, use circleSelection. If you want pure flexibility over your circle then use cgoCircle.
There are two functions here:
cgoCircle
- — creates a CGO circle at some user-specified location
circleSelection
- —creates a circle around the named object or selection.
-
Drawn circle.
-
CGO circle.
-
Circles of specified radius.
-
Circle with specified width.
-
Circle with a line width of 150. Pores anyone?
Usage
<source lang="python">
import math
import pymol
from pymol.cgo import *
import random
def cgoCircle(x, y, z, r=8.0, cr=1.0, cg=0.4, cb=0.8, w=2.0):
"""
Create a CGO circle
PARAMS
x, y, z
X, Y ..→