A fast and efficient library for rendering Minecraft skins into 2D and 3D isometric images. Inspired by existing services like Crafatar but with performance in mind. This library is used in production for mineatar.io.
https://pkg.go.dev/github.com/mineatar-io/skin-render
Method | Result |
---|---|
RenderFace() |
|
RenderHead() |
|
RenderBody() |
|
RenderFrontBody() |
|
RenderBackBody() |
|
RenderLeftBody() |
|
RenderRightBody() |
- Isometric graphics in Inkscape — Nicolás Guarín-Zapata
- go-gl/matgl
- LapisBlue/Lapitar
- go/x/image
transform_Image_Image_Over
function - go/x/image matrix
invert
function - And various other online matrix tutorials
A special thanks to oakar258
in the Minecraft Wiki Discord server for support on how Minecraft scales and renders the overlay skin layer.