diff options
Diffstat (limited to 'tomorrowthegroundGUI/tomorrowthegroundGUI.pde')
| -rw-r--r-- | tomorrowthegroundGUI/tomorrowthegroundGUI.pde | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/tomorrowthegroundGUI/tomorrowthegroundGUI.pde b/tomorrowthegroundGUI/tomorrowthegroundGUI.pde index b359409..ae035b1 100644 --- a/tomorrowthegroundGUI/tomorrowthegroundGUI.pde +++ b/tomorrowthegroundGUI/tomorrowthegroundGUI.pde @@ -9,18 +9,32 @@ float lat1,lng1,lat2,lng2,fw,fh; void setup() { bgmaps=new PImage[2]; - bgmaps[0] = loadImage("gentmap.png"); - bgmaps[1] = loadImage("indexmapV1.gif"); + int map=2; + switch (map) { + case 1: + bgmaps[0] = loadImage("gentmap.png"); + bgmaps[1] = loadImage("indexmapV1.gif"); + lat1=51.050608; + lng1=3.724698; + lat2=51.046878; + lng2=3.732852; + break; + case 2: + bgmaps[0] = loadImage("TimelabTestAreaGUI.jpg"); + bgmaps[1] = loadImage("TimelabTestAreaGRADIENT.png"); + lat1=51.043293; + lng1=3.737025; + lat2=51.042154; + lng2=3.739584; + break; + } usemap=0; - size(bgmap.width,bgmap.height); + size(bgmaps[0].width,bgmaps[0].height); frameRate(15); udp = new UDP(this); x=width/2; y=height/2; - lat1=51.050608; - lng1=3.724698; - lat2=51.046878; - lng2=3.732852; + fw=lng2-lng1; fh=lat1-lat2; } |
