drawer

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalRotation

func CalRotation(index int, startIndex int) int

func DrawBackground

func DrawBackground(imgSize int, image draw.Image)

Draw background white

func DrawGithubIdenticon

func DrawGithubIdenticon(identicon model.Identicon, outputDir string, imgSize int, padding int) draw.Image

func DrawIdenticon

func DrawIdenticon(identicon model.Identicon, outputDir string, imgSize int, padding int, muliColor bool) draw.Image

Draw full identicon with desired size and then save into outputDir

Image will use idenInfo as it name

ex: idenInfo is "stoicmeme" and use PNG format, then image will be drawed to outputDir/storicmeme.png

Types

This section is empty.

Jump to

Keyboard shortcuts

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