vga

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2020 License: BSD-3-Clause Imports: 1 Imported by: 1

README

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

Documentation

Overview

Package vga provides the VGA 256-color default palette, famously used in video mode 13h. See also https://en.wikipedia.org/wiki/Video_Graphics_Array#Color_palette

Index

Constants

This section is empty.

Variables

View Source
var DefaultPalette = []color.Color{}/* 256 elements not displayed */

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

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
demo
vga-palette-image
A little demo program that creates a PNG image of the VGA 256 color default palette.
A little demo program that creates a PNG image of the VGA 256 color default palette.

Jump to

Keyboard shortcuts

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