monsterid

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: MIT Imports: 11 Imported by: 0

README

monsterid

Gravatar monsterid ported to Go.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(hash []byte, opts ...Options) image.Image

New creates a monsterid image based on the provided hash.

Types

type MonsterID

type MonsterID struct {
	// contains filtered or unexported fields
}

type Options

type Options struct {
	Artistic   bool       // use artistic rendering with colors
	Greyscale  bool       // use greyscale for artistic rendering
	Background color.RGBA // background color (transparent if Alpha=0)
}

Options represents configuration for monster generation

func DefaultOptions

func DefaultOptions() Options

DefaultOptions provides common defaults

Jump to

Keyboard shortcuts

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