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

NameDescription
Public methodStatic memberClamp Clamps Color values component by component.
Public methodStatic memberColorAlpha Creates a color based on an already existing color and an alpha value.
Public methodStatic memberMultiply Multiplies two colors by multiplying each component.
Public methodStatic memberParse Parses a Color from an HTML string (#RRGGBB or #RRGGBBAA).
Public methodStatic memberParseAsync Parses asynchronously a Color from an HTML string (#RRGGBB or #RRGGBBAA).
Public methodStatic memberScaleColorBrightness Creates a color based on an already existing color and a brightness scale value.
Public methodStatic memberToColor 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.
Public methodStatic memberToHtml Converts the color to a HTML color value (#RRGGBB or #RRGGBBAA).
Public methodStatic memberTryParse Tries to parse a Color from an HTML string (#RRGGBB or #RRGGBBAA).
Public methodStatic memberWithAlpha Creates a color based on an already existing color and an alpha value.

See Also

Reference

UltimateXR.Extensions.Unity.Render Namespace