       param = {r: 0, g: 0, b: 0, a: 255} unless param?
       
       if typeof param is 'string'
-        {@r, @g, @b, @a} = if Elyssa.Color[param] then Elyssa.Color[param]() else new Elyssa.Color()
+        {@r, @g, @b, @a} = if Color[param] then Color[param]() else new Color()
       else
         {@r, @g, @b, @a} = param
         

    # @param {Number} The percentage (0.0 - 1.0) the color will be darkened
    # @return {Object} The color object
    darken: (factor) ->
      factor = Elyssa.Math.clamp(factor)
      
      delta = Math.round(colorMax * factor)
      @r -= delta
      @g -= delta
      @b -= delta
      
      @r = Elyssa.Math.clamp(@r, 0, colorMax)
      @g = Elyssa.Math.clamp(@g, 0, colorMax)
      @b = Elyssa.Math.clamp(@b, 0, colorMax)
      
      @
    
    fadeIn: (factor) -> 
      factor = Elyssa.Math.clamp(factor)
      
      delta = Math.round(colorMax * factor)
      @a += delta
      
      @a = Elyssa.Math.clamp(@a, 0, colorMax)
      
      @
      
    fadeOut: (factor) -> 
      factor = Elyssa.Math.clamp(factor)
      
      delta = Math.round(colorMax * factor)
      @a -= delta
      
      @a = Elyssa.Math.clamp(@a, 0, colorMax)
      
      @
    

        @b = 0 unless @b?
        @a = 255 unless @a?
        
        @r = Math.clamp(@r, 0, colorMax)
        @g = Math.clamp(@g, 0, colorMax)
        @b = Math.clamp(@b, 0, colorMax)
        @a = Math.clamp(@a, 0, colorMax)
    
    # Converts the color class into a valid CSS string color
    #
