Changes between Version 6 and Version 7 of webgl


Ignore:
Timestamp:
Oct 4, 2013, 6:54:20 PM (7 years ago)
Author:
Leon Kos
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • webgl

    v6 v7  
    108108  draw(); 
    109109}
     110
     111//window.onload = window.onresize = function() {startup();}
    110112</script>
    111 
    112 <canvas id="myGLCanvas" width="500" height="500" onload="startup();">Your browser does not support the HTML5 canvas tag.</canvas>
     113<canvas id="myGLCanvas" width="500" height="500" style="background: black; float:right;">Your browser does not support the HTML5 canvas tag.</canvas>
    113114<form><input type="button" value="Draw" onclick="startup()"/></form>
    114 
    115115}}}
    116 
    117116{{{
    118117#!javascript
     
    221220  draw(); 
    222221}
     222
     223//window.onload = window.onresize = function() {startup();}
    223224</script>
    224 
    225 <canvas id="myGLCanvas" width="500" height="500"></canvas>
     225<canvas id="myGLCanvas" width="500" height="500" style="background: black; float:right;">Your browser does not support the HTML5 canvas tag.</canvas>
    226226<form><input type="button" value="Draw" onclick="startup()"/></form>
    227 
    228227}}}
    229