post

package
v0.0.0-...-405cb25 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package post implements image post-processing effects, like bloom.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddConvolution

func AddConvolution(dst, src, kern imagef.Image, amplitude, offset float64) imagef.Image

func Airy

func Airy(pixels int, width float64) imagef.Image

func ApplyAiryBloom

func ApplyAiryBloom(img imagef.Image, pixelSize, radius, amplitude, threshold float64) imagef.Image

func ApplyGaussianBloom

func ApplyGaussianBloom(img imagef.Image, pixelSize, radius, amplitude, threshold float64) imagef.Image

func ApplyStarBloom

func ApplyStarBloom(img imagef.Image, pixelSize, radius, amplitude, threshold float64) imagef.Image

func Gaussian

func Gaussian(pixels int, width float64) imagef.Image

Types

type BloomParams

type BloomParams struct {
	Radius    float64
	Amplitude float64
	Threshold float64
}

type Params

type Params struct {
	Gaussian BloomParams
	Airy     BloomParams
	Star     BloomParams
}

func (*Params) ApplyTo

func (p *Params) ApplyTo(img imagef.Image, pixelSize float64) imagef.Image

Jump to

Keyboard shortcuts

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