Skip to content

A code lab to explore custom color palettes in the Pyxel game engine

License

Notifications You must be signed in to change notification settings

ameuret/screenMeltDoom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screen Melt

A quick code lab to explore the use of custom palettes in the Pyxel game engine.

Demo

Upshot

Palette customization applies globally. Only the palette set last through pyxel.colors.from_list(self.palette) is active.

Per Canvas (Image) palettes are not supported. pyxel.image(0).colors.from_list(self.palette) is illegal.

According to Merwork@Discord, the pal call can be used to manipulate the palette multiple times inside a single frame. Just for swapping though...

Install

This project uses Poetry, so all you have to do is install Poetry and run poetry install in this project directory.

Run

In order to completely isolate your environment, you should run this project under Poetry's managed environment:

Either in a separate shell spawned by Poetry:

poetry shell
python main.py

Or directly through the run command: poetry run python main.py

About

A code lab to explore custom color palettes in the Pyxel game engine

Topics

Resources

License

Stars

Watchers

Forks

Languages