Properties:
color (type: color) — default: whitecoords (type: coord[]) — draw a tube passing through these coordinatesopacity (type: number) — default: 1radius (type: number) — default: 1Draw a tube.
{
"type": "tube",
"color": [1, 1, 1],
"coords": [
[[0, 0, 0]],
[[1, 1, 1]]
]
}
{
"type": "tube",
"color": [1, 1, 1],
"coords": [
[[0, 0, 0]],
[[1, 0, 0]],
[[1, 1, 0]],
[[1, 1, 1]],
[[1, 0, 1]],
[[0, 0, 1]],
[[0, 1, 1]],
[[0, 1, 0]]
],
"radius": 0.1
}