Skip to content

Commit

Permalink
Draw a Quad on screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Cainã Costa committed Sep 2, 2012
1 parent 9d95f4d commit b71bda1
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/javascripts/game.coffee
Expand Up @@ -3,13 +3,9 @@ class window.Game
@canvas = new canvas(width, height, selector)
@canvas.fill "#000000"

point1 = new Point 30, 30
point2 = new Point 320, 240
point3 = new Point 480, 480

triangle = new Triangle point1, point2, point3, "#FF0000"
triangle.draw(@canvas)

point = new Point 30, 30
quad = new Quad point, 50, 50, "#FF0000"
quad.draw(@canvas)

$(document).ready ->
new Game 640, 480, "canvas"
Expand Down

0 comments on commit b71bda1

Please sign in to comment.