Skip to content

Class TextColor

Namespace: Void.Minecraft.Components.Text.Colors
Assembly: Void.Minecraft.dll

public record TextColor : IEquatable<TextColor>

Inheritance

objectTextColor

Implements

IEquatable<TextColor>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

TextColor(byte, byte, byte)

public TextColor(byte Red, byte Green, byte Blue)

Parameters

Red byte

Green byte

Blue byte

Properties

Blue

public byte Blue { get; init; }

Property Value

byte

Green

public byte Green { get; init; }

Property Value

byte

Name

public string Name { get; }

Property Value

string

Red

public byte Red { get; init; }

Property Value

byte

Methods

Downsample()

public TextColor Downsample()

Returns

TextColor

FromString(string)

public static TextColor FromString(string value)

Parameters

value string

Returns

TextColor

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Operators

implicit operator TextColor((byte Red, byte Green, byte Blue))

public static implicit operator TextColor((byte Red, byte Green, byte Blue) color)

Parameters

color (byte Red, byte Green, byte Blue)

Returns

TextColor

implicit operator TextColor(Color)

public static implicit operator TextColor(Color color)

Parameters

color Color

Returns

TextColor

implicit operator TextColor(string)

public static implicit operator TextColor(string color)

Parameters

color string

Returns

TextColor

implicit operator Color(TextColor)

public static implicit operator Color(TextColor color)

Parameters

color TextColor

Returns

Color

implicit operator string(TextColor)

public static implicit operator string(TextColor color)

Parameters

color TextColor

Returns

string