Commit 1da146ae authored by Sam Moore's avatar Sam Moore

Add HTML5 Logo to WebGL Logo

So everyone knows it's HTML5.
parent bdb3bbfb
This diff is collapsed.
......@@ -14,6 +14,7 @@
<script src="steamroller.js" type="text/javascript"></script>
<script src="scene.js" type="text/javascript"></script>
<script src="aesop.js" type="text/javascript"></script>
<script src="html5.js" type="text/javascript"></script>
<noscript>
<p>David? I know it's you. Turn on JavaScript. JavaScript is the future!</p>
<p></p><p></p>
......@@ -53,7 +54,7 @@
</head>
<body onload="start()">
<canvas id="glcanvas" width="640" height="480">
<canvas id="glcanvas" width="640*" height="480">
</canvas>
......
......@@ -478,6 +478,7 @@ function start() {
//gObjects.sla = new Logo(uccSLA, );
gObjects["underConstruction"] = new Logo(underConstruction, 1.0);
//gObjects.aesop = new Logo("+"+aesopText, 1.0);
gObjects["html5"] = new Logo(html5Logo, 1.0);
//gObjects.guild.attractors = [gObjects.cube];
......@@ -492,7 +493,9 @@ function start() {
// Show off our amazing logo by allowing people to add more!
canvas.onmousedown = function(event)
{
var src = (Math.random() > 0.5) ? uccLogo : underConstruction;
var src = uccLogo;
if (Math.random() > 1.0/3.0)
src = (Math.random() > 0.5) ? underConstruction : html5Logo;
var obj = new Logo(src, 0.5);
gObjects[gObjects.length] = obj;
obj.position[0] = event.clientX / canvas.width;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment