code: function(color) {
          if (arguments.length === 0) {
              return this._color;
          } else if (arguments.length >= 3) {
              this._red = arguments[0];
              this._green = arguments[1];
              this._blue = arguments[2];
              if (typeof arguments[3] === "number") this._strength = arguments[3];
          } else {
              // First argument is color name
              Crafty.assignColor(color, this);
              // Second argument, if present, is strength of color
              // Note that assignColor will give a default strength of 1.0 if none exists.
              if (typeof arguments[1] === "number") this._strength = arguments[1];
          }
          this._color =
              "rgba(" +
              this._red +
              ", " +
              this._green +
              ", " +
              this._blue +
              ", " +
              this._strength +
              ")";
          this.trigger("Invalidate");
          return this;
      }
docs: @
  #.color
  @comp Color
  @kind Method
  
  @trigger Invalidate - when the color changes
  
  Will assign the color and opacity, either through a string shorthand, or through explicit rgb values.
  @sign public this .color(String color[, Float strength])
  @param color - Color of the rectangle
  @param strength - the opacity of the rectangle
  
  @sign public this .color(r, g, b[, strength])
  @param r - value for the red channel
  @param g - value for the green channel
  @param b - value for the blue channel
  @param strength - the opacity of the rectangle
  
  @sign public String .color()
  @return A string representing the current color as a CSS property.
  
  @example
  ```
  var c = Crafty.e("2D, DOM, Color");
  c.color("#FF0000");
  c.color("red");
  c.color(255, 0, 0);
  c.color("rgb(255, 0, 0)");
  ```
  Three different ways of assign the color red.
  ```
  var c = Crafty.e("2D, DOM, Color");
  c.color("#00FF00", 0.5);
  c.color("rgba(0, 255, 0, 0.5)");
  ```
  Two ways of assigning a transparent green color.