ledmatrix

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2015 License: Apache-2.0 Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Color

type Color uint32
var Red, Green, Blue, White, Black Color

func RGB

func RGB(r, g, b int) Color

type Matrix

type Matrix struct {
	// contains filtered or unexported fields
}

func Concat

func Concat(a *Matrix, b ...*Matrix) *Matrix

func NewMatrix

func NewMatrix(rows, columns int) *Matrix

func (*Matrix) Append

func (m *Matrix) Append(x ...*Matrix)

func (*Matrix) Columns

func (m *Matrix) Columns() int

func (*Matrix) GetPixel

func (m *Matrix) GetPixel(x, y int) Color

func (*Matrix) InterleavedStripes

func (m *Matrix) InterleavedStripes() []Stripe

func (*Matrix) Rows

func (m *Matrix) Rows() int

func (*Matrix) SetPixel

func (m *Matrix) SetPixel(x, y int, color Color)

func (*Matrix) Slice

func (m *Matrix) Slice(low, high int) *Matrix

type Stripe

type Stripe []Color

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(m *Matrix) *Writer

func (*Writer) Pos

func (w *Writer) Pos() int

func (*Writer) SetPos

func (w *Writer) SetPos(pos int)

func (*Writer) Spacer

func (w *Writer) Spacer(width int, color Color)

func (*Writer) WriteBitmap

func (w *Writer) WriteBitmap(bitmap [][]Color)

func (*Writer) WriteText

func (w *Writer) WriteText(text string, font font.Font, color, bgColor Color)

Directories

Path Synopsis
Bitmap fonts Bitmap font 6x8 Bitmap font 8x8
Bitmap fonts Bitmap font 6x8 Bitmap font 8x8

Jump to

Keyboard shortcuts

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