Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

34
Spritely can now recolor/skin sprites using gradient maps
Post Flair (click to view more posts with a particular flair)
Post Body

Hey, fellow GMS devs!

A few weeks ago I posted about Spritely, a tool that we made for batch operations on sprites (like autocropping and "bleed") before importing them into Gamemaker.

We've been experimenting with using gradient maps to make it easy to batch-create recolored assets, which ended with updating Spritely to accommodate that. This might be useful to others, so I wanted to share it here.

If you aren't familiar with gradient maps, the idea is this: you start with a grayscale image, and then map positions along the intensity scale to colors. A gradient is computed between each pair of mapped colors you defined, so that any intensity value in your image can be automatically mapped onto a color. (Photoshop, Clip Studio Paint, and presumably many other graphics applications provide gradient mapping tools.)

This way you can have one grayscale image and a collection of gradient maps, and then create new, colored images for each map. You can use this to batch-create new sprites for each map, or to make skins in applications like Spine.

Spritely has a new command spritely skin that takes a file describing your gradient maps, plus all your images, and creates recolored versions of all images. The original images don't even have to be grayscale to work -- Spritely will convert each pixel to grayscale before applying the gradient map.

The README has all the details.

Author
Account Strength
100%
Account Age
9 years
Verified Email
Yes
Verified Flair
No
Total Karma
1,408
Link Karma
837
Comment Karma
558
Profile updated: 1 day ago
Posts updated: 8 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
4 years ago