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