ciede2000

package module
v0.0.0-...-782e8c6 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2017 License: MIT Imports: 2 Imported by: 4

README

go-ciede2000

Go implementation of the CIE Delta E 2000 Color-Difference algorithm (CIEDE2000).

This is a golang port of https://github.com/gfiumara/CIEDE2000

Usage

c1 := &color.RGBA{200, 255, 0, 255}
c2 := &color.RGBA{50, 60, 255, 255}
diff := Diff(c1, c2)

Installation

$ go get github.com/mattn/go-ciede2000

License

MIT

Author

Yasuhiro Matsumoto (a.k.a. mattn)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CIEDE2000

func CIEDE2000(lab1, lab2 *LAB) float64

func Diff

func Diff(c1, c2 color.Color) float64

func ToXYZ

func ToXYZ(c color.Color) (float64, float64, float64)

Types

type LAB

type LAB struct {
	L float64
	A float64
	B float64
}

func ToLAB

func ToLAB(c color.Color) *LAB

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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