C# 클래스 entity.MetaEditor2.ColorHandler

The color handler.
파일 보기 프로젝트 열기: troymac1ure/Entity 1 사용 예제들

공개 메소드들

메소드 설명
HSVtoColor ( HSV hsv ) : Color

The hs vto color.

HSVtoColor ( int H, int S, int V ) : Color

The hs vto color.

HSVtoRGB ( HSV HSV ) : RGB

The hs vto rgb.

HSV contains values scaled as in the color wheel: that is, all from 0 to 255. for ( this code to work, HSV.Hue needs to be scaled from 0 to 360 (it//s the angle of the selected point within the circle). HSV.Saturation and HSV.value must be scaled to be between 0 and 1.

HSVtoRGB ( int H, int S, int V ) : RGB

The hs vto rgb.

RGBtoHSV ( RGB RGB ) : HSV

In this function, R, G, and B values must be scaled to be between 0 and 1. HSV.Hue will be a value between 0 and 360, and HSV.Saturation and value are between 0 and 1. The code must scale these to be between 0 and 255 for the purposes of this application.

메소드 상세

HSVtoColor() 공개 정적인 메소드

The hs vto color.
public static HSVtoColor ( HSV hsv ) : Color
hsv HSV The hsv.
리턴 Color

HSVtoColor() 공개 정적인 메소드

The hs vto color.
public static HSVtoColor ( int H, int S, int V ) : Color
H int The h.
S int The s.
V int The v.
리턴 Color

HSVtoRGB() 공개 정적인 메소드

The hs vto rgb.
HSV contains values scaled as in the color wheel: that is, all from 0 to 255. for ( this code to work, HSV.Hue needs to be scaled from 0 to 360 (it//s the angle of the selected point within the circle). HSV.Saturation and HSV.value must be scaled to be between 0 and 1.
public static HSVtoRGB ( HSV HSV ) : RGB
HSV HSV The hsv.
리턴 RGB

HSVtoRGB() 공개 정적인 메소드

The hs vto rgb.
public static HSVtoRGB ( int H, int S, int V ) : RGB
H int The h.
S int The s.
V int The v.
리턴 RGB

RGBtoHSV() 공개 정적인 메소드

In this function, R, G, and B values must be scaled to be between 0 and 1. HSV.Hue will be a value between 0 and 360, and HSV.Saturation and value are between 0 and 1. The code must scale these to be between 0 and 255 for the purposes of this application.
public static RGBtoHSV ( RGB RGB ) : HSV
RGB RGB The R(ed)G(reen)B(lue) values
리턴 HSV