Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Absolute value
abs(int|float $num): int|float
        $alpha_tolerance round($tolerance 1.27);



        
$delta = [

            
'r' => abs($color->$this->r),

            
'g' => abs($color->$this->g),

            
'b' => abs($color->$this->b),

            
'a' => abs($color->$this->a)
        $delta = [

            
'r' => abs($color->$this->r),

            
'g' => abs($color->$this->g),

            
'b' => abs($color->$this->b),

            
'a' => abs($color->$this->a)

        ];
        $delta = [

            
'r' => abs($color->$this->r),

            
'g' => abs($color->$this->g),

            
'b' => abs($color->$this->b),

            
'a' => abs($color->$this->a)

        ];
            'r' => abs($color->$this->r),

            
'g' => abs($color->$this->g),

            
'b' => abs($color->$this->b),

            
'a' => abs($color->$this->a)

        ];



        return (
                }

            }



            
$box['width'] = intval(abs($box[4] - $box[0]));

            
$box['height'] = intval(abs($box[5] - $box[1]));



        } else {
            }



            
$box['width'] = intval(abs($box[4] - $box[0]));

            
$box['height'] = intval(abs($box[5] - $box[1]));



        } else {
        $alpha_tolerance round($tolerance);



        
$delta = [

            
'r' => abs($color->getRedValue() - $this->getRedValue()),

            
'g' => abs($color->getGreenValue() - $this->getGreenValue()),

            
'b' => abs($color->getBlueValue() - $this->getBlueValue()),

            
'a' => abs($color->getAlphaValue() - $this->getAlphaValue())
        $delta = [

            
'r' => abs($color->getRedValue() - $this->getRedValue()),

            
'g' => abs($color->getGreenValue() - $this->getGreenValue()),

            
'b' => abs($color->getBlueValue() - $this->getBlueValue()),

            
'a' => abs($color->getAlphaValue() - $this->getAlphaValue())

        ];
        $delta = [

            
'r' => abs($color->getRedValue() - $this->getRedValue()),

            
'g' => abs($color->getGreenValue() - $this->getGreenValue()),

            
'b' => abs($color->getBlueValue() - $this->getBlueValue()),

            
'a' => abs($color->getAlphaValue() - $this->getAlphaValue())

        ];
            'r' => abs($color->getRedValue() - $this->getRedValue()),

            
'g' => abs($color->getGreenValue() - $this->getGreenValue()),

            
'b' => abs($color->getBlueValue() - $this->getBlueValue()),

            
'a' => abs($color->getAlphaValue() - $this->getAlphaValue())

        ];



        return (
            $box['height'] = 0;

        } else {


            
$box['width'] = intval(abs($dimensions['textWidth']));

            
$box['height'] = intval(abs($dimensions['textHeight']));

        }
        } else {


            
$box['width'] = intval(abs($dimensions['textWidth']));

            
$box['height'] = intval(abs($dimensions['textHeight']));

        }



        return 
$box;