Color.WithSaturation(Double) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a new color with modified Saturation.
public Xamarin.Forms.Color WithSaturation (double saturation);
member this.WithSaturation : double -> Xamarin.Forms.Color
Parameters
- saturation
- System.Double
The modified Saturation.
Returns
A new HSLcolor.
Remarks
The Saturation is clamped to [0,1]. This method is useful for creating color palettes.