get_cylinder_cgo#
- biotite.interface.pymol.get_cylinder_cgo(start: Sequence[float] | ndarray[tuple[Any], dtype[floating]], end: Sequence[float] | ndarray[tuple[Any], dtype[floating]], radius: float, start_color: Sequence[float] | ndarray[tuple[Any], dtype[floating]], end_color: Sequence[float] | ndarray[tuple[Any], dtype[floating]]) list[float | int | floating][source]#
Get the CGO for a cylinder.
- Parameters:
- start, endarray-like, shape=(3,)
The start and end position of the cylinder.
- radiusfloat
The radius of the cylinder.
- start_color, end_colorarray-like, shape=(3,)
The color at the start and end of the cylinder given as RGB values in the range (0, 1).
- Returns:
- cgolist of float
The CGO representation.