Color.WithSaturation(Double) 方法

定义

返回饱和度已修改的颜色。

public Xamarin.Forms.Color WithSaturation(double saturation);
member this.WithSaturation : double -> Xamarin.Forms.Color

参数

saturation
System.Double

已修改的饱和度。

返回

新的 HSL 颜色。

注解

饱和度固定为 [0,1]。 此方法可用于创建调色板。

适用于