arc
The great-circle path between two places — the shortest route over the earth, drawn the way the earth actually is. On a mercator environment the London–Tokyo arc bends far north of the straight line between them, and that one element is the whole projection-distortion lesson. Wrap it in a cue.draw and the route traces itself along its length.
#Attributes
One end: a coordinate written latitude first, or
#id naming a marker in the same environment — from: #london. An anchored end FOLLOWS its marker, so an arc drawn to an animated marker moves with it. Parametised and animatable.Can be written as shorthand: arc:valuecolour
Also written: colorThe arc's hue.
Default
teal#Derived attributes
Computed while the element renders — read one with #id.name in attribute position or {{#id.name}} in prose, never set.
distance
integral derives its value. Cite it in prose with {{#id.distance}}.#Allowed in
#Examples
arc(from: #london; to: #tokyo; colour: teal)arc#route(from: 51.47, -0.46; to: 35.55, 139.78; label: {{round(#route.distance, 0)}} km)cue.draw{
arc(from: 40.64, -73.78; to: 1.36, 103.99)
}(
in: 2
in-duration: 1200ms
)