Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 694 Bytes

File metadata and controls

34 lines (26 loc) · 694 Bytes

ThreeSixty

360 panoramic image presentation based on three.js.

Examples

Using the code

Include ThreeSixty.js and three.js lib.

<script src="//cdnjs.cloudflare.com/ajax/libs/three.js/r68/three.min.js"></script>
<script src="ThreeSixty.js"></script>

Add this basic code:

var vars = {
	image: 'https://dl.dropboxusercontent.com/u/153646388/360/bergsjostolen.jpg',
	canvas: null,
	mobile: false,
	containerID: 'container',
	controls: {
			pause: true,
			littlePlanet: true,
			fullWidth: false
	}
}
threeSixty( vars );

Forks, pull requests and code critiques are welcome!