The International Simutrans Forum

 

Author Topic: The same color continues in the orange gradient palette  (Read 640 times)

0 Members and 1 Guest are viewing this topic.

Offline Ranran

  • Devotee
  • *
  • Posts: 1723
  • 今日は兎汁よー
  • Languages: ja
The same color continues in the orange gradient palette
« on: August 14, 2021, 06:40:10 AM »
I previously reported that the orange gradient palette was broken, but now I just found the code.

(In extended, the player color GUI displays the gradation, so it is easy to notice abnormalities.)

https://github.com/aburch/simutrans/blob/df06a816a248f076f0940389eb1c0f93fba7d69c/display/simgraph16.cc#L621
Code: [Select]
215, 107, 0,
255, 128, 0,
255, 128, 0,
255, 149, 43,
I suspected the same color to be displayed as a result of the color reduction, but I can confirm that the exact same color is continuous. So I believe this is a bug.


The yellow/lime player color is also notorious for being almost unusable due to poor visibility.



IMO, yellow is readable in both white and black texts as long as the standard brightness is at this level, and it would be helpful if the color was changed to this level. (´・ω・`)
« Last Edit: August 14, 2021, 10:23:23 AM by Ranran »

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 11060
  • Languages: De,EN,JP
Re: The same color continues in the orange gradient palette
« Reply #1 on: August 14, 2021, 02:54:55 PM »
I see the double color but I am unsure of your yellow request. Please check r10009

Offline Ranran

  • Devotee
  • *
  • Posts: 1723
  • 今日は兎汁よー
  • Languages: ja
Re: The same color continues in the orange gradient palette
« Reply #2 on: August 18, 2021, 12:20:54 PM »
Thank you for fixing it. With the recent increase in color-based displays on toolchips and GUIs, more and more voices are concerned about visibility in specific player colors.
But this could be an issue that has been potentially present for a long time.
For example, yellow and lime may be indistinguishable in bright color gradations.

(I think it can insert a another green in between the darkest green and the second dark green.)
Sometimes people draw vehicles in player colors, but it has long been whispered that choosing such a color could result in a loss of three-dimensionality.

Also, from a GUI design perspective, the average brightness should ideally fit both black and white text color.


Also, if the gradation is small, it may not be possible to distinguish between on and off of the button.



If change the palette, we need to be aware of the changes where it specified the colors individually...
For example, the yellow ■ on the route bar has become a little darker.

I am wondering if it is possible to automatically create a gradation based on a color with a moderate illuminance. I might try that approach when I have time.

Offline Yona-TYT

  • Devotee
  • *
  • Posts: 1824
    • Simutrans-BLOG
  • Languages: ES
Re: The same color continues in the orange gradient palette
« Reply #3 on: August 18, 2021, 12:29:08 PM »
I am wondering if it is possible to automatically create a gradation based on a color with a moderate illuminance. I might try that approach when I have time.
This sounds very nice, if you would use a light color for dark themes.  :D