testimg

package module
v0.0.0-...-77c89ee Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandPalette

func RandPalette(rng *rand.Rand, sz int) color.Palette

func RandRGBA

func RandRGBA(rng *rand.Rand) color.RGBA

func RandRGBA64

func RandRGBA64(rng *rand.Rand) color.RGBA64

Types

type RandBlocks

type RandBlocks struct {
	W, H           int
	BlockW, BlockH int
}

func (RandBlocks) CMYK

func (r RandBlocks) CMYK(rng *rand.Rand) *image.CMYK

func (RandBlocks) NRGBA

func (r RandBlocks) NRGBA(rng *rand.Rand) *image.NRGBA

func (RandBlocks) NRGBA64

func (r RandBlocks) NRGBA64(rng *rand.Rand) *image.NRGBA64

func (RandBlocks) Paletted

func (r RandBlocks) Paletted(rng *rand.Rand, palette color.Palette) *image.Paletted

func (RandBlocks) RGBA

func (r RandBlocks) RGBA(rng *rand.Rand) *image.RGBA

func (RandBlocks) RGBA64

func (r RandBlocks) RGBA64(rng *rand.Rand) *image.RGBA64

func (RandBlocks) YCbCr

func (r RandBlocks) YCbCr(rng *rand.Rand) *image.YCbCr

type Recipe

type Recipe interface {
	RGBA(*rand.Rand) *image.RGBA
	RGBA64(*rand.Rand) *image.RGBA64
	NRGBA(*rand.Rand) *image.NRGBA
	NRGBA64(*rand.Rand) *image.NRGBA64
	Paletted(*rand.Rand, color.Palette) *image.Paletted
	YCbCr(*rand.Rand) *image.YCbCr
	CMYK(*rand.Rand) *image.CMYK
}

Jump to

Keyboard shortcuts

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