graffiti

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: MIT Imports: 4 Imported by: 1

README

graffiti

graffiti draws random pictures and solid colored pictures as file, []byte or struct (image.Image) for tests.

support: jpeg, gif

see Examples: https://github.com/mububoki/graffiti/tree/main/examples

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomColor

func RandomColor() color.Color

RandomColor returns new random color

func RandomImage

func RandomImage(rectangle image.Rectangle) image.Image

RandomImage returns a new random Image.

func SolidImage

func SolidImage(rectangle image.Rectangle, c color.Color) image.Image

NewUniform returns a new Solid image of the given bounds and color.

Types

This section is empty.

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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