public void UpdateGradientLayer(CAGradientLayer layer, CommonColor color)
        {
            var c = color.UpdateRGB(a: 255);

            layer.Colors = LerpSteps(MinimumValue, MaximumValue, 7)
                           .Select(value => UpdateColorFromValue(c, value).ToCGColor()).ToArray();
        }
 public override CommonColor UpdateColorFromValue(CommonColor color, double value)
 => color.UpdateRGB(a: (byte)Clamp(value));