Struct DebugColor
Definition
- Namespace:
- Tizen.NUI.Physics2D.Chipmunk
- Assembly:
- Tizen.NUI.Physics2D.dll
RGBA channels as floats used to represent the color for debug drawing.
public struct DebugColor : IEquatable<DebugColor>
- Implements
-
Constructors
View Source
DebugColor(float, float, float, float)
Create a DebugColor with the given color channel values.
Declaration
public DebugColor(float red, float green, float blue, float alpha)
Parameters
Type |
Name |
Description |
float |
red |
|
float |
green |
|
float |
blue |
|
float |
alpha |
|
View Source
DebugColor(float, float, float)
Create a DebugColor with the given color channel values.
Declaration
public DebugColor(float red, float green, float blue)
Parameters
Type |
Name |
Description |
float |
red |
|
float |
green |
|
float |
blue |
|
Properties
View Source
Alpha
Alpha component in the RGBA color space.
Declaration
public float Alpha { get; }
Property Value
View Source
Blue
Blue component in the RGBA color space.
Declaration
public float Blue { get; }
Property Value
View Source
Green
Green component in the RGBA color space.
Declaration
public float Green { get; }
Property Value
View Source
Red
Red component in the RGBA color space.
Declaration
public float Red { get; }
Property Value
Methods
View Source
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
View Source
Equals(DebugColor)
Check if a DebugColor is reference-equal to the other.
Declaration
public bool Equals(DebugColor color)
Parameters
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
View Source
ToString()
Return a string formatted as "(R, G, B, A)".
Declaration
public override string ToString()
Returns
Operators
View Source
operator ==(DebugColor, DebugColor)
Return true if two DebugColor are reference-equal.
Declaration
public static bool operator ==(DebugColor a, DebugColor b)
Parameters
Returns
View Source
operator !=(DebugColor, DebugColor)
Return true if two DebugColor are not reference-equal.
Declaration
public static bool operator !=(DebugColor a, DebugColor b)
Parameters
Returns
Implements
IEquatable<>
Extension Methods