Characteristic Locus
Inheritance object > ColorExtensions
Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString()
Namespace Meadow.Foundation
Assembly Meadow.Foundation.dll

Syntax

public static class ColorExtensions

Methods

Blend(Color, Color, double)

Blend a new color with the current color

Declaration
public static Color Blend(this Color color, Color blendColor, double ratio)

Parameters

Type Name Description
Color color

The source color

Color blendColor

The color to blend

double ratio

The ratio of the blend color to source color

Returns

Type Description
Color

The resulting blended color

FromAhsv(Color, double, double, double, double)

Takes Hue, Saturation and Value and returns a Color object

Declaration
public static Color FromAhsv(this Color color, double alpha, double hue, double saturation, double value)

Parameters

Type Name Description
Color color
double alpha
double hue
double saturation
double value

Returns

Type Description
Color

A Color object