Indexed 16 colour palette simulation?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
pgimeno
Party member
Posts: 1369
Joined: Sun Oct 18, 2015 2:58 pm

Re: Indexed 16 colour palette simulation?

Post by pgimeno » Sat Jul 14, 2018 12:16 am

Yes, you certainly can do that :D

The point here is to be able to paint everything, especially images, in such a way that everything drawn uses a 16-colour palette. The rectangles demo was just to verify that the shader works as expected, as noted up-thread.
Thrust II Reloaded - GifLoad for Löve - GSpöt GUI - My NotABug.org repositories - portland (mobile orientation)
The MS-Github repositories I had have been closed after the acquisition announcement and will be removed in the near future.

Domarius
Prole
Posts: 11
Joined: Tue Jun 26, 2018 1:07 am

Re: Indexed 16 colour palette simulation?

Post by Domarius » Mon Jul 16, 2018 8:52 am

Ref wrote:
Fri Jul 13, 2018 10:37 pm
Hey pgimeno!
Late to the party but probably missing the point.
I think you might be. The point of this was not to change the colour of squares per se, but change colours of bitmaps at the pixel level, on the fly. If you download my example earlier in the thread, you'll see what I mean. It has to work on bitmaps, in real time.

User avatar
D0NM
Party member
Posts: 203
Joined: Mon Feb 08, 2016 10:35 am
Location: Zabuyaki
Contact:

Re: Indexed 16 colour palette simulation?

Post by D0NM » Fri Jul 20, 2018 6:28 am

Nice idea, pgimeno!
I'd add that the idea comes right from Lua table hashes.

I'll try to alter the idea to keep 99% of colours unchanged.
The palettes sets should be present at the same spritesheet.
Our LÖVE Gamedev blog Zabuyaki (an open source retro beat 'em up game). Follow @Zabuyaki.
Twitter @FaMeSoft / GP32 Free Platformer: SUPER PLUSHA
:joker: LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua :joker:

Domarius
Prole
Posts: 11
Joined: Tue Jun 26, 2018 1:07 am

Re: Indexed 16 colour palette simulation?

Post by Domarius » Fri Jul 20, 2018 9:47 pm

D0NM wrote:
Fri Jul 20, 2018 6:28 am
I'll try to alter the idea to keep 99% of colours unchanged.
The palettes sets should be present at the same spritesheet.
Yeah he did an awesome job. It's customised to my specific requirement of having a fixed palette. I understand that other people will want greater flexibility with the palette but it shouldn't be too hard to adjust it to suit. The basic concept is solid.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 5 guests