ColorExt ClassColor extensions.
Inheritance Hierarchy
System.Object
UltimateXR.Extensions.Unity.Render.ColorExt
Namespace: UltimateXR.Extensions.Unity.Render
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static class ColorExt
The ColorExt type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() | Clamp | Clamps Color values component by component. |
![]() ![]() | ColorAlpha | Creates a color based on an already existing color and an alpha value. |
![]() ![]() | Multiply | Multiplies two colors by multiplying each component. |
![]() ![]() | Parse | Parses a Color from an HTML string (#RRGGBB or #RRGGBBAA). |
![]() ![]() | ParseAsync | Parses asynchronously a Color from an HTML string (#RRGGBB or #RRGGBBAA). |
![]() ![]() | ScaleColorBrightness | Creates a color based on an already existing color and a brightness scale value. |
![]() ![]() | ToColor | Transforms an array of floats to a Color component by component. If there are not enough values to read, the remaining values are set to 0.0 for RGB and 1.0 for A. |
![]() ![]() | ToHtml | Converts the color to a HTML color value (#RRGGBB or #RRGGBBAA). |
![]() ![]() | TryParse | Tries to parse a Color from an HTML string (#RRGGBB or #RRGGBBAA). |
![]() ![]() | WithAlpha | Creates a color based on an already existing color and an alpha value. |