     x: x + d * Math.cos(a),
     y: y + d * Math.sin(a)
 
-
 class Painter
   constructor: ->
     @canvas = document.getElementById "gorillas"

class Building
  constructor:(context, color) ->
    @context = context
    @width = 100
    @base_height = 135
    @color = color

  draw:(x,y) ->
    @context.fillStyle = @color

    @color = '#00FFFF'

  draw_buildings:()->
    @draw_building(position) for position in [0, 101, 202, 303, 404, 505, 606, 707, 808, 909 ]

  draw_building:(x) ->
    building = new Building(@context)

    y = Math.floor(Math.random()*215)
    building.draw(x, y)

  draw_the_sun: ->
