-
Notifications
You must be signed in to change notification settings - Fork 0
Color
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.Color |
| Namespace | Electron2D |
| Kind | struct |
| Category | Math and Data |
Represents the color value type.
public struct Electron2D.Color : System.IEquatable<Electron2D.Color>This type is part of the Electron2D 0.1.0 Preview public API.
Instances of this type are not synchronized. Access them from the thread that owns the object unless the member documentation states otherwise.
This API is available since Electron2D 0.1.0 Preview.
| Member | Kind | Summary |
|---|---|---|
Black |
Field | Represents the black value. |
Transparent |
Field | Represents the transparent value. |
White |
Field | Represents the white value. |
A |
Property | Gets or sets the a value. |
B |
Property | Gets or sets the b value. |
G |
Property | Gets or sets the g value. |
R |
Property | Gets or sets the r value. |
Electron2D.Color(System.Single, System.Single, System.Single, System.Single) |
Constructor | Initializes a new instance of the Color type. |
Clamp(Electron2D.Color, Electron2D.Color) |
Method | Executes the clamp operation. |
Darkened(System.Single) |
Method | Executes the darkened operation. |
Equals(Electron2D.Color) |
Method | Executes the equals operation. |
Equals(System.Object) |
Method | Executes the equals operation. |
FromHtml(System.String) |
Method | Executes the from html operation. |
GetHashCode() |
Method | Gets the hash code value. |
IsEqualApprox(Electron2D.Color) |
Method | Checks whether equal approx is true. |
Lerp(Electron2D.Color, System.Single) |
Method | Executes the lerp operation. |
Lightened(System.Single) |
Method | Executes the lightened operation. |
ToHtml(System.Boolean) |
Method | Executes the to html operation. |
ToString() |
Method | Executes the to string operation. |
op_Addition(Electron2D.Color, Electron2D.Color) |
Method | Applies the + operator. |
op_Division(Electron2D.Color, System.Single) |
Method | Applies the / operator. |
op_Equality(Electron2D.Color, Electron2D.Color) |
Method | Applies the == operator. |
op_Inequality(Electron2D.Color, Electron2D.Color) |
Method | Applies the != operator. |
op_Multiply(Electron2D.Color, Electron2D.Color) |
Method | Applies the * operator. |
op_Multiply(Electron2D.Color, System.Single) |
Method | Applies the * operator. |
op_Multiply(System.Single, Electron2D.Color) |
Method | Applies the * operator. |
op_Subtraction(Electron2D.Color, Electron2D.Color) |
Method | Applies the - operator. |
Kind: Field
public static Electron2D.Color BlackRepresents the black value.
Use this field as a stable value supplied by the declaring type.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Kind: Field
public static Electron2D.Color TransparentRepresents the transparent value.
Use this field as a stable value supplied by the declaring type.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Kind: Field
public static Electron2D.Color WhiteRepresents the white value.
Use this field as a stable value supplied by the declaring type.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Kind: Property
public System.Single A { get; set; }Gets or sets the a value.
This property follows the validation and lifetime rules of its declaring type.
The current a value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Kind: Property
public System.Single B { get; set; }Gets or sets the b value.
This property follows the validation and lifetime rules of its declaring type.
The current b value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Kind: Property
public System.Single G { get; set; }Gets or sets the g value.
This property follows the validation and lifetime rules of its declaring type.
The current g value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Kind: Property
public System.Single R { get; set; }Gets or sets the r value.
This property follows the validation and lifetime rules of its declaring type.
The current r value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Kind: Constructor
public Electron2D.Color(System.Single r, System.Single g, System.Single b, System.Single a)Initializes a new instance of the Color type.
The new instance follows the lifetime and validation rules of its declaring type.
-
r: The r value. -
g: The g value. -
b: The b value. -
a: The a value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Kind: Method
public Electron2D.Color Clamp(Electron2D.Color, Electron2D.Color)(Electron2D.Color min, Electron2D.Color max)Executes the clamp operation.
This method follows the validation and lifetime rules of its declaring type.
-
min: The min value. -
max: The max value.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Kind: Method
public Electron2D.Color Darkened(System.Single)(System.Single amount)Executes the darkened operation.
This method follows the validation and lifetime rules of its declaring type.
-
amount: The amount value.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Kind: Method
public System.Boolean Equals(Electron2D.Color)(Electron2D.Color other)Executes the equals operation.
This method follows the validation and lifetime rules of its declaring type.
-
other: The other value.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Kind: Method
public System.Boolean Equals(System.Object)(System.Object obj)Executes the equals operation.
This method follows the validation and lifetime rules of its declaring type.
-
obj: The obj value.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Kind: Method
public static Electron2D.Color FromHtml(System.String)(System.String html)Executes the from html operation.
This method follows the validation and lifetime rules of its declaring type.
-
html: The html value.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Kind: Method
public System.Int32 GetHashCode()()Gets the hash code value.
This method follows the validation and lifetime rules of its declaring type.
The current hash code value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Kind: Method
public System.Boolean IsEqualApprox(Electron2D.Color)(Electron2D.Color color)Checks whether equal approx is true.
This method follows the validation and lifetime rules of its declaring type.
-
color: The color value.
true when the condition is met; otherwise, false.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Kind: Method
public Electron2D.Color Lerp(Electron2D.Color, System.Single)(Electron2D.Color to, System.Single weight)Executes the lerp operation.
This method follows the validation and lifetime rules of its declaring type.
-
to: The to value. -
weight: The weight value.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Kind: Method
public Electron2D.Color Lightened(System.Single)(System.Single amount)Executes the lightened operation.
This method follows the validation and lifetime rules of its declaring type.
-
amount: The amount value.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Kind: Method
public System.String ToHtml(System.Boolean)(System.Boolean includeAlpha)Executes the to html operation.
This method follows the validation and lifetime rules of its declaring type.
-
includeAlpha: The include alpha value.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Kind: Method
public System.String ToString()()Executes the to string operation.
This method follows the validation and lifetime rules of its declaring type.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Kind: Method
public static Electron2D.Color op_Addition(Electron2D.Color, Electron2D.Color)(Electron2D.Color left, Electron2D.Color right)Applies the + operator.
This operator returns a value derived from the supplied operands.
-
left: The left value. -
right: The right value.
The result of the operator.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Kind: Method
public static Electron2D.Color op_Division(Electron2D.Color, System.Single)(Electron2D.Color color, System.Single scalar)Applies the / operator.
This operator returns a value derived from the supplied operands.
-
color: The color value. -
scalar: The scalar value.
The result of the operator.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Kind: Method
public static System.Boolean op_Equality(Electron2D.Color, Electron2D.Color)(Electron2D.Color left, Electron2D.Color right)Applies the == operator.
This operator returns a value derived from the supplied operands.
-
left: The left value. -
right: The right value.
The result of the operator.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Kind: Method
public static System.Boolean op_Inequality(Electron2D.Color, Electron2D.Color)(Electron2D.Color left, Electron2D.Color right)Applies the != operator.
This operator returns a value derived from the supplied operands.
-
left: The left value. -
right: The right value.
The result of the operator.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Kind: Method
public static Electron2D.Color op_Multiply(Electron2D.Color, Electron2D.Color)(Electron2D.Color left, Electron2D.Color right)Applies the * operator.
This operator returns a value derived from the supplied operands.
-
left: The left value. -
right: The right value.
The result of the operator.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Kind: Method
public static Electron2D.Color op_Multiply(Electron2D.Color, System.Single)(Electron2D.Color color, System.Single scalar)Applies the * operator.
This operator returns a value derived from the supplied operands.
-
color: The color value. -
scalar: The scalar value.
The result of the operator.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Kind: Method
public static Electron2D.Color op_Multiply(System.Single, Electron2D.Color)(System.Single scalar, Electron2D.Color color)Applies the * operator.
This operator returns a value derived from the supplied operands.
-
scalar: The scalar value. -
color: The color value.
The result of the operator.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Kind: Method
public static Electron2D.Color op_Subtraction(Electron2D.Color, Electron2D.Color)(Electron2D.Color left, Electron2D.Color right)Applies the - operator.
This operator returns a value derived from the supplied operands.
-
left: The left value. -
right: The right value.
The result of the operator.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.Color
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.