Documentation
¶
Overview ¶
Package imdiff renders a per-pixel highlight overlay PNG comparing a baseline image to a current image. Results are cached in-process by (sha256(baseline), sha256(current)).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Differ ¶
type Differ struct {
// HighlightColor is the color drawn over pixels that differ between
// baseline and current.
HighlightColor color.RGBA
// FadeAlpha is how much of the current image to keep visible under
// the highlights (0-255, where 255 = fully opaque, 64 = mostly faded).
FadeAlpha uint8
// contains filtered or unexported fields
}
Differ produces highlight-overlay PNGs.
func New ¶
func New() *Differ
New returns a Differ with sensible defaults: red highlights on a faded current image.
Click to show internal directories.
Click to hide internal directories.