block

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateBlockSize

func CalculateBlockSize(scrWidth int, scrHeight int, nlX int, nlY int) (blkSizeX int, blkSizeY int)

func CalculateNumBlocks

func CalculateNumBlocks(scrWidth int, scrHeight int, blkSizeX int, blkSizeY int) (numBlkX int, numBlkY int)

func GetAverageBlockColor

func GetAverageBlockColor(img *image.RGBA, blkX int, blkY int, blkSizeX int, blkSizeY int, scrWidth int) color.Rgb

func GetBlocks

func GetBlocks(img *image.RGBA, blkSizeX int, blkSizeY int, numBlkX int, numBlkY int, scrWidth int) []color.Rgb

Types

This section is empty.

Jump to

Keyboard shortcuts

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