Core: Extend Color API
* Fix issues with alpha value <> transparency * Use type traits to convert between different color classes (fixes #14515)
This commit is contained in:
@@ -540,8 +540,9 @@ inline Color ColorGradient::getColor (float fVal) const
|
||||
{
|
||||
Color color = _getColor(fVal);
|
||||
if (isOutsideInvisible()) {
|
||||
if (isOutOfRange(fVal))
|
||||
color.a = 0.8f;
|
||||
if (isOutOfRange(fVal)) {
|
||||
color.a = 0.2F;
|
||||
}
|
||||
}
|
||||
|
||||
return color;
|
||||
|
||||
Reference in New Issue
Block a user