src/classes/CCImage.php
public function fill_color( $color, $alpha = 1 ) 
	{
		$alpha = $alpha * 127;

		// parse the color
		$color = CCColor::create( $color );
		$color = imagecolorallocatealpha( $this->image_context, $color->RGB[0], $color->RGB[1], $color->RGB[2], $alpha );

		// run image fill
		imagefill( $this->image_context, 0, 0, $color );

		return $this;
	}
public function fill_color( $color, $alpha = 1 ) 
	{
		$alpha = $alpha * 127;

		// parse the color
		$color = CCColor::create( $color );
		$color = imagecolorallocatealpha( $this->image_context, $color->RGB[0], $color->RGB[1], $color->RGB[2], $alpha );

		// run image fill
		imagefill( $this->image_context, 0, 0, $color );

		return $this;
	}
public function fill_color ( $ color , $ alpha = 1 ) { $ alpha = $ alpha * 127 ; // parse the color $ color = CCColor :: create ( $ color ) ; $ color = imagecolorallocatealpha ( $ this -> image_context , $ color -> RGB [ 0 ] , $ color -> RGB [ 1 ] , $ color -> RGB [ 2 ] , $ alpha ) ; // run image fill imagefill ( $ this -> image_context , 0 , 0 , $ color ) ; return $ this ; }
fill the current image with an color
you can pass an array with rgb or hex string

@param mixed 		$color
@return self
fill the current image with an color you can pass an array with rgb or hex string