This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WindowDragger windowDragger; | |
void setup() { | |
size(400, 400); | |
//Set the start position of the window here (in screen pixels) | |
windowDragger = new WindowDragger(100, 100); | |
//OR: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const positions = []; | |
const distanceLineMarker = new BlueMap.LineMarker("distanceLineMarker"); | |
distanceLineMarker.line.depthTest = false; | |
distanceLineMarker.line.linewidth = 2; | |
bluemap.popupMarkerSet.add(distanceLineMarker); | |
hijack(bluemap.popupMarker, 'open', function (original) { | |
return function () { | |
const pos = bluemap.popupMarker.position; | |
positions.push([pos.x, pos.y, pos.z]); |