get_multiline_cgo#

biotite.interface.pymol.get_multiline_cgo(start, end, color, width=1.0)[source]#

Get the CGO for one or multiple straight lines drawn from given start to end positions.

Parameters:
start, endarray-like, shape=(3,) or shape=(n,3)

The n lines are drawn from the start to the end positions.

colorarray-like, shape=(3,) or shape=(n,3)

The color of the lines given as RGB values in the range (0, 1). Either one color can be given that is used for all lines or an individual color for each line can be supplied.

widthfloat, optional

The rendered width of the lines. The width is only visible after calling ray().

Returns:
cgolist of float

The CGO representation.