# Functions
And chains together multiple Mods into a single Mod.
AndFilter combines multiple filters into one.
ApplyColor mixes a color into the rgba values of an image and returns that new rgba.
ApplyMask mixes the rgba values of two images, according to their alpha levels, and returns that as a new rgba.
Brighten brightens an image between -100 and 100.
ColorBalance takes in 3 numbers between -100 and 500 and applies it to the given image.
ConformToPalette( is not a modification, but acts like ConformToPalette( without allocating a new *image.RGBA.
Crop will return the given rectangle portion of transformed images.
CropToSize applies crop with an optional anchor.
Cut reduces (or increases, adding nothing) the dimensions of the input image, setting them to newWidth and newHeight.
CutFn can reduce or add blank space to an input image.
CutFromLeft acts like cut but removes from the left and top rather than the right and bottom.
CutRel acts like Cut, but takes in a multiplier on the existing dimensions of the image.
CutRound rounds the edges of the Modifiable with Bezier curves.
CutShape unsets pixels that are not in the provided shape.
Darker produces a darker color by f percentage (0 to 1) difference.
Fade reduces the alpha of an image.
FadeColor produces a color with more transparency by f percentage (0 to 1).
FillMask replaces alpha 0 pixels in an RGBA with corresponding pixels in a second RGBA.
GiftFilter converts any set of gift.Filters into a Filter.
GiftTransform converts any set of gift.Filters into a Mod.
InPlace converts a Mod to a Filter.
Lighter produces a lighter color by f percentage (0 to 1) difference.
Resize will transform images to match the input dimensions.
ResizeToFill will resize to fit and then crop using the given anchor.
ResizeToFit will resize while preserving aspect ratio.
Rotate returns a rotated rgba.
RotateBackground acts as RotateInterpolated, but allows for supplying a specific background color to the rotation.
RotateInterpolated acts as Rotate, but accepts an interpolation argument.
SafeAnd removes any nil mods before passing the resultant set to the And function.
Saturate saturates the input between -100 and 500 percent.
Scale returns a scaled rgba.
StripOuterAlpha from the image given a source image and a alpha level to denote stripping.
TrimColor will trim inputs so that any rows or columns where each pixel is less than or equal to the input color are removed.
Zoom zooms into a position on the input image.
# Variables
BoxResampling is a box resampling filter (average of surrounding pixels).
CubicResampling is a bicubic resampling filter (Catmull-Rom).
FlipX returns a new rgba which is flipped over the horizontal axis.
FlipY returns a new rgba which is flipped over the vertical axis.
LanczosResampling is a Lanczos resampling filter (3 lobes).
LinearResampling is a bilinear resampling filter.
NearestNeighborResampling is a nearest neighbor resampling filter.
Rotate180 performs a specialized rotation for 180 degrees.
Rotate270 performs a specialized rotation for 270 degrees.
Rotate90 performs a specialized rotation for 360 degrees.
Transpose flips horizontally and rotates 90 degrees counter clockwise.
Transverse flips vertically and rotates 90 degrees counter clockwise.
# Type aliases
A Filter modifies an input image in place.
A Mod takes an image and returns that image transformed in some way.
A Resampling is a strategy for image resizing.
A Transform is a longer name for writing Mod.