Properties:
color
(type: color) — default: blackcoords
(type: coord[]) — array of arrow line-segment coordinatesopacity
(type: number) — default: 1
Draw an arrow with line segments from the first coordinate to the last one. The arrow’s head ends on the last coordinate.
{
"type": "arrow",
"color": [1, 0, 0],
"coords": [
[[0, 0, 0]],
[[1, 0, 0]],
[[1, 1, 0]],
[[1, 1, 1]]
],
"opacity": 0.5, // 50% of opacity
}
{
"type": "arrow",
"color": [1, 0.5, 0.5],
"coords": [
[[1, 1, 1]],
[[0, 0, 0]]
]
}