utilities

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateGrid

func CreateGrid(width, height int) [][]color.Color

func GradientPoint added in v1.0.0

func GradientPoint(axisValue, shift, axisLength int) int

func Gray

func Gray(pixel color.Color, calculationType string) (gray uint8, alpha uint8)

func MaxMin added in v1.0.0

func MaxMin[T float64 | int | uint](value, max, min T) T

func PrepareResult

func PrepareResult(result [][]color.Color, format string) (io.Reader, error)

func PrepareSource

func PrepareSource(file io.Reader) ([][]color.Color, string, error)

func RGBA added in v1.0.0

func RGBA(pixel color.Color) (r, g, b, alpha uint8)

Types

This section is empty.

Jump to

Keyboard shortcuts

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