Versions in this module Expand all Collapse all v0 v0.2.0 Jul 19, 2024 Changes in this version + type Drawer struct + func (dr Drawer) Draw(dst draw.Image, r image.Rectangle, src image.Image, sp image.Point) + type Op struct + Ratio float64 + Weights []float64 + func NewOperation(queueSize int, ratio float64) *Op + func (rs *Op) AccumulatedError(numChannel int) ColorError + func (rs *Op) Dither(image Image) + func (rs *Op) Draw(dst draw.Image, r image.Rectangle, src image.Image, sp image.Point) v0.1.0 Jul 19, 2024 Changes in this version + var Riemersma = riemersma + type AnyImage struct + Dp image.Point + Dst draw.Image + Sp image.Point + Src image.Image + func (img AnyImage) ColorNumChannels() int + func (img AnyImage) DitherPixel(x int, y int, accErr ColorError) ColorError + func (img AnyImage) Size() image.Point + type ColorError []float64 + type Image interface + ColorNumChannels func() int + DitherPixel func(x int, y int, accErr ColorError) ColorError + Size func() image.Point + func NewImage(dst draw.Image, r image.Rectangle, src image.Image, sp image.Point) Image + type RiemersmaDither struct + Ratio float64 + Weights []float64 + func NewRiemersmaDither(queueSize int, ratio float64) *RiemersmaDither + func (rs *RiemersmaDither) AccumulatedError(numChannel int) ColorError + func (rs *RiemersmaDither) Dither(image Image) + func (rs *RiemersmaDither) Draw(dst draw.Image, r image.Rectangle, src image.Image, sp image.Point)