Properties:
color (type: color) — default: whitecoords (type: coord[]) — array of cylinders’ centersedgeForm (type: object) — default: {}, object with the following properties:
color (type: color) — edges’ color, default: blackshowEdges (type: bool) — default: trueradius (type: number) — default: 1opacity (type: number) — default: 1Draw cylinders from the even-numbered positions to the odd ones.
{
"type": "cylinder",
"color": [0.5, 0.5, 0.5],
"coords": [
[[0, 0, 0]],
[[1, 1, 1]],
],
"opacity": 0.5,
"edgeForm": { "showEdges": false }
}

{
"type": "cylinder",
"color": [1, 1, 1],
"coords": [
[[-1, -1, -1]], // first cylinder begin
[[0, 0, 0]], // first cylinder end
[[0, 0, 0]], // second cylinder begin
[[1, 1, 1]] // second cylinder end
],
"edgeForm": { "showEdges": false }
}
{
"type": "cylinder",
"color": [1, 1, 1],
"coords": [
[null, [0.25, 0.25, 0.25]],
[null, [0.75, 0.75, 0.75]]
],
"edgeForm": { "color": [0, 1, 0] },
"radius": 0.25
}