greyscale

package
v0.0.0-...-6905684 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: MIT Imports: 2 Imported by: 2

Documentation

Overview

Package greyscale implements various functions to convert an image to greyscale.

Index

Constants

This section is empty.

Variables

View Source
var Average = utils.Map(AverageC)

Average creates a greyscale version of the Image using the average method; it simply averages the RGB values.

View Source
var Blue = utils.Map(BlueC)

Blue creates a greyscale version of the Image using the values of the blue channel.

View Source
var Green = utils.Map(GreenC)

Green creates a greyscale version of the Image using the values of the green channel.

View Source
var Greyscale = utils.Map(GreyscaleC)

Greyscale creates a greyscale version of the Image by using a mixture of the colour channels. It accounts for human sensitivity to green above other colours by weighting the amount mixed in.

View Source
var Lightness = utils.Map(LightnessC)

Lightness creates a grayscale version of the Image using the lightness method. That is, it averages the most prominent and least prominent colours.

View Source
var Luminosity = utils.Map(LuminosityC)

Luminosity creates a greyscale version of the Image using a different weighting from the Default method.

View Source
var Maximal = utils.Map(MaximalC)

Maximal creates a greyscale version of the Image by taking the maximum of the RGB channels and using that value for each channel. Produces a lighter image.

View Source
var Minimal = utils.Map(MinimalC)

Minimal creates a greyscale version of the Image by taking the minimum value of the RGB channels and using that for each channel. Produces a darker image.

View Source
var Red = utils.Map(RedC)

Red creates a greyscale version of the Image using the values of the red channel.

Functions

func AverageC

func AverageC() utils.Composable

func BlueC

func BlueC() utils.Composable

func GreenC

func GreenC() utils.Composable

func GreyscaleC

func GreyscaleC() utils.Composable

func LightnessC

func LightnessC() utils.Composable

func LuminosityC

func LuminosityC() utils.Composable

func MaximalC

func MaximalC() utils.Composable

func MinimalC

func MinimalC() utils.Composable

func RedC

func RedC() utils.Composable

Types

This section is empty.

Jump to

Keyboard shortcuts

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