Signum Documentation

The documentation comes from the Markdown files in the source code, so is always up-to-date but available only in English. Enjoy!

Paste your Framework commit SHA

ColorExtensions

Provides extension method to work with Color structure in System.Drawing

Interpolate

Interpolates linearly the A, R, G and B component of two colors.

public static Color Interpolate(this Color from, float ratio, Color to)

ToHtml / TryToHtml

Returns a HTML hexadecimal string of the color. Alpha is ignored.

public static string ToHtml(this Color color)
public static string TryToHtml(this Color? color)
public static string ToHtmlColor(int value)

FromHsv

Creates a Color structure from the Hue, Saturation and Value components.

public static Color FromHsv(double h, double S, double V)