C# Class AnimalCrossingQR.AC.Palette

Mostrar archivo Open project: jefff/animalcrossingqr Class Usage Examples

Public Properties

Property Type Description
ColorPalette Color[]
DefaultColorCodes byte[]

Public Methods

Method Description
GetColor ( int index ) : Color
GetColorByCode ( byte code ) : Color
GetColorIndexByCode ( byte code ) : int
GetNearestColor ( Color color ) : Color
GetNearestColorCode ( Color color ) : byte
GetNearestColorIndex ( Color color ) : byte
Palette ( ) : System
Palette ( NibbleReader nibbleReader ) : System
SetColor ( int index, Color color ) : void
Write ( NibbleWriter nibbleWriter ) : void

Private Methods

Method Description
GetColorCode ( int index ) : byte

Method Details

GetColor() public method

public GetColor ( int index ) : Color
index int
return Color

GetColorByCode() public static method

public static GetColorByCode ( byte code ) : Color
code byte
return Color

GetColorIndexByCode() public static method

public static GetColorIndexByCode ( byte code ) : int
code byte
return int

GetNearestColor() public static method

public static GetNearestColor ( Color color ) : Color
color Color
return Color

GetNearestColorCode() public static method

public static GetNearestColorCode ( Color color ) : byte
color Color
return byte

GetNearestColorIndex() public method

public GetNearestColorIndex ( Color color ) : byte
color Color
return byte

Palette() public method

public Palette ( ) : System
return System

Palette() public method

public Palette ( NibbleReader nibbleReader ) : System
nibbleReader NibbleReader
return System

SetColor() public method

public SetColor ( int index, Color color ) : void
index int
color Color
return void

Write() public method

public Write ( NibbleWriter nibbleWriter ) : void
nibbleWriter NibbleWriter
return void

Property Details

ColorPalette public_oe static_oe property

public static Color[] ColorPalette
return Color[]

DefaultColorCodes public_oe static_oe property

public static byte[] DefaultColorCodes
return byte[]