Skip to content

fzipp/vga

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
	// ...
}