Documentation ¶
Index ¶
- func BoolToString(b bool) string
- func Clamp[T constraints.Integer | constraints.Float](min, value, max T) T
- func CopyImage(img image.Image) error
- func ForPixel(width, height int, f func(x, y int))
- func LoadFile(filename string) ([]byte, error)
- func ResizeWithAspectRatio(img image.Image, targetWidth, targetHeight int) image.Image
- func Rotate2DFrame(frame *[144][160][3]uint8, angleX, angleY float64)
- func ShakeFrame(frame *[144][160][3]uint8, offset int)
- func Unzip(zipFile, destFolder string) error
- func ZeroAdjust8(v uint8) uint8
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolToString ¶
func Clamp ¶
func Clamp[T constraints.Integer | constraints.Float](min, value, max T) T
func ForPixel ¶
ForPixel iterates over every pixel coordinate in the range of width * height, calling f for each coordinate.
func ResizeWithAspectRatio ¶
ResizeWithAspectRatio resizes the input image to fit within the target width and height while maintaining aspect ratio, filling the empty space with black if needed.
func Rotate2DFrame ¶
Rotate2DFrame rotates a 2D framebuffer in 3D space with perspective correction.
func ShakeFrame ¶
ShakeFrame shakes the given frame in place, using the offset to apply an oscillation.
func ZeroAdjust8 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.