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
topFRGBAThe color on "top" i.e. closer to the camera.
bottomFRGBAThe 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)
public static RGB HSVToRGB(in HSV hsv)
Parameters
hsvHSV
Returns
RGBToHSV(in RGB)
public static HSV RGBToHSV(in RGB rgb)
Parameters
rgbRGB