src/Entity/Icon/Color.php
protected function setComponent(float $value, float $scale): float
    {
        return ($scale < 0) ? (1 - $value / -$scale) : ($value / $scale);
    }
protected function setComponent(float $value, float $scale): float
    {
        return ($scale < 0) ? (1 - $value / -$scale) : ($value / $scale);
    }
protected function setComponent ( float $ value , float $ scale ) : float { return ( $ scale < 0 ) ? ( 1 - $ value / - $ scale ) : ( $ value / $ scale ) ; }
Calculates the value to set a component.
@param float $value
@param float $scale
@return float
Calculates the value to set a component .