internal

package
v0.0.0-...-9dea6ec Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PxRGBAfunc

func PxRGBAfunc(img image.Image) func(x, y int) (r, g, b, a uint32)

PxRGBAfunc returns function to get RGBA color values at (x, y) coordinates of image img. Returned function works the same as img.At(x, y).RGBA() but implements special cases for certain image types to use type-specific methods bypassing color.Color interface which escapes to the heap.

func SortFunc

func SortFunc[S ~[]E, E any](x S, cmp func(a, b E) int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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