tee_morphosis
A library for parsing, splitting, and building Tee skins.
This crate provides tools for parsing a source Tee skin image into its constituent parts (body, feet, hands, eyes, etc.) and then composing them into a final character image with various expressions.
Features
net: Enables network requests (loading skins from URLs) usingTee::new_from_url.
Installation
Add this to your Cargo.toml:
[]
= "0.0.1"
To use network capabilities (loading skins from URLs), enable the net feature:
[]
= { = "0.0.1", = ["net"] }
How to Use
Example: Creating a skin from a local file
Here's a simple example of how to read a skin file, create a character with "happy" eyes, and save the result to a new file.
use fs;
use Bytes;
use ;
use ImageFormat;
Example: Loading and creating a skin from a URL (with net feature)
This example demonstrates how to fetch a skin from the internet and assemble it.
use ;
use fs;
use ImageFormat;
async
License
This project is licensed under the MIT License.