mods

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Darker

func Darker(c color.Color, f float64) color.Color

Darker produces a darker color by f percentage (0 to 1) difference

func Fade

func Fade(c color.Color, f float64) color.Color

Fade produces a color with more transparency by f percentage (0 to 1)

func Highlight

func Highlight(c color.Color, thickness int) mod.Mod

func HighlightOff

func HighlightOff(c color.Color, thickness, xOff, yOff int) mod.Mod

func InnerHighlight

func InnerHighlight(c color.Color, thickness int) mod.Mod

func InnerHighlightOff

func InnerHighlightOff(c color.Color, thickness, xOff, yOff int) mod.Mod

func Inset

func Inset(fn Filter, dir intgeom.Dir2) mod.Mod

Types

type Filter

type Filter func(color.Color) color.Color

Jump to

Keyboard shortcuts

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