frames

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 9 Imported by: 0

README

frames

Package frames contains static backgrounds.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BigHex = createPattern(`
     /  \    
__/        \_
  \        / 
     \__/    `, "", 0, 0)
View Source
var Brick = createPattern(`
|___|___|___
__|___|___|_`, "", 0, 0)
View Source
var Cheerios = createPattern(`
 / __ \ 
/ /  \ \
\ \__/ /
 \____/`, "", 0, 0)
View Source
var Cross = createPattern(`
 X 
/ \
\ /`, "", 0, 0)
View Source
var CrossStitch = createPattern(`
\/
<>
/\
==
<>
==`, "gfj/98", 0, 0)
View Source
var DotBricks = createPattern(`
---+---+---+---+
 o | o   o | o  `, "", 0, 0)
View Source
var Frames = map[string]Frame{}
View Source
var Hive = createPattern(`
/ \
\_/`, "", 0, 0)
View Source
var HiveThick = createPattern(`
 \__/ 
_/  \_`, "", 0, 0)
View Source
var Puzzle = createPattern(`
     _    
   _( )_| 
 _|     _|
(_   _ (_ 
 |__( )_|_
 |_     |_
  _) _   _
 |__( )_|_
`, "mx", -3, -3)
View Source
var Squares = createPattern(`
 __|__|
|   __|
|__|`, "", -1, -3)

TODO(cfoust): 11/17/23 too lazy to fix this

View Source
var Stars = createPattern(`
_/\_
/ _/
\/ \
/ _/`, "", 0, 0)
View Source
var Tiles = createPattern(`
\  \--
 \__\ 
__\  \
\  \__
 \__\ 
__\  \`, "", 0, 0)
View Source
var Wallpaper = createPattern(`
/|/ \|\ `, "PS", 0, 0)
View Source
var Zigzag = createPattern(`
\\//
//\\`, "", 0, 0)

Functions

This section is empty.

Types

type Frame

type Frame func(image.Image)

func RandomFrame

func RandomFrame() Frame

type Framer

type Framer struct {
	deadlock.RWMutex
	*mux.UpdatePublisher
	// contains filtered or unexported fields
}

func NewFramer

func NewFramer(
	ctx context.Context,
	frame Frame,
) *Framer

func (*Framer) Kill added in v0.2.0

func (f *Framer) Kill()

func (*Framer) Resize

func (f *Framer) Resize(size geom.Size) error

func (*Framer) Send

func (f *Framer) Send(msg mux.Msg)

func (*Framer) Set

func (f *Framer) Set(frame Frame)

func (*Framer) State

func (f *Framer) State() *tty.State

Jump to

Keyboard shortcuts

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