Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BLACK = color.Gray{Y: 0} WHITE = color.Gray{Y: 255} )
Functions ¶
func ColourPaletteImage ¶
Returns image of the colour palette, which each colour represented as a square. The size of the square in pixels is also specified.
func ImageFromPalette ¶
Recreates image from colour palette. If one greyscale colour is specified then the image is recreated in black and white with the split between them at the specified input colour
Types ¶
type DitherType ¶
type DitherType int
const ( NoDither DitherType = iota FloydSteinberg FloydSteinbergSerpentine Bayer2x2 Bayer4x4 Bayer8x8 )
Click to show internal directories.
Click to hide internal directories.