public function getBinary() : int { // Black or white corresponds to the most significant bit value $luminance = $this->getLuminance(); return $luminance >> 7; }