gen

package
v0.0.0-...-6ef0d43 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountPossibleMappings

func CountPossibleMappings(traits map[string]Trait) (int, error)

func RandomTraitMapping

func RandomTraitMapping(traits map[string]Trait) (map[string]Variant, error)

func Render

func Render(traitMapping map[string]Variant, base image.Image, outputPath string) error

Types

type Trait

type Trait map[string]Variant

type Variant

type Variant struct {
	Name string `yaml:"name"`
	Img  string `yaml:"img"`
	X    int    `yaml:"x"`
	Y    int    `yaml:"y"`
}

Jump to

Keyboard shortcuts

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