rankcard

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

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

Go to latest
Published: Apr 18, 2026 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(data Data) ([]byte, error)

Generate creates a rank card PNG image and returns the bytes.

Types

type Data

type Data struct {
	Username  string
	AvatarPNG []byte // raw PNG bytes (nil for default avatar)
	Level     int
	CurrentXP int
	NeededXP  int
	TotalXP   int
	Rank      int
}

Data holds all information needed to render a rank card.

Jump to

Keyboard shortcuts

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