1.2.5 ā€¢ Published 2 years ago

amongsprite v1.2.5

Weekly downloads
22
License
-
Repository
github
Last release
2 years ago

šŸš€ Install

Simply run:

npm install amongsprite

šŸ“Ÿ How to Use

Check the assets for the name of Backgrounds, hats, outfits and pets.

Syntax

ā€¢ resolution in pixels (looks nicer if < 600)
ā€¢ hexColor should be a 6-digit hex code (eg. #000000)
ā€¢ Other params should be valid names from assets OR an url to a custom image (use 600x600).
ā€¢ If you use are using a custom image:
ā†³ #123456 will be replaced with the main color
ā†³ #654321 will be replaced with the shadow.
Note: Alternatively, you may import const { Types } = AmongSprite for better content assistant.

const AmongSprite = require('amongsprite')

const canvas = await AmongSprite.create(resolution, hexColor, background, hat?, outfit?, pet?)

Example

Working example bellow should generate the same image above (Rick Sprite).

const AmongSprite = require('amongsprite');
const { Types } = AmongSprite;

const canvas = await AmongSprite.create(
	175, 
	'#D6C9BD', 
	Types.BG.PORTAL_SPACE, 
	Types.HATS.RICK, 
	Types.OUTFITS.RICK, 
	Types.PETS.UFO
);

const fs = require('fs');
fs.writeFileSync('./result.html', `<img src='${canvas.toDataURL()}'></img>`);

āš ļø Disclaimer

This is an unofficial Among Us Sprite generator. The fan art is provided by Among Us Avatar Maker whereas Innersloth owns all rights to Among Us.

1.2.5

2 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago