Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (776)
Games in Android Showcase (231)
games submitted by our members
Games in WIP (856)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Palette Swapper: quick palette swapping tool for sprites  (Read 1248 times)
0 Members and 1 Guest are viewing this topic.
Offline SkyAphid
« Posted 2018-07-26 12:00:10 »



Here's another tool I'd like to share. Today, my artist and I made this palette swapper that'll take sprites and replace their palettes on a pretty large scale. It can take in multiple palette configurations as well as multiple image files and output variations of them. I'm aware that you can do this in programs like Photoshop, but I think this will help a bit in making it a lot faster. It's also pretty user friendly as well and has multiple configurations.

It's mostly just a lightweight tool that can make palette swapping relatively fast and painless.

A basic color changing definition looks like this:
1  
2  
3  
4  
#4D5F64->#776242
#69837B->#A88960
#93AA9A->#C1B588
#3F474E->#4F382F


But you can also do it like this as well:
1  
2  
3  
4  
5  
6  
7  
8  
9  
#4D5F64
#69837B
#93AA9A
#3F474E
-
#776242
#A88960
#C1B588
#4F382F


Learn more about it and download it on the repository page if this seems like it'd be useful to you:
https://github.com/SkyAphid/PaletteSwapper



it just werks
Offline Riven
Administrator

« JGO Overlord »


Medals: 1357
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #1 - Posted 2018-07-30 07:13:39 »

You should have a look into converting RGB to HSL, then shifting the Hue, and converting it back to RGB again. You'd be able to make any color variantion instantly - you can even do it during rendering in a shader.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Offline SkyAphid
« Reply #2 - Posted 2018-08-03 20:12:26 »

You should have a look into converting RGB to HSL, then shifting the Hue, and converting it back to RGB again. You'd be able to make any color variantion instantly - you can even do it during rendering in a shader.

Thanks for the tip. I'll have to look into it sometime. The only thing I'd be worried about is that it seems like it'd be pretty finnicky to get working in realtime.

it just werks
Pages: [1]
  ignore  |  Print  
 
 

 
hadezbladez (269 views)
2018-11-16 13:46:03

hadezbladez (146 views)
2018-11-16 13:41:33

hadezbladez (279 views)
2018-11-16 13:35:35

hadezbladez (62 views)
2018-11-16 13:32:03

EgonOlsen (2109 views)
2018-06-10 19:43:48

EgonOlsen (2141 views)
2018-06-10 19:43:44

EgonOlsen (1353 views)
2018-06-10 19:43:20

DesertCoockie (1941 views)
2018-05-13 18:23:11

nelsongames (1593 views)
2018-04-24 18:15:36

nelsongames (2241 views)
2018-04-24 18:14:32
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!