draw

package
v0.9.32 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package draw is managed screen

Index

Constants

View Source
const (
	// TimerBaseWidth is base width of timer.
	TimerBaseWidth = 21
	// TimerBaseHeight is base height of timer.
	TimerBaseHeight = 5
)

Variables

This section is empty.

Functions

func Sentence

func Sentence(s tcell.Screen, x, y, width int, str string, centered bool, opts ...Option) int

Sentence is draw the sentence.

func Timer

func Timer(s tcell.Screen, x, y, mag, min, sec int, opts ...Option)

Timer is draw the timer.

Types

type Option

type Option func(tcell.Style) tcell.Style

Option for optoin of drawing.

func WithBackgroundColor

func WithBackgroundColor(color tcell.Color) Option

WithBackgroundColor set BackgroundColor.

func WithForegroundColor

func WithForegroundColor(color tcell.Color) Option

WithForegroundColor set BackgroundColor.

Jump to

Keyboard shortcuts

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