getColorsFromIndex() public static method

Get red, green and blue components from reduced-space color index for a pixel
public static getColorsFromIndex ( integer $index, integer $rightShift = self::RSHIFT, integer $sigBits = 8 ) : array
$index integer
$rightShift integer
$sigBits integer
return array
 /**
  * @dataProvider provide8bitsColorIndex
  */
 public function testGetColorsFromIndex8bits($r, $g, $b, $index)
 {
     $this->assertSame(array($r, $g, $b), ColorThief::getColorsFromIndex($index, 0));
 }