Jyxo\Color::getBinary PHP Method

getBinary() public method

Returns the current color in binary form 0 - black, 1 - white).
public getBinary ( ) : integer
return integer
    public function getBinary() : int
    {
        // Black or white corresponds to the most significant bit value
        $luminance = $this->getLuminance();
        return $luminance >> 7;
    }