refactored webGL renderer

This commit is contained in:
Mat Groves 2013-12-27 16:21:54 +00:00
parent 530d889b0a
commit d56d6df260
17 changed files with 9388 additions and 7944 deletions

View file

@ -70,9 +70,9 @@
graphics.drawRect(50, 250, 100, 100);
// draw a circle
graphics.lineStyle(0);
graphics.beginFill(0xFFFF0B, 0.5);
graphics.drawCircle(470, 200,100);
/// graphics.lineStyle(0);
// graphics.beginFill(0xFFFF0B, 0.5);
// graphics.drawCircle(470, 200,100);
graphics.lineStyle(20, 0x33FF00);
graphics.moveTo(30,30);
@ -100,7 +100,7 @@
function animate() {
thing.clear();
/* thing.clear();
count += 0.1;
@ -114,7 +114,7 @@
thing.lineTo(-120 + Math.cos(count)* 20, 100 + Math.sin(count)* 20);
thing.lineTo(-120 + Math.sin(count) * 20, -100 + Math.cos(count)* 20);
thing.rotation = count * 0.1;
thing.rotation = count * 0.1;*/
renderer.render(stage);
requestAnimFrame( animate );
}