extruder

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: BSD-3-Clause Imports: 13 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNamedExtruder

func NewNamedExtruder(name string, args ...interface{}) (colours.Extruder, error)

func NewSimpleExtruder

func NewSimpleExtruder(args ...interface{}) (colours.Extruder, error)

func NewVibrantExtruder

func NewVibrantExtruder(args ...interface{}) (colours.Extruder, error)

func PrepareImage

func PrepareImage(im image.Image) (image.Image, error)

Types

type SimpleExtruder

type SimpleExtruder struct {
	colours.Extruder
}

func (*SimpleExtruder) Colours

func (ex *SimpleExtruder) Colours(im image.Image, limit int) ([]colours.Colour, error)

type VibrantExtruder

type VibrantExtruder struct {
	colours.Extruder
	// contains filtered or unexported fields
}

func (*VibrantExtruder) Colours

func (v *VibrantExtruder) Colours(im image.Image, limit int) ([]colours.Colour, error)

Jump to

Keyboard shortcuts

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