C# 클래스 RPG.Tone

The color tone class. Each component is handled with a value.
파일 보기 프로젝트 열기: borisblizzard/arcreator 1 사용 예제들

공개 메소드들

메소드 설명
ToString ( ) : string

Returns a that represents the current object.

Tone ( ) : System

Creates a Tone object with all values initialized as 0.0.

Tone ( float red, float green, float blue, float gray = 0.0f ) : System

Creates a Tone object. If gray is omitted, it is assumed at 0.

_arc_dump ( ) : byte[]

Serializes and dumps the Color object in ARC format.

_arc_load ( byte bytes ) : Tone

Deserializes and loads a Color object saved in ARC format.

set ( float red, float green, float blue ) : void

Sets all components at once. Gray remains the same.

set ( float red, float green, float blue, float gray ) : void

Sets all components at once.

메소드 상세

ToString() 공개 메소드

Returns a that represents the current object.
public ToString ( ) : string
리턴 string

Tone() 공개 메소드

Creates a Tone object with all values initialized as 0.0.
public Tone ( ) : System
리턴 System

Tone() 공개 메소드

Creates a Tone object. If gray is omitted, it is assumed at 0.
public Tone ( float red, float green, float blue, float gray = 0.0f ) : System
red float The red value (-255-255)
green float The green value (-255-255)
blue float The blue value (-255-255)
gray float The gray value (0-255)
리턴 System

_arc_dump() 공개 메소드

Serializes and dumps the Color object in ARC format.
public _arc_dump ( ) : byte[]
리턴 byte[]

_arc_load() 공개 정적인 메소드

Deserializes and loads a Color object saved in ARC format.
public static _arc_load ( byte bytes ) : Tone
bytes byte A array containing the serialized data.
리턴 Tone

set() 공개 메소드

Sets all components at once. Gray remains the same.
public set ( float red, float green, float blue ) : void
red float The red value (-255-255)
green float The green value (-255-255)
blue float The blue value (-255-255)
리턴 void

set() 공개 메소드

Sets all components at once.
public set ( float red, float green, float blue, float gray ) : void
red float The red value (-255-255)
green float The green value (-255-255)
blue float The blue value (-255-255)
gray float The gray value (0-255)
리턴 void