C# 클래스 Microsoft.Xna.Framework.ColorExtensions

파일 보기 프로젝트 열기: Thraka/SadConsole

공개 프로퍼티들

프로퍼티 타입 설명
ColorMappings Color>.Dictionary

공개 메소드들

메소드 설명
BlueOnly ( this color ) : Color

Returns a new Color using only the Blue value of this color.

FromParser ( this color, string value, bool &keepR, bool &keepG, bool &keepB, bool &keepA, bool &useDefault ) : Color

Gets a color in the format of SadConsole.ParseCommandRecolor.

GetBrightness ( this color ) : float
GetHue ( this color ) : float
GetLuma ( this color ) : float
GetRandomColor ( this color, Random random ) : Color
GetSaturation ( this color ) : float
GreenOnly ( this color ) : Color

Returns a new Color using only the Green value of this color.

LerpSteps ( this color, Color endingColor, int steps ) : Color[]
RedOnly ( this color ) : Color

Returns a new Color using only the Red value of this color.

SetHSL ( this color, float h, float s, float l ) : void
ToInteger ( this color ) : uint
ToParser ( this color ) : string

Converts a color to the format used by SadConsole.ParseCommandRecolor command.

비공개 메소드들

메소드 설명
Hue_2_RGB ( float v1, float v2, float vH ) : float

메소드 상세

BlueOnly() 공개 정적인 메소드

Returns a new Color using only the Blue value of this color.
public static BlueOnly ( this color ) : Color
color this Object instance.
리턴 Color

FromParser() 공개 정적인 메소드

Gets a color in the format of SadConsole.ParseCommandRecolor.
public static FromParser ( this color, string value, bool &keepR, bool &keepG, bool &keepB, bool &keepA, bool &useDefault ) : Color
color this
value string
keepR bool
keepG bool
keepB bool
keepA bool
useDefault bool
리턴 Color

GetBrightness() 공개 정적인 메소드

public static GetBrightness ( this color ) : float
color this
리턴 float

GetHue() 공개 정적인 메소드

public static GetHue ( this color ) : float
color this
리턴 float

GetLuma() 공개 정적인 메소드

public static GetLuma ( this color ) : float
color this
리턴 float

GetRandomColor() 공개 정적인 메소드

public static GetRandomColor ( this color, Random random ) : Color
color this
random System.Random
리턴 Color

GetSaturation() 공개 정적인 메소드

public static GetSaturation ( this color ) : float
color this
리턴 float

GreenOnly() 공개 정적인 메소드

Returns a new Color using only the Green value of this color.
public static GreenOnly ( this color ) : Color
color this Object instance.
리턴 Color

LerpSteps() 공개 정적인 메소드

public static LerpSteps ( this color, Color endingColor, int steps ) : Color[]
color this
endingColor Color
steps int
리턴 Color[]

RedOnly() 공개 정적인 메소드

Returns a new Color using only the Red value of this color.
public static RedOnly ( this color ) : Color
color this Object instance.
리턴 Color

SetHSL() 공개 정적인 메소드

public static SetHSL ( this color, float h, float s, float l ) : void
color this
h float
s float
l float
리턴 void

ToInteger() 공개 정적인 메소드

public static ToInteger ( this color ) : uint
color this
리턴 uint

ToParser() 공개 정적인 메소드

Converts a color to the format used by SadConsole.ParseCommandRecolor command.
public static ToParser ( this color ) : string
color this The color to convert.
리턴 string

프로퍼티 상세

ColorMappings 공개적으로 정적으로 프로퍼티

Custom color mappings for the FromParser(Color, string, out bool, out bool, out bool, out bool, out bool) method.
public static Dictionary ColorMappings
리턴 Color>.Dictionary