get_sphere_cgo#

biotite.interface.pymol.get_sphere_cgo(pos, radius, color)[source]#

Get the CGO for a sphere.

Parameters:
posarray-like, shape=(3,)

The position of the sphere.

radiusfloat

The radius of the sphere.

colorarray-like, shape=(3,)

The color of the sphere given as RGB values in the range (0, 1).

Returns:
cgolist of float

The CGO representation.