public float getRadius() { return constrain( RainbowMath.map( brushOptionsPreferences.getBrushSizePercentage(), PERCENTAGE_MIN, PERCENTAGE_MAX, RADIUS_MIN, RADIUS_MAX)); }
public float getMinimumRadius() { return RainbowMath.max(RADIUS_MIN, getRadius() / calculateRadiusFactorForMinimum()); }