mosaic

package module
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColorMode added in v0.0.5

type ColorMode int
const (
	WINDOW_SIZE  = 25
	JPEG_QUALITY = 100

	ColorModeRandom ColorMode = iota
	ColorModeCopy
	ColorModeMean
	ColorModeMeanTile
)

type Mosaic added in v0.0.2

type Mosaic struct {
	// contains filtered or unexported fields
}

func NewMosaic added in v0.0.2

func NewMosaic(srcFile string, size int) (*Mosaic, error)

func (*Mosaic) Color added in v0.0.2

func (mo *Mosaic) Color(p *pal.Palette, mode ColorMode) error

func (*Mosaic) Save added in v0.0.4

func (mo *Mosaic) Save(dstFile string, quality int) error

type WindowBox

type WindowBox struct {
	Min    image.Point
	Max    image.Point
	Window [][]color.Color
	// contains filtered or unexported fields
}

func (*WindowBox) CalcMean

func (wb *WindowBox) CalcMean()

func (*WindowBox) CalcMean2

func (wb *WindowBox) CalcMean2()

func (*WindowBox) Mean

func (wb *WindowBox) Mean() color.Color

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL