Documentation ¶
Overview ¶
Package pixels provides methods for altering images at a per-pixel level.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PixelFunc ¶
PixelFunc defines a function that will return a new colour for a given pixel colour at an x, y coordinate.
func MakeMultiPixelFunc ¶
MakeMultiPixelFunc will return a new `PixelFunc` instance that will invoke apply the functions defined in 'funcs'.
func MakeReplacePixelFunc ¶
func MakeReplacePixelFunc(matches ...ReplacePixelKey) (PixelFunc, error)
MakeReplacePixelFunc returns a new `PixelFunc` instance that will match and replace colours defined by 'matches'.
type ReplacePixelKey ¶
type ReplacePixelKey struct { // Zero or more `color.Color` instances whose pixel values will be replaced. Candidates []color.Color // Replacement is a `color.Color` instance that will be used to replace specific pixels. Replacement color.Color }
ReplacePixelKey is a struct that defines candidate pixel colours to replace with another colour
Click to show internal directories.
Click to hide internal directories.