Documentation ¶
Index ¶
- Constants
- func DPrintf(format string, a ...interface{}) (n int, err error)
- func DecodeImage(data string) (image.Image, error)
- func EncodeImage(img image.Image) (string, error)
- func GetImageDimensions(img image.Image) (int, int)
- func GetRandomImage() image.Image
- func GetSubImage(img image.Image, rect image.Rectangle) image.Image
- func GrayImg(img image.Image) *image.Gray
- func ImgDiff(ai, bi, e image.Image) float64
- func RandomColor(rng *rand.Rand) color.RGBA
- func RandomColorFromPalette(rng *rand.Rand, palette []color.RGBA) color.RGBA
- func RandomRadius(rng *rand.Rand, radius float64) float64
- func RandomRotation(rng *rand.Rand) float64
- func RgbaImg(img image.Image) *image.RGBA
- func SquareDifference(x, y float64) float64
- type Image
- type Vector
Constants ¶
View Source
const Debug = 1
Debugging
Variables ¶
This section is empty.
Functions ¶
func DecodeImage ¶
DecodeImage decodes a base64 and returns an image
func EncodeImage ¶
EncodeImage encodes an image as png base64 string
func GetRandomImage ¶
func RandomColorFromPalette ¶
func RandomRotation ¶
func SquareDifference ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.