Skip to content

ColorExtensions

interludesoftware.tick

Interlude.Tick

ColorExtensions Class

UnityEngine.Color helpers used across the Tick UI public surface and the bundled samples.

public static class ColorExtensions

Inheritance System.Object → ColorExtensions

Methods

ColorExtensions.WithAlpha(this Color, float) Method

Returns a copy of color with the alpha channel replaced by alpha. The RGB channels are untouched.

public static Color WithAlpha(this Color color, float alpha);

Parameters

color UnityEngine.Color

alpha System.Single

Returns

UnityEngine.Color