get_sphere_cgo#
- biotite.interface.pymol.get_sphere_cgo(pos: Sequence[float] | ndarray[tuple[Any], dtype[floating]], radius: float, color: Sequence[float] | ndarray[tuple[Any], dtype[floating]]) list[float | int | floating][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.