yardgif

package
v0.0.0-...-06eecd2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Grid

type Grid struct {
	CornersBroken bool
	// contains filtered or unexported fields
}

Grid represents a grid of lights

func New

func New(p string) *Grid

New returns a new grid based on the provided file path.

func (*Grid) Animate

func (g *Grid) Animate(steps int)

Animate runs the program for the provided number of steps.

func (*Grid) LightsOn

func (g *Grid) LightsOn() (ret int)

LightsOn returns the number of lights that are on.

Jump to

Keyboard shortcuts

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