palette

package
v0.0.0-...-1092257 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2015 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package palette provides standard color palettes.

Index

Constants

This section is empty.

Variables

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

Plan9 is a 256-color palette that partitions the 24-bit RGB space into 4×4×4 subdivision, with 4 shades in each subcube. Compared to the WebSafe, the idea is to reduce the color resolution by dicing the color cube into fewer cells, and to use the extra space to increase the intensity resolution. This results in 16 gray shades (4 gray subcubes with 4 samples in each), 13 shades of each primary and secondary color (3 subcubes with 4 samples plus black) and a reasonable selection of colors covering the rest of the color cube. The advantage is better representation of continuous tones.

This palette was used in the Plan 9 Operating System, described at http://plan9.bell-labs.com/magic/man2html/6/color

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

WebSafe is a 216-color palette that was popularized by early versions of Netscape Navigator. It is also known as the Netscape Color Cube.

See http://en.wikipedia.org/wiki/Web_colors#Web-safe_colors for details.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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