Table of Contents

Class ColorFunctions

Namespace
RenderSharp
Assembly
RenderSharp.dll

Contains miscellaneous functions that interact with color objects.

public class ColorFunctions
Inheritance
ColorFunctions
Inherited Members

Methods

AlphaBlend(in FRGBA, in FRGBA)

Blends two colors together based on A (alpha) value.

public static RGBA AlphaBlend(in FRGBA top, in FRGBA bottom)

Parameters

top FRGBA

The color on "top" i.e. closer to the camera.

bottom FRGBA

The color on "bottom" i.e. farther from the camera.

Returns

RGBA

The resulting blended color (https://en.wikipedia.org/wiki/Alpha_compositing).

HSVToRGB(in HSV)

Converts an HSV color to an RGB color.

public static RGB HSVToRGB(in HSV hsv)

Parameters

hsv HSV

Returns

RGB

RGBToHSV(in RGB)

Converts an RGB color to an HSV color.

public static HSV RGBToHSV(in RGB rgb)

Parameters

rgb RGB

Returns

HSV