src/Sismo/Contrib/WallpaperNotifier.php
private function initializeColors()
    {
        $rgb = $this->hex2rgb($this->get('background_color'));
        $this->set('background_color', imagecolorallocate($this->image, $rgb[0], $rgb[1], $rgb[2]));

        $rgb = $this->hex2rgb($this->get('text_color'));
        $this->set('text_color', imagecolorallocate($this->image, $rgb[0], $rgb[1], $rgb[2]));

        $rgb = $this->hex2rgb($this->get('success_color'));
        $this->set('success_color', imagecolorallocate($this->image, $rgb[0], $rgb[1], $rgb[2]));

        $rgb = $this->hex2rgb($this->get('failure_color'));
        $this->set('failure_color', imagecolorallocate($this->image, $rgb[0], $rgb[1], $rgb[2]));
    }
private function initializeColors()
    {
        $rgb = $this->hex2rgb($this->get('background_color'));
        $this->set('background_color', imagecolorallocate($this->image, $rgb[0], $rgb[1], $rgb[2]));

        $rgb = $this->hex2rgb($this->get('text_color'));
        $this->set('text_color', imagecolorallocate($this->image, $rgb[0], $rgb[1], $rgb[2]));

        $rgb = $this->hex2rgb($this->get('success_color'));
        $this->set('success_color', imagecolorallocate($this->image, $rgb[0], $rgb[1], $rgb[2]));

        $rgb = $this->hex2rgb($this->get('failure_color'));
        $this->set('failure_color', imagecolorallocate($this->image, $rgb[0], $rgb[1], $rgb[2]));
    }
private function initializeColors ( ) { $ rgb = $ this -> hex2rgb ( $ this -> get ( 'background_color' ) ) ; $ this -> set ( 'background_color' , imagecolorallocate ( $ this -> image , $ rgb [ 0 ] , $ rgb [ 1 ] , $ rgb [ 2 ] ) ) ; $ rgb = $ this -> hex2rgb ( $ this -> get ( 'text_color' ) ) ; $ this -> set ( 'text_color' , imagecolorallocate ( $ this -> image , $ rgb [ 0 ] , $ rgb [ 1 ] , $ rgb [ 2 ] ) ) ; $ rgb = $ this -> hex2rgb ( $ this -> get ( 'success_color' ) ) ; $ this -> set ( 'success_color' , imagecolorallocate ( $ this -> image , $ rgb [ 0 ] , $ rgb [ 1 ] , $ rgb [ 2 ] ) ) ; $ rgb = $ this -> hex2rgb ( $ this -> get ( 'failure_color' ) ) ; $ this -> set ( 'failure_color' , imagecolorallocate ( $ this -> image , $ rgb [ 0 ] , $ rgb [ 1 ] , $ rgb [ 2 ] ) ) ; }
Transforms hexadecimal colors to the color format used by GD images.
Transforms hexadecimal colors to the color format used by GD images .