Arcade
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
GameAPI.BudgetBoy.Palette Class Reference

Contains up to 256 Swatch entries, each of which contains 4 colors to be used when drawing a Sprite. More...

Inheritance diagram for GameAPI.BudgetBoy.Palette:

Public Member Functions

SwatchIndex FindSwatch (Color24 a, Color24 b, Color24 c)
 Finds the index of a Swatch closest to the specified colours, with transparency for the fourth color. More...
 
SwatchIndex FindSwatch (int a, int b, int c)
 Finds the index of a Swatch closest to the specified colours, with transparency for the fourth color. More...
 
SwatchIndex FindSwatch (Color24 a, Color24 b, Color24 c, Color24 d)
 Finds the index of a Swatch closest to the specified colours. More...
 
SwatchIndex FindSwatch (int a, int b, int c, int d)
 Finds the index of a Swatch closest to the specified colours. More...
 
SwatchIndex FindSwatch (Swatch swatch)
 Finds the index of a Swatch within the Palette closest to the colors within the given Swatch. More...
 
IEnumerator< SwatchGetEnumerator ()
 

Properties

Swatch this[SwatchIndex index] [get]
 Gets a Swatch entry from the palette from a given index. More...
 

Detailed Description

Contains up to 256 Swatch entries, each of which contains 4 colors to be used when drawing a Sprite.

Member Function Documentation

SwatchIndex GameAPI.BudgetBoy.Palette.FindSwatch ( Color24  a,
Color24  b,
Color24  c 
)
inline

Finds the index of a Swatch closest to the specified colours, with transparency for the fourth color.

SwatchIndex GameAPI.BudgetBoy.Palette.FindSwatch ( int  a,
int  b,
int  c 
)
inline

Finds the index of a Swatch closest to the specified colours, with transparency for the fourth color.

SwatchIndex GameAPI.BudgetBoy.Palette.FindSwatch ( Color24  a,
Color24  b,
Color24  c,
Color24  d 
)
inline

Finds the index of a Swatch closest to the specified colours.

SwatchIndex GameAPI.BudgetBoy.Palette.FindSwatch ( int  a,
int  b,
int  c,
int  d 
)
inline

Finds the index of a Swatch closest to the specified colours.

SwatchIndex GameAPI.BudgetBoy.Palette.FindSwatch ( Swatch  swatch)
inline

Finds the index of a Swatch within the Palette closest to the colors within the given Swatch.

IEnumerator<Swatch> GameAPI.BudgetBoy.Palette.GetEnumerator ( )
inline

Property Documentation

Swatch GameAPI.BudgetBoy.Palette.this[SwatchIndex index]
get

Gets a Swatch entry from the palette from a given index.

Parameters
indexIndex of the Swatch to retrieve.
Returns
A Swatch corresponding to the given index.