Color extensions
More...
|
static float | MMSum (this Color color) |
| Adds all parts of the color and returns a float More...
|
|
static float | MMMeanRGB (this Color color) |
| Returns a mean value between r, g and b More...
|
|
static float | MMLuminance (this Color color) |
| Computes the color's luminance value More...
|
|
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()
static Color MoreMountains.Tools.MMColorExtensions.MMAlpha |
( |
this Color |
color, |
|
|
float |
newAlpha |
|
) |
| |
|
static |
◆ MMDarken() [1/2]
static Color MoreMountains.Tools.MMColorExtensions.MMDarken |
( |
this Color |
color, |
|
|
float |
amount |
|
) |
| |
|
static |
◆ MMDarken() [2/2]
static Color32 MoreMountains.Tools.MMColorExtensions.MMDarken |
( |
this Color32 |
color, |
|
|
float |
amount |
|
) |
| |
|
static |
◆ MMLighten()
static Color MoreMountains.Tools.MMColorExtensions.MMLighten |
( |
this Color |
color, |
|
|
float |
amount |
|
) |
| |
|
static |
◆ MMLuminance()
static float MoreMountains.Tools.MMColorExtensions.MMLuminance |
( |
this Color |
color | ) |
|
|
static |
Computes the color's luminance value
- Parameters
-
- Returns
◆ MMMeanRGB()
static float MoreMountains.Tools.MMColorExtensions.MMMeanRGB |
( |
this Color |
color | ) |
|
|
static |
Returns a mean value between r, g and b
- Parameters
-
- Returns
◆ MMSum()
static 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: