Method to convert a color space object to a hex RGB object
public static toHex ( Pop\Color\Space\ColorInterface $color ) : |
||
$color | Pop\Color\Space\ColorInterface | |
리턴 |
public function testLabToHex() { $hex = Convert::toHex(new Lab(100, 100, 100)); $this->assertInstanceOf('Pop\\Color\\Space\\Hex', $hex); $this->assertEquals('#c39231', (string) $hex); }