The International Simutrans Forum

Development => Bug Reports => Topic started by: Ranran(retired) on August 14, 2021, 06:40:10 AM

Title: The same color continues in the orange gradient palette
Post by: Ranran(retired) 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.
(https://i.imgur.com/KZQH9Bm.png)
(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

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.

(https://i.imgur.com/9fjFbLU.png)

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. (´・ω・`)
Title: Re: The same color continues in the orange gradient palette
Post by: prissi on August 14, 2021, 02:54:55 PM
I see the double color but I am unsure of your yellow request. Please check r10009
Title: Re: The same color continues in the orange gradient palette
Post by: Ranran(retired) 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.
(https://i.imgur.com/sJUd4yZ.png)
(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.
(https://i.imgur.com/8UGThHh.png)

Also, if the gradation is small, it may not be possible to distinguish between on and off of the button.
(https://i.imgur.com/MMvuEs8.png)


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.
Title: Re: The same color continues in the orange gradient palette
Post by: Yona-TYT on August 18, 2021, 12:29:08 PM
Quote from: Ranran on August 18, 2021, 12:20:54 PMI 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