Swap
Swap operator makes controls swap their positions.
a <-> b
e.g. following code swaps position of control d1 and d2
- DABL
- HTML
title: 'swap controls'
dot id: d1 at: [-3,-1] radius: 35
dot id: d2 at: [2,-1] radius: 35
step: 'swap control d1 and d2'
d1 <-> d2
<dot-and-box controls style="height: 250px" code="
title: 'dot color and size'
dot id: d1 at: [-4,-1] radius: 35
dot id: d2 at: [3,-1] radius: 35
step: 'swap control d1 and d2'
d1 <-> d2">
</dot-and-box>