Ludii Forum
Dynamic colors on stack count numbers - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Suggestions (https://ludii.games/forums/forumdisplay.php?fid=10)
+--- Forum: Ludii Features / Services (https://ludii.games/forums/forumdisplay.php?fid=11)
+--- Thread: Dynamic colors on stack count numbers (/showthread.php?tid=706)



Dynamic colors on stack count numbers - Michael - 09-05-2021

Is it possible to have black numbers on light pieces and white numbers on dark pieces, instead of always having a black number and a white outline? Some people are finding it hard to make out the numbers on dark pieces.

Also: The outline on the number 3 is a bit … er … off. I think there is something wrong with the svg or whatever.


RE: Dynamic colors on stack count numbers - MatthewStephenson - 09-06-2021

Hi Michael,

I've updated our code so that the colour of the text should be either white or black based on the inverse of the piece's colour.
(see attached picture for example)

Also what is the issue with the number 3 on your machine? It looks fine on mine.

Cheers,
Matthew


RE: Dynamic colors on stack count numbers - Michael - 09-06-2021

Thank you! Here is my 3.


RE: Dynamic colors on stack count numbers - MatthewStephenson - 09-06-2021

Sorry I'm not really sure... I'm unable to replicate the issue on my machine.

Cheers,
Matthew