Show / Hide Table of Contents

Class Color

Class defining a color and an alpha value

Inheritance
Object
Color
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Shared.Utilities
Assembly: SlipeShared.dll
Syntax
public class Color

Constructors

| Improve this Doc View Source

Color(Byte, Byte, Byte)

Creates a color with a solid alpha

Declaration
public Color(byte r, byte g, byte b)
Parameters
Type Name Description
Byte r
Byte g
Byte b
| Improve this Doc View Source

Color(Byte, Byte, Byte, Byte)

Creates a color from the individual rgba values

Declaration
public Color(byte r, byte g, byte b, byte a)
Parameters
Type Name Description
Byte r
Byte g
Byte b
Byte a
| Improve this Doc View Source

Color(Int32)

Creates a color from a hex code

Declaration
public Color(int hex)
Parameters
Type Name Description
Int32 hex
| Improve this Doc View Source

Color(UInt32)

Creats a color from a hex code

Declaration
public Color(uint hex)
Parameters
Type Name Description
UInt32 hex

Properties

| Improve this Doc View Source

A

Declaration
public int A { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

AliceBlue

Declaration
public static Color AliceBlue { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

AntiqueWhite

Declaration
public static Color AntiqueWhite { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Aqua

Declaration
public static Color Aqua { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

AquaMarine

Declaration
public static Color AquaMarine { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Azure

Declaration
public static Color Azure { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

B

Declaration
public int B { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

Beige

Declaration
public static Color Beige { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Bisque

Declaration
public static Color Bisque { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Black

Declaration
public static Color Black { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Blanchelmond

Declaration
public static Color Blanchelmond { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Blue

Declaration
public static Color Blue { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

BlueViolet

Declaration
public static Color BlueViolet { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Brown

Declaration
public static Color Brown { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

BurlyWood

Declaration
public static Color BurlyWood { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

CadetBlue

Declaration
public static Color CadetBlue { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

ChartReuse

Declaration
public static Color ChartReuse { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Chocolate

Declaration
public static Color Chocolate { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Coral

Declaration
public static Color Coral { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

CornFlowerBlue

Declaration
public static Color CornFlowerBlue { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

CornSilk

Declaration
public static Color CornSilk { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Crimson

Declaration
public static Color Crimson { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Cyan

Declaration
public static Color Cyan { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

DeepPink

Declaration
public static Color DeepPink { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

DeepSkyBlue

Declaration
public static Color DeepSkyBlue { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

DimGray

Declaration
public static Color DimGray { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

DodgerBlue

Declaration
public static Color DodgerBlue { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Firebrick

Declaration
public static Color Firebrick { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

FloralWhite

Declaration
public static Color FloralWhite { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

ForestGreen

Declaration
public static Color ForestGreen { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

G

Declaration
public int G { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

Gainsboro

Declaration
public static Color Gainsboro { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

GhostWhite

Declaration
public static Color GhostWhite { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Gold

Declaration
public static Color Gold { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

GoldenRod

Declaration
public static Color GoldenRod { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Gray

Declaration
public static Color Gray { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Green

Declaration
public static Color Green { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

GreenYellow

Declaration
public static Color GreenYellow { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Hex

Returns the color as a hexadecimal integer

Declaration
public int Hex { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

Honeydew

Declaration
public static Color Honeydew { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

HotPink

Declaration
public static Color HotPink { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

IndianRed

Declaration
public static Color IndianRed { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Indigo

Declaration
public static Color Indigo { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Ivory

Declaration
public static Color Ivory { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Khaki

Declaration
public static Color Khaki { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Lavender

Declaration
public static Color Lavender { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

LavenderBlush

Declaration
public static Color LavenderBlush { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

LawnGreen

Declaration
public static Color LawnGreen { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

LemonChion

Declaration
public static Color LemonChion { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

LightBlue

Declaration
public static Color LightBlue { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

LightCoral

Declaration
public static Color LightCoral { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

LightCyan

Declaration
public static Color LightCyan { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

LightGoldenRodYellow

Declaration
public static Color LightGoldenRodYellow { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

LightGray

Declaration
public static Color LightGray { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

LightGreen

Declaration
public static Color LightGreen { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

LightPink

Declaration
public static Color LightPink { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

LightSalmon

Declaration
public static Color LightSalmon { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

LightSeaGreen

Declaration
public static Color LightSeaGreen { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

LightSkyBlue

Declaration
public static Color LightSkyBlue { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

LightSlateGray

Declaration
public static Color LightSlateGray { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

LightSteelBlue

Declaration
public static Color LightSteelBlue { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

LightYellow

Declaration
public static Color LightYellow { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Lime

Declaration
public static Color Lime { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

LimeGreen

Declaration
public static Color LimeGreen { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Linen

Declaration
public static Color Linen { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Magenta

Declaration
public static Color Magenta { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Maroon

Declaration
public static Color Maroon { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

MediumAquaMarine

Declaration
public static Color MediumAquaMarine { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

MediumBlue

Declaration
public static Color MediumBlue { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

MediumOrchid

Declaration
public static Color MediumOrchid { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

MediumPurple

Declaration
public static Color MediumPurple { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

MediumSeaGreen

Declaration
public static Color MediumSeaGreen { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

MediumSlateBlue

Declaration
public static Color MediumSlateBlue { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

MediumSpringGreen

Declaration
public static Color MediumSpringGreen { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

MediumTurquoise

Declaration
public static Color MediumTurquoise { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

MediumVioletRed

Declaration
public static Color MediumVioletRed { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

MidnightBlue

Declaration
public static Color MidnightBlue { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

MintCream

Declaration
public static Color MintCream { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

MistyRose

Declaration
public static Color MistyRose { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Moccasin

Declaration
public static Color Moccasin { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

NavajoWhite

Declaration
public static Color NavajoWhite { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Navy

Declaration
public static Color Navy { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

OldLace

Declaration
public static Color OldLace { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Olive

Declaration
public static Color Olive { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

OliveDrab

Declaration
public static Color OliveDrab { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Orange

Declaration
public static Color Orange { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

OrangeRed

Declaration
public static Color OrangeRed { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Orchid

Declaration
public static Color Orchid { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

PaleGoldenRod

Declaration
public static Color PaleGoldenRod { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

PaleGreen

Declaration
public static Color PaleGreen { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

PaleTurquoise

Declaration
public static Color PaleTurquoise { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

PaleVioletRed

Declaration
public static Color PaleVioletRed { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

PapayaWhip

Declaration
public static Color PapayaWhip { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

PeachPu

Declaration
public static Color PeachPu { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Peru

Declaration
public static Color Peru { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Pink

Declaration
public static Color Pink { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Plum

Declaration
public static Color Plum { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

PowderBlue

Declaration
public static Color PowderBlue { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Purple

Declaration
public static Color Purple { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

R

Declaration
public int R { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

Red

Declaration
public static Color Red { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

rkBlue

Declaration
public static Color rkBlue { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

rkCyan

Declaration
public static Color rkCyan { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

rkGoldenRod

Declaration
public static Color rkGoldenRod { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

rkGray

Declaration
public static Color rkGray { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

rkGreen

Declaration
public static Color rkGreen { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

rkKhaki

Declaration
public static Color rkKhaki { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

rkMagenta

Declaration
public static Color rkMagenta { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

rkOliveGreen

Declaration
public static Color rkOliveGreen { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

rkOrange

Declaration
public static Color rkOrange { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

rkOrchid

Declaration
public static Color rkOrchid { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

rkRed

Declaration
public static Color rkRed { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

rkSalmon

Declaration
public static Color rkSalmon { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

rkSeaGreen

Declaration
public static Color rkSeaGreen { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

rkSlateBlue

Declaration
public static Color rkSlateBlue { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

rkSlateGray

Declaration
public static Color rkSlateGray { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

rkTurquoise

Declaration
public static Color rkTurquoise { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

rkViolet

Declaration
public static Color rkViolet { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

RosyBrown

Declaration
public static Color RosyBrown { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

RoyalBlue

Declaration
public static Color RoyalBlue { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

SaddleBrown

Declaration
public static Color SaddleBrown { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Salmon

Declaration
public static Color Salmon { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

SandyBrown

Declaration
public static Color SandyBrown { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

SeaGreen

Declaration
public static Color SeaGreen { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

SeaShell

Declaration
public static Color SeaShell { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Sienna

Declaration
public static Color Sienna { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Silver

Declaration
public static Color Silver { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

SkyBlue

Declaration
public static Color SkyBlue { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

SlateBlue

Declaration
public static Color SlateBlue { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

SlateGray

Declaration
public static Color SlateGray { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Snow

Declaration
public static Color Snow { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

SpringGreen

Declaration
public static Color SpringGreen { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

SteelBlue

Declaration
public static Color SteelBlue { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Tan

Declaration
public static Color Tan { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Teal

Declaration
public static Color Teal { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Thistle

Declaration
public static Color Thistle { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Tomato

Declaration
public static Color Tomato { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Turquoise

Declaration
public static Color Turquoise { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Violet

Declaration
public static Color Violet { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Wheat

Declaration
public static Color Wheat { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

White

Declaration
public static Color White { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

WhiteSmoke

Declaration
public static Color WhiteSmoke { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

Yellow

Declaration
public static Color Yellow { get; }
Property Value
Type Description
Color
| Improve this Doc View Source

YellowGreen

Declaration
public static Color YellowGreen { get; }
Property Value
Type Description
Color

Operators

| Improve this Doc View Source

Implicit(Int32 to Color)

Declaration
public static implicit operator Color(int color)
Parameters
Type Name Description
Int32 color
Returns
Type Description
Color
| Improve this Doc View Source

Implicit(UInt32 to Color)

Declaration
public static implicit operator Color(uint color)
Parameters
Type Name Description
UInt32 color
Returns
Type Description
Color
  • Improve this Doc
  • View Source
Back to top Generated by DocFX