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