Skip to content

Instantly share code, notes, and snippets.

@bregenspan
Last active December 20, 2015 14:29
Show Gist options
  • Save bregenspan/6146820 to your computer and use it in GitHub Desktop.
Save bregenspan/6146820 to your computer and use it in GitHub Desktop.
Go to http://360gigapixels.com/tokyo-tower-panorama-photo/ , open a Javascript console (Ctrl + Shift + J in Chrome), and run this, to simulate the terrifying surveillance panopticon that looms over us all.
/* Panopticon Simulator v0.1
Scripts http://360gigapixels.com/tokyo-tower-panorama-photo/ to convey a
deep, Enemy Of The State starring Will Smith-reminescent message regarding
the surveillance state and the voyeurism of gigapixel photos.
*/
var people = [
[-7.510113307350065,14.652493577797886,0.5],
[56.83548684296012,16.498978246091596,0.5],
[70.31143063578754,16.853432041652834,0.5],
[89.10081696122433,27.710679782879726,0.5],
[185.17164546970972,17.574932163261547,0.5],
[54.69377382806802,24.334404005449695,0.5],
[71.45397950569135,28.585923308786107,0.5],
[79.73188275730162,32.45577231170932,0.5],
[136.491516391925,27.002202383775316,0.5],
[161.82781858420753,20.58338443749394,0.5],
[215.73437281952116,8.755538561259831,0.5],
[231.28687604157415,23.097873223136983,0.5],
[258.99561166457386,40.54840290226127,0.5],
[260.32117524595895,39.96196471501338,0.5],
[260.47028912530754,39.147253451212315,0.5],
[72.5498923540308,22.87749054884587,0.5]
];
// Zoom-in at start
krpano().call('zoomto(10, tween(easeOutInQuad,7) )');
for (var i = 0, ilen = people.length; i < ilen; i++) {
krpano().call('lookto(' + people[i].join(',') + ',tween(easeOutInQuad,7));');
krpano().call('wait(1)');
}
// End with zoom out
krpano().call('zoomto(100, tween(easeOutInQuad,7) )');
$('#flashBottom').hide();
$('#ad_right').hide();
$(document.body).css('background', '#000');
$('#krpanoDIV').css('margin', '50px auto');
$('#pano').css('paddingBottom', '50px');
$('#krpanoSWFObject div div div').hide(); // hide overlays
$('#krpanoSWFObject').append('<div style="width:100%; height: 100%; position:absolute; pointer-events: none; left:0; top:0; box-shadow: inset 0 0 10px 10px #000"></div>')
$('<iframe src="//www.youtube.com/embed/MqfBApQ1NHk?autoplay=1"></iframe>').appendTo('#panoTitle');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment