Browse Source

Added instructions

Mr.doob 15 years ago
parent
commit
115f291aa6
1 changed files with 10 additions and 1 deletions
  1. 10 1
      examples/geometry/cube.html

+ 10 - 1
examples/geometry/cube.html

@@ -7,6 +7,7 @@
 		<style type="text/css">
 		<style type="text/css">
 			body
 			body
 			{
 			{
+				font-family: Monospace;
 				background-color: #ffffff;
 				background-color: #ffffff;
 				margin: 0px;
 				margin: 0px;
 				overflow: hidden;
 				overflow: hidden;
@@ -48,7 +49,15 @@
 			function init()
 			function init()
 			{
 			{
 				container = document.createElement('div');
 				container = document.createElement('div');
-				document.body.appendChild(container);			
+				document.body.appendChild(container);
+				
+				var info = document.createElement('div');
+				info.style.position = 'absolute';
+				info.style.top = '10px';
+				info.style.width = '100%';
+				info.style.textAlign = 'center';
+				info.innerHTML = 'Drag to spin the cube';
+				container.appendChild(info);
 			
 			
 				camera = new Camera(0, 150, 300);
 				camera = new Camera(0, 150, 300);
 				camera.focus = 300;
 				camera.focus = 300;