Documentation ¶
Index ¶
- Constants
- Variables
- func DecodeDMD(data []byte) ([]*sdl.Surface, error)
- func DecodeDMD1(data []byte) (*sdl.Surface, error)
- func RegisterAudioSystem(eng *spin.Engine)
- func RegisterDisplaySystem(eng *spin.Engine, opts spin.DisplayOptions)
- func RegisterDotMatrixSystem(eng *spin.Engine, opts OptionsDotMatrix)
- func RegisterInputSystem(eng *spin.Engine)
- type OptionsDotMatrix
- type RegisterButton
- type RegisterKey
Constants ¶
View Source
const DebugVolume = "Volume"
Variables ¶
View Source
var PaletteOrange = []color.RGBA{
{0, 0, 0, 0xff},
{15, 8, 0, 0xff},
{33, 17, 0, 0xff},
{51, 25, 0, 0xff},
{66, 33, 0, 0xff},
{84, 42, 0, 0xff},
{102, 51, 0, 0xff},
{117, 58, 0, 0xff},
{135, 67, 0, 0xff},
{153, 76, 0, 0xff},
{168, 84, 0, 0xff},
{186, 93, 0, 0xff},
{204, 102, 0, 0xff},
{219, 109, 0, 0xff},
{237, 118, 0, 0xff},
{255, 127, 0, 0xff},
}
Functions ¶
func RegisterAudioSystem ¶
func RegisterDisplaySystem ¶
func RegisterDisplaySystem(eng *spin.Engine, opts spin.DisplayOptions)
func RegisterDotMatrixSystem ¶
func RegisterDotMatrixSystem(eng *spin.Engine, opts OptionsDotMatrix)
func RegisterInputSystem ¶
Types ¶
type OptionsDotMatrix ¶
type OptionsDotMatrix struct { ID string Scale int Padding int BackColor color.RGBA BorderColor color.RGBA BorderSize int Title string Palette []color.RGBA }
func DefaultOptionsDotMatrix ¶
func DefaultOptionsDotMatrix() OptionsDotMatrix
type RegisterButton ¶ added in v0.7.0
Click to show internal directories.
Click to hide internal directories.