Versions in this module Expand all Collapse all v1 v1.0.0 Feb 12, 2021 Changes in this version + var Atkinson = ErrorDiffusionMatrix + var Burkes = ErrorDiffusionMatrix + var ClusteredDot4x4 = OrderedDitherMatrix + var ClusteredDot6x6 = OrderedDitherMatrix + var ClusteredDot6x6_2 = OrderedDitherMatrix + var ClusteredDot6x6_3 = OrderedDitherMatrix + var ClusteredDot8x8 = OrderedDitherMatrix + var ClusteredDotDiagonal16x16 = OrderedDitherMatrix + var ClusteredDotDiagonal6x6 = OrderedDitherMatrix + var ClusteredDotDiagonal8x8 = OrderedDitherMatrix + var ClusteredDotDiagonal8x8_2 = OrderedDitherMatrix + var ClusteredDotDiagonal8x8_3 = OrderedDitherMatrix + var ClusteredDotHorizontalLine = OrderedDitherMatrix + var ClusteredDotSpiral5x5 = OrderedDitherMatrix + var ClusteredDotVerticalLine = OrderedDitherMatrix + var FalseFloydSteinberg = ErrorDiffusionMatrix + var FloydSteinberg = ErrorDiffusionMatrix + var Horizontal3x5 = OrderedDitherMatrix + var JarvisJudiceNinke = ErrorDiffusionMatrix + var Sierra = ErrorDiffusionMatrix + var Sierra2 = TwoRowSierra + var Sierra2_4A = SierraLite + var Sierra3 = Sierra + var SierraLite = ErrorDiffusionMatrix + var Simple2D = ErrorDiffusionMatrix + var StevenPigeon = ErrorDiffusionMatrix + var Stucki = ErrorDiffusionMatrix + var TwoRowSierra = ErrorDiffusionMatrix + var Vertical5x3 = OrderedDitherMatrix + type Ditherer struct + Mapper PixelMapper + Matrix ErrorDiffusionMatrix + Serpentine bool + SingleThreaded bool + Special SpecialDither + func NewDitherer(palette []color.Color) *Ditherer + func (d *Ditherer) Dither(src image.Image) image.Image + func (d *Ditherer) DitherConfig(src draw.Image) (image.Image, image.Config) + func (d *Ditherer) DitherCopy(src image.Image) *image.RGBA + func (d *Ditherer) DitherCopyConfig(src image.Image) (*image.RGBA, image.Config) + func (d *Ditherer) DitherPaletted(src image.Image) *image.Paletted + func (d *Ditherer) DitherPalettedConfig(src image.Image) (*image.Paletted, image.Config) + func (d *Ditherer) Draw(dst draw.Image, r image.Rectangle, src image.Image, sp image.Point) + func (d *Ditherer) GetColorModel() color.Model + func (d *Ditherer) GetPalette() []color.Color + func (d *Ditherer) Quantize(p color.Palette, m image.Image) color.Palette + type ErrorDiffusionMatrix [][]float32 + func (e ErrorDiffusionMatrix) CurrentPixel() int + func (e ErrorDiffusionMatrix) Offset(x, y, curPx int) (int, int) + type OrderedDitherMatrix struct + Matrix [][]uint + Max uint + type PixelMapper func(x, y int, r, g, b uint8) (uint8, uint8, uint8) + func Bayer(x, y uint, strength float32) PixelMapper + func PixelMapperFromMatrix(odm OrderedDitherMatrix, strength float32) PixelMapper + func RandomNoiseGrayscale(min, max float32) PixelMapper + func RandomNoiseRGB(minR, maxR, minG, maxG, minB, maxB float32) PixelMapper + type SpecialDither int Other modules containing this package github.com/makeworld-the-better-one/dither/v2