getcolorwithchannelvalue - eisclimber/ExPresS-XR GitHub Wiki
Method in ColorChannel
Returns a color with only the activated color channel with the desired value and optional opacity. All other channels will be 0.0f with exception of the alpha channel which will be 1.0f to represent full opacity.
public static Color GetColorWithChannelValue(Channels channel, float channelValue, float opacity = 1.0f)| Name | Description |
|---|---|
| ExPresSXR.Minigames.Excavation.ColorChannel.Channels channel | Channel to be manipulated. |
float channelValue |
Value of the channel. |
float opacity |
Opacity of the color. Will be ignored if the alpha channel is chosen. |