Documentation ¶
Index ¶
- func Divide(pixels []uint32, n int) [][]uint32
- func GlitchyMap(cores int, f PixelFunction, pixels []uint32)
- func Invert(v uint32) uint32
- func InvertEverything(v uint32) uint32
- func Map(cores int, f PixelFunction, pixels []uint32)
- func OnlyAlpha(v uint32) uint32
- func OnlyBlue(v uint32) uint32
- func OnlyGreen(v uint32) uint32
- func OnlyRed(v uint32) uint32
- func OrAlpha(v uint32) uint32
- func RemoveAlpha(v uint32) uint32
- func RemoveBlue(v uint32) uint32
- func RemoveGreen(v uint32) uint32
- func RemoveRed(v uint32) uint32
- func SetBlueBits(v uint32) uint32
- func SetGreenBits(v uint32) uint32
- func SetRedBits(v uint32) uint32
- type PixelFunction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GlitchyMap ¶
func GlitchyMap(cores int, f PixelFunction, pixels []uint32)
GlitchyMap can map a PixelFunction over every pixel (uint32 ARGB value). This function has data race issues and should not be used for anything but creating glitch effects on purpose.
func InvertEverything ¶
Invert the colors, including the alpha value
func Map ¶
func Map(cores int, f PixelFunction, pixels []uint32)
func RemoveAlpha ¶
Remove the alpha component, making the pixels transparent
Types ¶
type PixelFunction ¶
Perform an operation on a single ARGB pixel
func Combine ¶
func Combine(a, b PixelFunction) PixelFunction
Combine two functions to a single PixelFunction. The functions are applied in the same order as the arguments.
func Combine3 ¶
func Combine3(a, b, c PixelFunction) PixelFunction
Combine three functions to a single PixelFunction. The functions are applied in the same order as the arguments.
Click to show internal directories.
Click to hide internal directories.