toNumber() {
    let r = this.r & 0xff,
      g = this.g & 0xff,
      b = this.b & 0xff,
      rgb = (r << 16) + (g << 8) + b;
    return rgb;
  }
/**
   * Returns an number representation of the color
   * @return { Number } Unsigned integer in the range 0-16 777 216
   */
Returns an number representation of the color
@return { Number } Unsigned integer in the range 0-16 777 216
Returns an number representation of the color @return { Number } Unsigned integer in the range 0 - 16 777 216
toNumber() {
    let r = this.r & 0xff,
      g = this.g & 0xff,
      b = this.b & 0xff,
      rgb = (r << 16) + (g << 8) + b;
    return rgb;
  }
toNumber ( ) { let r = this . r & 0xff , g = this . g & 0xff , b = this . b & 0xff , rgb = ( r << 16 ) + ( g << 8 ) + b ; return rgb ; }
Returns an number representation of the color
 @return { Number } Unsigned integer in the range 0-16 777 216
Returns an number representation of the color @return { Number } Unsigned integer in the range 0 - 16 777 216