   create_window:(x, y) ->
     @context.fillRect x, y, 8, 16
 
+  randomize_color:() ->
+    colors = [ '#C0C0C0', '#800000', '#00FFFF' ]
+    random = Math.floor(Math.random()*colors.length)
+    @color = colors[random]
 
 class Sun
   constructor:(context) ->

    x: x + d * Math.cos(a),
    y: y + d * Math.sin(a)


class Painter
  constructor: ->
    @canvas = document.getElementById "gorillas"

    @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: ->
