In This Article

ColorShadeGenerator Class

Provides functionality for generating various shades of a source Avalonia.Media.Color.

public static class ColorShadeGenerator
Inheritance:
object object

Methods

Generate(Color, string)

Generates a few shades for the specific source Avalonia.Media.Color.

public static IList<NamedColorShade> Generate(Color sourceColor, string sourceColorName)
Parameter Type Description
sourceColor Color

The source Avalonia.Media.Color to examine.

sourceColorName string

The source color's name.

Returns

IList<NamedColorShade>:

A collection of NamedColorShade objects, where each represents a shade of the source Avalonia.Media.Color.

Inherited Members