fftool

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CoreAlphaLinear

func CoreAlphaLinear(_, y int, _, h int) (uint8, uint8, uint8, uint8)

核函数:alpha线性渐变 offset:根据高度向下偏移 step:实际作用高度 maxAlpha:渐变时alpha最大值 return:rgba

func GenMask

func GenMask(coref CoreFunc, width int, height int, outfile string) error

func Inscribed added in v0.10.1

func Inscribed[T constraints.Integer](outW, outH, w, h T) (T, T)

内接

func Position added in v0.10.1

func Position[T constraints.Integer](outW, outH, w, h, xp, yp T) (T, T)

Types

type CoreFunc

type CoreFunc func(x, y int, w, h int) (r uint8, g uint8, b uint8, a uint8)

Jump to

Keyboard shortcuts

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