package techcore

import "github.com/nsf/termbox-go"

type Color int

const (
	ColorBlack Color = 1 << iota
	ColorBlue
	ColorCyan
	ColorGreen
	ColorMagenta
	ColorRed
	ColorWhite
	ColorYellow
	ColorAlpha
)

func (c Color) GetTermboxColor() termbox.Attribute {
	switch c {
	case ColorBlack:
		return termbox.ColorBlack
	case ColorBlue:
		return termbox.ColorBlue
	case ColorCyan:
		return termbox.ColorCyan
	case ColorGreen:
		return termbox.ColorGreen
	case ColorMagenta:
		return termbox.ColorMagenta
	case ColorRed:
		return termbox.ColorRed
	case ColorWhite:
		return termbox.ColorWhite
	case ColorYellow:
		return termbox.ColorYellow
	case ColorAlpha:
		return termbox.ColorDefault
	default:
		return termbox.ColorDefault
	}
}
