scheme

package
v0.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Formats

func Formats() []string

Types

type Scheme

type Scheme struct {
	Name    string `yaml:"name"`
	Black   string `yaml:"color_01"`
	Red     string `yaml:"color_02"`
	Green   string `yaml:"color_03"`
	Yellow  string `yaml:"color_04"`
	Blue    string `yaml:"color_05"`
	Magenta string `yaml:"color_06"`
	Cyan    string `yaml:"color_07"`
	White   string `yaml:"color_08"`

	BrightBlack   string `yaml:"color_09"`
	BrightRed     string `yaml:"color_10"`
	BrightGreen   string `yaml:"color_11"`
	BrightYellow  string `yaml:"color_12"`
	BrightBlue    string `yaml:"color_13"`
	BrightMagenta string `yaml:"color_14"`
	BrightCyan    string `yaml:"color_15"`
	BrightWhite   string `yaml:"color_16"`

	Background string `yaml:"background"`
	Foreground string `yaml:"foreground"`

	Cursor string `yaml:"cursor"`
}

func (Scheme) Colors added in v0.1.3

func (sc Scheme) Colors() []string

func (Scheme) ColorsBright added in v0.1.3

func (sc Scheme) ColorsBright() []string

func (Scheme) ColorsNormal added in v0.1.3

func (sc Scheme) ColorsNormal() []string

func (Scheme) Format

func (sc Scheme) Format(format string) (string, error)

func (Scheme) IsDark

func (sc Scheme) IsDark() bool

func (Scheme) Render

func (sc Scheme) Render() (s string)

Jump to

Keyboard shortcuts

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