dither

package module
v0.0.0-...-5af22a6 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 License: GPL-3.0 Imports: 4 Imported by: 1

README

dither

GoDoc Go Report Card

Package dither implements ordered and Floyd–Steinberg dithering.

$ go get github.com/bake/dither
$
func main() {
  // ...
  img, _, err := image.Decode(r)
  if err != nil {
    log.Fatal(err)
  }
  img = dither.FloydSteinberg(img)
  // ...
}
Original Ordered Floyd-Steinberg
Original Ordered Floyd-Steinberg

Documentation

Overview

Package dither allows dithering an image.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FloydSteinberg

func FloydSteinberg(img image.Image) *image.Gray

FloydSteinberg dithering.

func Ordered

func Ordered(img image.Image) *image.Gray

Ordered dithers an image with a 2x2 matrix.

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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