pixel

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const Ratio = .4583333333333333

Variables

View Source
var (
	White  = Color{R: 255, G: 255, B: 255}
	Green  = Color{R: 2, G: 186, B: 31}
	Yellow = Color{R: 190, G: 175, B: 0}
	Gray   = Color{R: 150, G: 150, B: 150}
	Cian   = Color{R: 0, G: 200, B: 200}
	Red    = Color{R: 250, G: 0, B: 0}
)
View Source
var StorePixel [2]Pixel

Functions

func Decrease added in v1.2.6

func Decrease(color int) int

func Increase added in v1.2.6

func Increase(color int) int

func MinMaxColor added in v1.2.6

func MinMaxColor(color int) int

func SetColor added in v1.2.6

func SetColor(color int) int

Types

type Color added in v1.2.6

type Color struct {
	R int
	G int
	B int
}

type Coord added in v1.2.6

type Coord struct {
	X int
	Y int
}

type Pixel

type Pixel struct {
	Coord  Coord
	Color  Color
	Symbol string
}

Jump to

Keyboard shortcuts

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