@@ -112,6 +112,16 @@ namespace FlaxEngine
|
||||
/// </summary>
|
||||
public float ValuesSum => R + G + B + A;
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if color is fully transparent (all components are equal zero).
|
||||
/// </summary>
|
||||
public bool IsTransparent => Mathf.IsZero(R + G + B + A);
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if color has opacity channel in use (different from 1).
|
||||
/// </summary>
|
||||
public bool HasOpacity => !Mathf.IsOne(A);
|
||||
|
||||
/// <summary>
|
||||
/// Constructs a new Color with given r,g,b,a component.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user