helper

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Color

func Color(c [3]int) color.Color

func Hex

func Hex(c [3]int) string

func ReadImage

func ReadImage(uri string) (image.Image, error)

func SubsamplingPixels

func SubsamplingPixels(src []uint8, width, height int) [][3]int

SubsamplingPixels 2.2.1 Implement 2:1 subsampling in the horizontal and vertical directions, so that only 1/4-th of the input image pixels are taken into account

func SubsamplingPixelsFromImage

func SubsamplingPixelsFromImage(src image.Image) [][3]int

SubsamplingPixelsFromImage 2.2.1 Implement 2:1 subsampling in the horizontal and vertical directions, so that only 1/4-th of the input image pixels are taken into account

Types

This section is empty.

Jump to

Keyboard shortcuts

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