processing

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DEG float64 = math.Pi / 180

Variables

View Source
var COLORS = [8]Color{
	{255, 0, 0},
	{0, 255, 0},
	{0, 0, 255},
	{255, 255, 0},
	{255, 0, 255},
	{0, 255, 255},
	{255, 255, 255},
	{0, 0, 0},
}

Functions

func Binary

func Binary(source [][]color.Color, threshold uint) [][]color.Color

func BoxBlur added in v1.0.0

func BoxBlur(source [][]color.Color, amount uint) [][]color.Color

func Brightness added in v1.0.0

func Brightness(source [][]color.Color, amount int) [][]color.Color

func ColorInversion

func ColorInversion(source [][]color.Color) [][]color.Color

func Contrast added in v1.0.0

func Contrast(source [][]color.Color, amount int) [][]color.Color

func EightColors added in v1.0.0

func EightColors(source [][]color.Color) [][]color.Color

func EmbossFilter added in v1.0.0

func EmbossFilter(source [][]color.Color) [][]color.Color

func FlipHorizontal added in v1.0.0

func FlipHorizontal(source [][]color.Color) [][]color.Color

func FlipVertical added in v1.0.0

func FlipVertical(source [][]color.Color) [][]color.Color

func GammaCorrection added in v1.0.0

func GammaCorrection(source [][]color.Color, amount float64) [][]color.Color

func Grayscale

func Grayscale(source [][]color.Color, grayscaleType string) [][]color.Color

func HueRotate added in v1.0.1

func HueRotate(source [][]color.Color, angle int) [][]color.Color

func ImageRotation added in v1.0.0

func ImageRotation(source [][]color.Color, angle uint) [][]color.Color

func KuwaharaFilter added in v1.0.2

func KuwaharaFilter(source [][]color.Color, aperture uint) [][]color.Color

func LaplasianFilter added in v1.0.0

func LaplasianFilter(source [][]color.Color) [][]color.Color

func Sepia added in v1.0.0

func Sepia(source [][]color.Color) [][]color.Color

func Sharpen added in v1.0.2

func Sharpen(source [][]color.Color, mix float64) [][]color.Color

func SobelFilter added in v1.0.0

func SobelFilter(source [][]color.Color) [][]color.Color

func Solarize added in v1.0.0

func Solarize(source [][]color.Color, threshold uint) [][]color.Color

Types

type Color added in v1.0.0

type Color struct {
	R, G, B int
}

Jump to

Keyboard shortcuts

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