C# 클래스 RPG.Color

The RGBA color class. Each component is handled with a value.
파일 보기 프로젝트 열기: borisblizzard/arcreator

공개 메소드들

메소드 설명
Color ( ) : System

Creates a Color object with all values initialized as 0.0.

Color ( float red, float green, float blue, float alpha = 255.0f ) : System

Creates a Color object. If alpha is omitted, it is assumed at 255.

ToString ( ) : string

Returns a that represents the current object.

_arc_dump ( ) : byte[]

Serializes and dumps the Color object in ARC format.

_arc_load ( byte bytes ) : Color

Deserializes and loads a Color object saved in ARC format.

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

Sets all components at once. Alpha remains the same.

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

Sets all components at once.

메소드 상세

Color() 공개 메소드

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

Color() 공개 메소드

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

ToString() 공개 메소드

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

_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 ) : Color
bytes byte A array containing the serialized data.
리턴 Color

set() 공개 메소드

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

set() 공개 메소드

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