faces

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitGlobal

func InitGlobal(dataFolder string) error

InitGlobal initializes the global generator.

Types

type FaceGenerator

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

FaceGenerator is a generator for faces.

var Global *FaceGenerator

Global is the global generator.

func New

func New(dataFolder string) (*FaceGenerator, error)

New creates a new FaceGenerator.

func (*FaceGenerator) Gen

func (gen *FaceGenerator) Gen(id int) string

Gen generates a face with the given id.

func (*FaceGenerator) GenRand

func (gen *FaceGenerator) GenRand() string

GenRand generates a random face.

Jump to

Keyboard shortcuts

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