filter

package
v0.0.0-...-afb62a2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package filter contains image filter operations and metadata.

Index

Constants

This section is empty.

Variables

View Source
var List = make([]*Filter, 0)

List is an array of all Filters.

View Source
var Map = make(map[string]*Filter)

Map allows Filter lookup by name.

Functions

This section is empty.

Types

type ByBrightness

type ByBrightness []color.Color

ByBrightness implements sort.Interface for []color.Color based on value (brightness).

func (ByBrightness) Len

func (a ByBrightness) Len() int

func (ByBrightness) Less

func (a ByBrightness) Less(i, j int) bool

func (ByBrightness) Swap

func (a ByBrightness) Swap(i, j int)

type ByName

type ByName []*Filter

ByName implements sort.Interface for []*Filter based on name.

func (ByName) Len

func (a ByName) Len() int

func (ByName) Less

func (a ByName) Less(i, j int) bool

func (ByName) Swap

func (a ByName) Swap(i, j int)

type Filter

type Filter struct {
	Name, Help string
	Func       Func
}

A Filter is a Func and associated metadata.

type Func

type Func func(*image.RGBA, []string) (*image.RGBA, []string)

A Func takes an image and the current arg stack, and returns a modified image and arg stack.

Jump to

Keyboard shortcuts

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