Skip to content

Instantly share code, notes, and snippets.

@brunofarache
Forked from anonymous/y3d-script.js
Last active December 18, 2015 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunofarache/5819929 to your computer and use it in GitHub Desktop.
Save brunofarache/5819929 to your computer and use it in GitHub Desktop.
/**
* https://gist.github.com/brunofarache/5819929
*/
YUI({ gallery: 'gallery-2013.10.24-18-05' }).use('gallery-y3d', function(Y) {
var scene = new Y.Scene({
camera: new Y.Camera({
position: {
z: 20
}
}),
background: '#272822'
});
var box = new Y.Sphere({
color: '#ff7700',
radius: 5,
wireframe: true
});
box.set('rotation', { x: 45, y: 45 });
scene.add(box);
scene.render();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment