It's a math issue. To avoid the steps being bigger than one pixel you'd
need to choose two colours that are more than the screen height values
appart in 3D colour space.

So in decimal RGB coordinates the colours are:
  #6D2169 = (109,33,105)
  #370026 = (55,0,38)

and according to Pythagoras they are separated by a vector (-54,-33,-67)
which has length 92.1629.

So there are only 92 unique colours there. On a 1080p screen this means
each colour band is about 11 pixels high.

To remedy the problem with 8 bit colour is really impossible because the
colour cube only has length 256. You could almost do it if everyone had
10-bit colour, but most people don't and in fact mutter chooses 8-bit
colour still. The only solution I guess is to not use full screen
gradients because 8-bit colour isn't wide enough to be stretched across
a screen that's taller than 256 pixels.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1789355

Title:
  Yaru login screen gradient contains visible steps

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/yaru-theme/+bug/1789355/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to