Struct Color
Assembly: LeagueToolkit.dll
Constructors
|
Improve this Doc
View Source
Declaration
public Color(byte r, byte g, byte b)
Parameters
Type |
Name |
Description |
System.Byte |
r |
|
System.Byte |
g |
|
System.Byte |
b |
|
|
Improve this Doc
View Source
Declaration
public Color(byte r, byte g, byte b, byte a)
Parameters
Type |
Name |
Description |
System.Byte |
r |
|
System.Byte |
g |
|
System.Byte |
b |
|
System.Byte |
a |
|
|
Improve this Doc
View Source
Declaration
public Color(float r, float g, float b)
Parameters
Type |
Name |
Description |
System.Single |
r |
|
System.Single |
g |
|
System.Single |
b |
|
|
Improve this Doc
View Source
Declaration
public Color(float r, float g, float b, float a)
Parameters
Type |
Name |
Description |
System.Single |
r |
|
System.Single |
g |
|
System.Single |
b |
|
System.Single |
a |
|
Fields
|
Improve this Doc
View Source
Declaration
public static readonly Color One
Field Value
|
Improve this Doc
View Source
Declaration
public static readonly Color Zero
Field Value
Properties
|
Improve this Doc
View Source
Declaration
public float A { get; set; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Declaration
public float B { get; set; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Declaration
public float G { get; set; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Declaration
public float R { get; set; }
Property Value
Type |
Description |
System.Single |
|
Methods
|
Improve this Doc
View Source
Declaration
public bool Equals(Color other)
Parameters
Type |
Name |
Description |
Color |
other |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public static int GetFormatSize(ColorFormat format)
Parameters
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
public static Color Read(ReadOnlySpan<byte> source, ColorFormat format)
Parameters
Type |
Name |
Description |
ReadOnlySpan<System.Byte> |
source |
|
ColorFormat |
format |
|
Returns
|
Improve this Doc
View Source
Declaration
public string ToString(ColorFormat format)
Parameters
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public void Write(Span<byte> destination, ColorFormat format)
Parameters
Type |
Name |
Description |
Span<System.Byte> |
destination |
|
ColorFormat |
format |
|
Operators
|
Improve this Doc
View Source
Declaration
public static bool operator ==(Color a, Color b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public static implicit operator System.Numerics.Vector4(Color color)
Parameters
Type |
Name |
Description |
Color |
color |
|
Returns
Type |
Description |
System.Numerics.Vector4 |
|
|
Improve this Doc
View Source
Declaration
public static implicit operator Color(System.Numerics.Vector4 vector)
Parameters
Type |
Name |
Description |
System.Numerics.Vector4 |
vector |
|
Returns
|
Improve this Doc
View Source
Declaration
public static bool operator !=(Color a, Color b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
IEquatable<>