1bardesign / love_palette_example

A very minimal example of paletised rendering in love

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🎨 love_palette_example

A basic example of paletised rendering in love, include palette swapping from pre-prepared palettes.

Lots, lots more is possible, but this should help you get off the ground if you're struggling. Enjoy!

Running

Just run the folder like any other love project. If love is on your path, then something like this inside the folder should work:

love .

If you're on windows, dragging and dropping this folder onto love should work.

You should see something like this:

Screenshot of the demo, showing a coloured image drawn with the palette shader, and a red image coloured strangely

Contributing

PRs welcome, but lets keep things straightforward.

License

Copyright (c) 2020 Max Cahill

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

A very minimal example of paletised rendering in love


Languages

Language:Lua 100.0%