util

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2014 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoesColorMatch

func DoesColorMatch(p1 color.Color, p2 color.Color, delta int) bool

func DoesPixelMatch

func DoesPixelMatch(pixel color.Color, x, y int, ref image.Image, delta int) bool

func GetMatch

func GetMatch(refName string, input image.Image) float32

*

  • GetMatch returns the percentage (0.0 .. 1.0) of how much the passed image
  • equals to the one referenced via file name.

func GetProjectRootPath added in v0.0.4

func GetProjectRootPath() string

func IsWebGlSupported

func IsWebGlSupported() bool

func ReadSlice

func ReadSlice(data []byte) io.Reader

func SaveImage

func SaveImage(name string, img image.Image)

Types

This section is empty.

Jump to

Keyboard shortcuts

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