Documentation ¶
Overview ¶
Package pixelate implements various functions for pixelating images.
Index ¶
- func AliasedPxl(img image.Image, size utils.Dimension, triangle Triangle, style Style) image.Image
- func Hxl(img image.Image, width int) image.Image
- func Pixelate(img image.Image, size utils.Dimension, style Style) image.Image
- func Pxl(img image.Image, size utils.Dimension, triangle Triangle, style Style) image.Image
- func Vxl(img image.Image, height int, flip bool, top, left, right float64) image.Image
- type Style
- type Triangle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AliasedPxl ¶
AliasedPxl does the same as Pxl, but does not smooth diagonal edges of the triangles. It is faster, but will produce bad results if size is non-square.
func Hxl ¶
Hxl pixelates the Image into equilateral triangles with the width given. These are arranged into hexagonal shapes.
func Pixelate ¶
Pixelate takes an Image and pixelates it into rectangles with the dimensions given. The colour values in each region are averaged to produce the resulting colours.
Types ¶
Click to show internal directories.
Click to hide internal directories.