minime

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 3 Imported by: 0

README

Mini Me

Inspired by the old minecraft skin generator website, you can generate little mini-mes from a Minecraft skin. This program supports both 64x64 and 128x128 skins, but nothing else.

Usage

Standalone program

You can run the example program by running go run cmd/main.go and providing an input and output file. For example:

go run cmd/main.go steve.png steve-mini.png

Using in a project

First run go get github.com/twistedasylummc/minime to install the dependency. You can then use one of the following methods to generate a mini-me:

  • minime.Skin64(src image.Image) (dst image.Image)
  • minime.Skin128(src image.Image) (dst image.Image)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Skin128

func Skin128(src image.Image, slim bool) image.Image

Skin128 returns an avatar generated from a skin that is 128x128 pixels. The skin must also be in the Minecraft format otherwise the generated result may not look correct. If the skin is slim (using the Alex model), slim should be set to true for the best results.

func Skin64

func Skin64(src image.Image) image.Image

Skin64 returns an avatar generated from a skin that is 64x64 pixels. The skin must also be in the Minecraft format otherwise the generated result may not look correct.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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