Color.WithLuminosity(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 color with modified Luminosity.
public Xamarin.Forms.Color WithLuminosity (double luminosity);
member this.WithLuminosity : double -> Xamarin.Forms.Color
Parameters
- luminosity
- System.Double
The modified luminosity.
Returns
A new HSL color.
Remarks
The new Luminosity is clamped to [0,1]. This method is useful for creating color palettes.