sdl

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 DecodeDMD

func DecodeDMD(data []byte) ([]*sdl.Surface, error)

func DecodeDMD1

func DecodeDMD1(data []byte) (*sdl.Surface, error)

func RegisterAudioSystem

func RegisterAudioSystem(eng *spin.Engine)

func RegisterDisplaySystem

func RegisterDisplaySystem(eng *spin.Engine, opts spin.DisplayOptions)

func RegisterDotMatrixSystem

func RegisterDotMatrixSystem(eng *spin.Engine, opts OptionsDotMatrix)

func RegisterInputSystem

func RegisterInputSystem(eng *spin.Engine)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL