Jump to content
  • 0

Are there any tools for finding which textures use which colors?


Krull

Question

1 answer to this question

Recommended Posts

  • 0

Technically, I think one could write a Lua script for that in SLADE. I still can't make head or tail of Lua scripting, though, so I'm not volunteering for the task. But looking at what's been exported, there are the functions for accessing entries, loading graphics and textures, and getting the palette index of individual pixels, so everything one who knows the language needs to write a script that will iterate over graphics, then iterate over their pixels, and keep count of how many pixels of each index are present in each.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...