utils

package
v0.0.0-...-8345045 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Random

func Random(min, max int) int

Random spits out a random int between min and max

Types

type Channel

type Channel int

Channel type for colour channels

const (
	// Red is the red channel
	Red Channel = iota
	// Green is the green channel
	Green
	// Blue is the blue channel
	Blue
	// Alpha is the alpha channel
	Alpha
)

func RandomChannel

func RandomChannel() Channel

RandomChannel picks a random colour channel (excludes ALPHA, since that's usually boring)

Jump to

Keyboard shortcuts

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