demos

package
v0.0.0-...-1580ae8 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 3 Imported by: 0

README

LED animation demos

This package contains a number of LED animations. Note that the resolution is low (32x32) to match LED panels such as common hub75 LED panels.

Fire

A simple fire-like animation.

Fire

Noise

Map 3D simplex noise to an image using the noise output as the hue of the pixel color.

Noise

Documentation

Overview

Package patterns implements a number of animations for small LED displays.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fire

func Fire(display Displayer, now time.Time)

Fire shows an animation that looks somewhat like fire. The 'now' time indicates which instance of the animation is generated.

func Noise

func Noise(display Displayer, now time.Time)

Noise shows noise mapped to a rainbow function. The 'now' time indicates which instance of the animation is generated.

Types

type Displayer

type Displayer interface {
	// Size returns the current size of the display.
	Size() (x, y int16)

	// SetPizel modifies the internal buffer.
	SetPixel(x, y int16, c color.RGBA)
}

Displayer is a surface that can be drawn upon.

Jump to

Keyboard shortcuts

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