Versions in this module Expand all Collapse all v0 v0.4.3 May 29, 2022 Changes in this version + func JpegToImage(filename string) (draw.Image, error) + func SaveAsPng(filename string, img image.Image) error type ColorShift + func (c *ColorShift) Next() type Effect + Next func() type PixelPop + func (p *PixelPop) Next() type PixelSort + func (p *PixelSort) Next() type Shift + func (s *Shift) Next() v0.4.2 Apr 15, 2022 v0.4.1 Apr 15, 2022 v0.4.0 Apr 15, 2022 Changes in this version + type ByLum []color.Color + func (l ByLum) Len() int + func (l ByLum) Less(i, j int) bool + func (l ByLum) Swap(i, j int) + type ColorShift struct + MaxHeight int + MaxShift int + N int + Rect image.Rectangle + func NewColorShift(r image.Rectangle, maxHeight, maxShift, n int) *ColorShift + func (c *ColorShift) Apply(img draw.Image) + func (c *ColorShift) ApplyNext(img draw.Image) + func (c *ColorShift) Name() string + func (c *ColorShift) Randomize() + type PixelPop struct + MaxSize int + MinSize int + N int + Rect image.Rectangle + func NewPixelPop(r image.Rectangle, minSize, maxSize, n int) *PixelPop + func (p *PixelPop) Apply(img draw.Image) + func (p *PixelPop) ApplyNext(img draw.Image) + func (p *PixelPop) Randomize() + type PixelSort struct + MaxLen int + N int + Orientation string + Rect image.Rectangle + func NewPixelSort(r image.Rectangle, maxLen, n int, orientation string) *PixelSort + func (p *PixelSort) Apply(img draw.Image) + func (p *PixelSort) ApplyNext(img draw.Image) + func (p *PixelSort) Randomize() + type Shift struct + MaxHeight int + MaxShift int + N int + Rect image.Rectangle + func NewShift(r image.Rectangle, maxHeight, maxShift, n int) *Shift + func (s *Shift) Apply(img draw.Image) + func (s *Shift) ApplyNext(img draw.Image) + func (s *Shift) Randomize() v0.3.0 Apr 10, 2022 Changes in this version + type Effect interface + Apply func(draw.Image) + ApplyNext func(draw.Image) + Name func() string + Randomize func() v0.0.1 Apr 9, 2022