get_cone_cgo#
- biotite.interface.pymol.get_cone_cgo(start: Sequence[float] | ndarray[tuple[Any], dtype[floating]], end: Sequence[float] | ndarray[tuple[Any], dtype[floating]], start_radius: float, end_radius: float, start_color: Sequence[float] | ndarray[tuple[Any], dtype[floating]], end_color: Sequence[float] | ndarray[tuple[Any], dtype[floating]], start_cap: bool, end_cap: bool) list[float | int | floating][source]#
Get the CGO for a cone.
- Parameters:
- start, endarray-like, shape=(3,)
The start and end position of the cone.
- start_radius, end_radiusfloat
The radius of the cone at the start and end.
- start_color, end_colorarray-like, shape=(3,)
The color at the start and end of the cone given as RGB values in the range (0, 1).
- start_cap, end_capbool
If true, a cap is drawn at the start or end of the cone. Otherwise the cone is displayed as open.
- Returns:
- cgolist of float
The CGO representation.