mods

package
v3.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: Apache-2.0 Imports: 4 Imported by: 2

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

func Lighter

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

Lighter produces a lighter color by f percentage (0 to 1) difference

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