Table of Contents

Struct Color

Namespace
NetCord
Assembly
NetCord.dll
[JsonConverter(typeof(Color.ColorConverter))]
public readonly struct Color : IEquatable<Color>
Implements
Inherited Members

Constructors

Color(byte, byte, byte)

public Color(byte red, byte green, byte blue)

Parameters

red byte
green byte
blue byte

Color(int)

public Color(int rgb)

Parameters

rgb int

Properties

Blue

public byte Blue { get; }

Property Value

byte

Green

public byte Green { get; }

Property Value

byte

RawValue

public int RawValue { get; }

Property Value

int

Red

public byte Red { get; }

Property Value

byte

Methods

Equals(Color)

public bool Equals(Color other)

Parameters

other Color

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(Color, Color)

public static bool operator ==(Color left, Color right)

Parameters

left Color
right Color

Returns

bool

operator !=(Color, Color)

public static bool operator !=(Color left, Color right)

Parameters

left Color
right Color

Returns

bool