util

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package util provides various helper functions for the package bild.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GrayImageEqual

func GrayImageEqual(a, b *image.Gray) bool

GrayImageEqual returns true if the parameter images a and b match or false if otherwise.

func RGBAImageEqual

func RGBAImageEqual(a, b *image.RGBA) bool

RGBAImageEqual returns true if the parameter images a and b match or false if otherwise.

func RGBASlicesEqual

func RGBASlicesEqual(a, b []color.RGBA) bool

RGBASlicesEqual returns true if the parameter RGBA color slices a and b match or false if otherwise.

func RGBAToString

func RGBAToString(img *image.RGBA) string

RGBAToString returns a string representation of the Hex values contained in an image.RGBA.

func Rank

func Rank(c color.RGBA) float64

Rank a color based on a color perception heuristic.

func SortRGBA

func SortRGBA(data []color.RGBA, min, max int)

SortRGBA sorts a slice of RGBA values. Parameter min and max correspond to the start and end slice indicies that determine the range to be sorted.

Types

This section is empty.

Jump to

Keyboard shortcuts

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