Color extensions.
More...
|
| static float | MMSum (this Color color) |
| | Adds all parts of the color and returns a float.
|
| static float | MMMeanRGB (this Color color) |
| | Returns a mean value between r, g and b.
|
| static float | MMLuminance (this Color color) |
| | Computes the color's luminance value.
|
| static Color | MMLighten (this Color color, float amount) |
| static Color | MMDarken (this Color color, float amount) |
| static Color32 | MMDarken (this Color32 color, float amount) |
| static Color | MMAlpha (this Color color, float newAlpha) |
◆ MMAlpha()
| Color MoreMountains.Tools.MMColorExtensions.MMAlpha |
( |
this Color | color, |
|
|
float | newAlpha ) |
|
static |
◆ MMDarken() [1/2]
| Color MoreMountains.Tools.MMColorExtensions.MMDarken |
( |
this Color | color, |
|
|
float | amount ) |
|
static |
◆ MMDarken() [2/2]
| Color32 MoreMountains.Tools.MMColorExtensions.MMDarken |
( |
this Color32 | color, |
|
|
float | amount ) |
|
static |
◆ MMLighten()
| Color MoreMountains.Tools.MMColorExtensions.MMLighten |
( |
this Color | color, |
|
|
float | amount ) |
|
static |
◆ MMLuminance()
| float MoreMountains.Tools.MMColorExtensions.MMLuminance |
( |
this Color | color | ) |
|
|
static |
Computes the color's luminance value.
- Parameters
-
- Returns
◆ MMMeanRGB()
| float MoreMountains.Tools.MMColorExtensions.MMMeanRGB |
( |
this Color | color | ) |
|
|
static |
Returns a mean value between r, g and b.
- Parameters
-
- Returns
◆ MMSum()
| float MoreMountains.Tools.MMColorExtensions.MMSum |
( |
this Color | color | ) |
|
|
static |
Adds all parts of the color and returns a float.
- Parameters
-
- Returns
The documentation for this class was generated from the following file: