cmd

package
v0.0.0-...-035564b Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type BinaryOutput

type BinaryOutput struct {
	StartSentinal [6]byte
	NumLEDs       uint16
}

type BinaryOutputSquare

type BinaryOutputSquare struct {
	Row        uint8
	Column     uint8
	Red        uint8
	Green      uint8
	Blue       uint8
	Brightness uint8
}

type ControlArea

type ControlArea struct {
	Origin rl.Vector2
	Height int32
	Width  int32
	Info   map[string]interface{}
}

func NewControlArea

func NewControlArea(origin rl.Vector2, width, height int32) ControlArea

type Game

type Game struct {
	PrimaryScreen Screen
	Spacing       float32
	TargetFPS     int32
	FadeMode      bool
	DecayMode     bool
	LogMode       bool
	FillMode      bool
}

func (*Game) Draw

func (game *Game) Draw()

type Grid

type Grid struct {
	Origin          rl.Vector2
	Height          int32
	Width           int32
	NumRows         uint8
	NumColumns      uint8
	Spacing         int32
	Color           rl.Color
	GridRowByColumn [][]GridSquare // rows x columns
	LastModified    time.Time
}

func NewGrid

func NewGrid(origin rl.Vector2, numColumns, numRows uint8, spacing int32) Grid

func (*Grid) Draw

func (grid *Grid) Draw(gameContext Game)

func (*Grid) MarshalBinary

func (grid *Grid) MarshalBinary() (data []byte, err error)

type GridSquare

type GridSquare struct {
	Origin    rl.Vector2
	Row       uint8
	Column    uint8
	CreatedAt time.Time
	Color     rl.Color
}

type Screen

type Screen struct {
	Height      int32
	Width       int32
	Grid        Grid
	StatusArea  StatusArea
	ControlArea ControlArea
}

func NewScreen

func NewScreen(width, height int32) Screen

func (*Screen) Draw

func (screen *Screen) Draw(gameContext Game)

type StatusArea

type StatusArea struct {
	Origin rl.Vector2
	Height int32
	Width  int32
}

func NewStatusArea

func NewStatusArea(origin rl.Vector2, width, height int32) StatusArea

func (*StatusArea) Draw

func (statusArea *StatusArea) Draw(gameContext Game)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳