drawers

package
v0.0.0-...-ea0c5be Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DROP_CHARS      = "'`|-"
	RAIN_INTENSITY  = 5
	MIN_DROP_SPEED  = 0.5
	MAX_DROP_SPEED  = 3.0
	RAIN_DROP_DRIFT = 0.25
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FormDrawer

type FormDrawer struct {
}

func CreateFormDrawer

func CreateFormDrawer() *FormDrawer

func (*FormDrawer) Draw

func (formDrawer *FormDrawer) Draw(screen tcell.Screen, x, y, width, height int) (int, int, int, int)

type RainDrawer

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

func CreateRainDrawer

func CreateRainDrawer() *RainDrawer

func (*RainDrawer) Draw

func (rainDrawer *RainDrawer) Draw(screen tcell.Screen, x, y, width, height int) (int, int, int, int)

type TimeDrawer

type TimeDrawer struct {
}

func CreateTimeDrawer

func CreateTimeDrawer() *TimeDrawer

func (*TimeDrawer) Draw

func (timeDrawer *TimeDrawer) Draw(screen tcell.Screen, x int, y int, width int, height int) (int, int, int, int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳