alone-rl icon indicating copy to clipboard operation
alone-rl copied to clipboard

Make a colour palette of some kind

Open fabio-t opened this issue 7 years ago • 2 comments

Having to work with RGB is quite annoying. I think a palette like libtcod's works much better.

A private-constructor class Col should do the job. In code, I should only use something like Col.red.lightest(), that finds the right colour in that cell. Colours would all be flyweights of course.

Then at rendering stage awt.Color is wrapped around the chosen colour.

fabio-t avatar Nov 12 '17 23:11 fabio-t

Also, it's very important to have a separated palette for terrain, creatures and items (eg, subpalettes defined in yml, so that I can check at startup if there's any overlap). It's quite easy to play with colours and end up with invisible creatures. And items can be confused with creatures, which is weird.

fabio-t avatar Nov 12 '17 23:11 fabio-t

http://rgb.to/color/10000/leafy-green

fabio-t avatar Nov 14 '17 21:11 fabio-t