code: function (hex, alpha) {
  		var hex = (hex.charAt(0) === '#') ? hex.substr(1) : hex,
  			c = [], result;
  
  		c[0] = parseInt(hex.substr(0, 2), 16);
  		c[1] = parseInt(hex.substr(2, 2), 16);
  		c[2] = parseInt(hex.substr(4, 2), 16);
  
  		result = alpha === undefined ? 'rgb(' + c.join(',') + ')' : 'rgba(' + c.join(',') + ',' + alpha + ')';
  
  		return result;
  	}
docs: @
  #Crafty.toRGB
  @category Graphics
  @sign public String Crafty.scene(String hex[, Number alpha])
  @param hex - a 6 character hex number string representing RGB color
  @param alpha - The alpha value.
  
  Get a rgb string or rgba string (if `alpha` presents).
  
  @example
  ~~~
  Crafty.toRGB("ffffff"); // rgb(255,255,255)
  Crafty.toRGB("#ffffff"); // rgb(255,255,255)
  Crafty.toRGB("ffffff", .5); // rgba(255,255,255,0.5)
  ~~~
  
  @see Text.textColor