critic

package
v0.0.0-...-3bd5e39 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2014 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var X11 = []color.Color{}/* 263 elements not displayed */
View Source
var X11names = []string{}/* 263 elements not displayed */

Functions

func Asset

func Asset(name string) ([]byte, error)

Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetDir

func AssetDir(name string) ([]string, error)

AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:

data/
  foo.txt
  img/
    a.png
    b.png

then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.

func AssetNames

func AssetNames() []string

AssetNames returns the names of the assets.

func RGBToHex

func RGBToHex(r, g, b uint32) string

Types

type ByFrequency

type ByFrequency []ColorArtColor

func (ByFrequency) Len

func (a ByFrequency) Len() int

func (ByFrequency) Less

func (a ByFrequency) Less(i, j int) bool

func (ByFrequency) Swap

func (a ByFrequency) Swap(i, j int)

type ColorArtColor

type ColorArtColor struct {
	Name      string
	Color     color.Color
	Hex       string
	Frequency int
}

func Analyze

func Analyze(i image.Image, plt color.Palette) []ColorArtColor

func AnalyzeAndConvert

func AnalyzeAndConvert(i image.Image, plt color.Palette) ([]ColorArtColor, *image.RGBA)

Jump to

Keyboard shortcuts

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