Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 688 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 688 Bytes

vga

The VGA 256-color default palette for Go. It can be used as a color.Palette from the standard library, e.g. to create an image.Paletted.

VGA 256-color default palette

Add it to a module as a dependency via:

go get github.com/fzipp/vga

Example usage

package main

import (
	"image"

	"github.com/fzipp/vga"
)

func main() {
	img := image.NewPaletted(image.Rect(0, 0, 320, 200), vga.DefaultPalette)
	// ...
}