C# 클래스 Nez.ColorExt

파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 메소드들

메소드 설명
add ( this color, Color second ) : Color
grayscale ( this color ) : Color
hexToByte ( char c ) : byte
hexToColor ( int hex ) : Color
hexToColor ( string hex ) : Color
invert ( this color ) : Color
lerp ( Color from, Color to, float t ) : Color

linearly interpolates Color from - to

lerp ( Color &from, Color &to, Color &result, float t ) : void

linearly interpolates Color from - to

multiply ( this self, Color second ) : Color
subtract ( this color, Color second ) : Color

first - second

메소드 상세

add() 공개 정적인 메소드

public static add ( this color, Color second ) : Color
color this
second Color
리턴 Color

grayscale() 정적인 공개 메소드

static public grayscale ( this color ) : Color
color this
리턴 Color

hexToByte() 정적인 공개 메소드

static public hexToByte ( char c ) : byte
c char
리턴 byte

hexToColor() 공개 정적인 메소드

public static hexToColor ( int hex ) : Color
hex int
리턴 Color

hexToColor() 정적인 공개 메소드

static public hexToColor ( string hex ) : Color
hex string
리턴 Color

invert() 정적인 공개 메소드

static public invert ( this color ) : Color
color this
리턴 Color

lerp() 공개 정적인 메소드

linearly interpolates Color from - to
public static lerp ( Color from, Color to, float t ) : Color
from Color From.
to Color To.
t float T.
리턴 Color

lerp() 공개 정적인 메소드

linearly interpolates Color from - to
public static lerp ( Color &from, Color &to, Color &result, float t ) : void
from Color From.
to Color To.
result Color
t float T.
리턴 void

multiply() 공개 정적인 메소드

public static multiply ( this self, Color second ) : Color
self this
second Color
리턴 Color

subtract() 공개 정적인 메소드

first - second
public static subtract ( this color, Color second ) : Color
color this
second Color Second.
리턴 Color