getColorIndex() public static method

Get reduced-space color index for a pixel
public static getColorIndex ( integer $red, integer $green, integer $blue, integer $sigBits = self::SIGBITS ) : integer
$red integer
$green integer
$blue integer
$sigBits integer
return integer
 /**
  * @dataProvider provide5bitsColorIndex
  */
 public function testGetColorIndex5bits($r, $g, $b, $index)
 {
     $this->assertSame($index, ColorThief::getColorIndex($r, $g, $b));
 }