smab / playhouse-web

GNU Affero General Public License v3.0
0 stars 2 forks source link

[games] Colour configuration is completely broken #27

Closed FireyFly closed 10 years ago

FireyFly commented 10 years ago

I just realised... all colour configuration in games currently only affects the web interface, since the games don't currently do any RGB→HSL conversion or anything similar to that. This is a rather grave issue; proper conversion functions should be added to the game API (in lightgames), and all the games should make use of those instead of having hard-coded colours.

FireyFly commented 10 years ago

Some progress concerning this has been made; I implemented RGB→Hue (as in the component of HSL) conversion last sprint but the conversion doesn't seem to work completely correctly. Currently, only Connect4 uses this colour conversion function--I want it to yield good colours before I propagate the changes to the other games.