julien

package
v0.0.0-...-9d5060a Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Matrix

type Matrix struct {
	Matrix []Row
}

Matrix is a logical, or (0, 1)-matrix

func GenerateEmpty

func GenerateEmpty(height, width int) Matrix

GenerateEmpty generates the n-by-n matrix with all entries set to 0.

func (*Matrix) Apply

func (t *Matrix) Apply(leds []color.Color) error

func (*Matrix) At

func (e *Matrix) At(position int) color.Color

func (*Matrix) Close

func (t *Matrix) Close() error

Those new functions have no use with the emulator

func (*Matrix) Geometry

func (e *Matrix) Geometry() (width, height int)

func (*Matrix) GetBrightness

func (t *Matrix) GetBrightness() int

func (*Matrix) Render

func (e *Matrix) Render() error

func (*Matrix) Set

func (e *Matrix) Set(position int, c color.Color)

func (*Matrix) SetBrightness

func (t *Matrix) SetBrightness(brightness int)

func (Matrix) Size

func (e Matrix) Size() (int, int)

Size returns the dimensions of the matrix in (Rows, Columns) order.

func (Matrix) String

func (e Matrix) String() string

String converts the matrix to space-and-dot notation.

type Row

type Row []point

A binary row / vector in GF(2)^n.

func NewRow

func NewRow(n int) Row

NewRow returns an empty n-component row.

func (Row) Size

func (e Row) Size() int

Size returns the dimension of the vector.

func (Row) String

func (e Row) String() string

String converts the row into space-and-dot notation.

Jump to

Keyboard shortcuts

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