utils

package
v0.0.0-...-ccf6f70 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2014 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Intensity

func Intensity(clr color.Color) float64

*

  • Returns the grayscale intensity of the color clr

func MinF

func MinF(a, b float64) float64

*

  • Computes the minimum of two float values

func MinI

func MinI(a, b int) int

*

  • Computes the minimum of two float values

func Round

func Round(x float64) int

*

  • Rounds the number X.Y
  • Returns X if Y < 0.5 and X+1 if Y >= 0.5

Types

This section is empty.

Jump to

Keyboard shortcuts

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