Table of Contents

Class Color

Namespace
Axolotl2D
Assembly
Axolotl2D.dll

Represents a color in the game.

public class Color
Inheritance
Color
Inherited Members

Constructors

Color(float, float, float, float)

Initialize a new Color object.

public Color(float r, float g, float b, float a)

Parameters

r float

Red

g float

Green

b float

Blue

a float

Alpha

Properties

A

The alpha component of the color.

public float A { get; }

Property Value

float

B

The blue component of the color.

public float B { get; }

Property Value

float

Black

#000000

public static Color Black { get; }

Property Value

Color

Blue

#0000FF

public static Color Blue { get; }

Property Value

Color

Brown

#A52A2A

public static Color Brown { get; }

Property Value

Color

Cyan

#FF00FF

public static Color Cyan { get; }

Property Value

Color

DarkGray

#404040

public static Color DarkGray { get; }

Property Value

Color

G

The green component of the color.

public float G { get; }

Property Value

float

Gray

#808080

public static Color Gray { get; }

Property Value

Color

Green

#00FF00

public static Color Green { get; }

Property Value

Color

LightGray

#C0C0C0

public static Color LightGray { get; }

Property Value

Color

Magenta

#FF00FF

public static Color Magenta { get; }

Property Value

Color

Orange

#FFA500

public static Color Orange { get; }

Property Value

Color

R

The red component of the color.

public float R { get; }

Property Value

float

RamptoerismeBlue

#0023FF

public static Color RamptoerismeBlue { get; }

Property Value

Color

Red

#FF0000

public static Color Red { get; }

Property Value

Color

Transparent

#00000000

public static Color Transparent { get; }

Property Value

Color

Value

The numeric value of the color.

public uint Value { get; }

Property Value

uint

White

#FFFFFF

public static Color White { get; }

Property Value

Color

Yellow

#FFFF00

public static Color Yellow { get; }

Property Value

Color

Methods

FromHTML(string)

Create a new color from a HTML color string.

public static Color FromHTML(string html)

Parameters

html string

The HTML color to parse

Returns

Color

The new color

Exceptions

ArgumentException

FromRGB(float, float, float)

Create a new color from RGB values.

public static Color FromRGB(float r, float g, float b)

Parameters

r float

Red

g float

Green

b float

Blue

Returns

Color

The new Color