Skip to content
Discussion options

You must be logged in to vote

It's hard to make a smooth gradient between these two very close shades of gray as the total number of gray shades we have is 256 shades if you go from #000 to #FFF when colors are represented in 24-bit true color bitmap format which is the most common in image formats. In the example you have, we only have 18 possible shades of gray to use in the gradient between the colors #000 and #111 (think of it as the hexadecimal numbers between 0x00 and 0x11 (17 in decimal) and this number is very small compared to the height of the screen making the gradient look that way.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by pwltr
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants