HCCSFNRVJ2NSTFW5DFKEPHMBRZTQQ664HNZOHSQDEXWN4HWKJAIAC RE4J52XB4NYMIZMLEUKFTYFORC5DK6RHA44E43QFVGBIMMCJEHHQC 2TGRPW7DGDW6BRJ7WT5V3TLX5NXCM7ZMUCVW7YSE2MYWMOGGCK3QC R5QXEHUIZLELJGGCZAE7ATNS3CLRJ7JFRENMGH4XXH24C5WABZDQC O5GJ6PNNBYHH4X3DU4XOB7IDJ4QEW5KXFETIDUJESBUKJYXBSYYAC HBXK2CLZD6BIBAQB2MXDY2U2O7TAZLEZXIJUWIVNVT4F5LKWLEIQC 7TQAF4BYIK75EEYCCK7VEUSZHNCWMWIA3HZGQKIILYESUZ5ZZRVQC 6KWWBTHIBL5OC34J2QFGMVZHPMIGFHVICSABW2UP34OJO67J7EGQC N2JXCLNTZMW4KD2BGALD326JEQCVQ2AAD4JWBWEG5GQLERPKQRPQC 24TI6Z37DFRITXCLED3MTXAMRBPA6TMPH642AGCIMJSO3BMNHWAQC QO2BU5MSY6N7D57BSQGE64Y5PFJF3MJ3NVLWY6VZSV5PN7IX6O5QC 72K7733VL7KMJYMTJNBDGNO3KK6LRJRSL53OGWGIS7LTUCEMJCFQC animate_viewport_to = function(v)local global_viewport, globalw, globalh = initialize_global_viewport()local canvas = snapshot_canvas(global_viewport, globalw, globalh)v = v or global_viewportlocal initial = copy_viewport(Viewport)local final = vlocal step, frame_time = 0, 0while true dolove.event.pump()for name, a,b,c,d,e,f in love.event.poll() doif name == "quit" thenos.exit(0)end-- ignore other eventsend-- updatedt = love.timer.step()frame_time = frame_time + dtif frame_time > 0.01 thenframe_time = frame_time - 0.01step = step + 1if step > Num_animation_frames thenbreakendinterpolate_viewport(initial, final, step)--? print('animation frame: Viewport is now', Viewport.x, Viewport.y, Viewport.zoom)B()end-- drawlove.graphics.origin()love.graphics.clear(love.graphics.getBackgroundColor())local q = love.graphics.newQuad((Viewport.x-global_viewport.x)*Viewport.zoom,(Viewport.y-global_viewport.y)*Viewport.zoom,App.screen.width,App.screen.height,globalw*Viewport.zoom,globalh*Viewport.zoom)App.color{r=1,g=1,b=1}love.graphics.draw(canvas, q, 0,0)love.graphics.present()love.timer.sleep(0.001)endA()end
Disallow_error_recovery_on_key_release = trueDisallow_error_recovery_on_key_release = nilViewport = saved_viewportlocal w = math.min(16000, App.screen.width)local h = math.min(16000, App.screen.height)
animate_viewport_to(--[[global viewport]] nil)animate_viewport_to(initial_viewport)print('Viewport at end of survey animation', Viewport.x, Viewport.y, Viewport.zoom)
animate_viewport_to(Save_viewport)print('Viewport at end of undo zoom out animation', Viewport.x, Viewport.y, Viewport.zoom)
animate_viewport_to{x=sx(x)-App.screen.width/Save_viewport.zoom/2,y=sy(y)-App.screen.height/Save_viewport.zoom/2,zoom=Save_viewport.zoom,}
animate_viewport_to(--[[global viewport]] nil)print('Viewport at end of zoom out animation', Viewport.x, Viewport.y, Viewport.zoom)