Method to convert a color space object to an HSB object
public static toHsb ( Pop\Color\Space\ColorInterface $color ) : |
||
$color | Pop\Color\Space\ColorInterface | |
return |
public function testLabToHsb() { $hsb = Convert::toHsb(new Lab(100, 100, 100)); $this->assertInstanceOf('Pop\\Color\\Space\\Hsb', $hsb); $this->assertEquals('40,75,76', (string) $hsb); }