ftsf / nico

a Game Framework in Nim inspired by Pico-8.
MIT License
624 stars 35 forks source link

Add loadPaletteFromHexString #79

Closed cxong closed 2 years ago

cxong commented 2 years ago

Not sure if you're interested in this procedure, it may be too specific

This procedure loads a palette from a hex string, as used by TIC-80 (see https://github.com/nesbox/TIC-80/wiki/palette and this online palette editing tool: https://aaronsnoswell.github.io/blog/tic-80-color-palette-tool)

It is very convenient because it does not require loading external files, you define your palette in a single string.

ftsf commented 2 years ago

Looks great!