Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Filters = make(map[FilterType]Filter)
Functions ¶
func Register ¶
func Register(filterType FilterType, filter Filter)
Types ¶
type BlackAndWhiteFilter ¶
type BlackAndWhiteFilter struct{}
type Filter ¶
Filter is the interface that wraps the Apply method.
func Get ¶
func Get(filterType FilterType) Filter
type FilterType ¶
type FilterType int
FilterType defines the type of filter to apply to the image.
const ( NoFilter FilterType = iota // BlackAndWhite applies a black and white filter. BlackAndWhite Vignette Sepia )
type SepiaFilter ¶
type SepiaFilter struct{}
type VignetteFilter ¶
type VignetteFilter struct{}
Click to show internal directories.
Click to hide internal directories.