public function lighten($fraction=0.1)
    {
        $hsl = $this->toHSL();
        $l = $hsl[2];
        // so that 100% lighter = white
        $dl = (1 - $l) * $fraction;

        return $this->changeHSL(0, 0, $dl);
    }
public function lighten($fraction=0.1)
    {
        $hsl = $this->toHSL();
        $l = $hsl[2];
        // so that 100% lighter = white
        $dl = (1 - $l) * $fraction;

        return $this->changeHSL(0, 0, $dl);
    }
public function lighten ( $ fraction = 0.1 ) { $ hsl = $ this -> toHSL ( ) ; $ l = $ hsl [ 2 ] ; // so that 100% lighter = white $ dl = ( 1 - $ l ) * $ fraction ; return $ this -> changeHSL ( 0 , 0 , $ dl ) ; }
Lighten the current color by a fraction

@param float $fraction (default=0.1) a number between 0 and 1

@returns Color The lighter color object
Lighten the current color by a fraction