4 ms·
In the comments, Jim Hall mentions having made a BASH script to get the ratio - but doesn't post it. So I crapped out a Python script (https://gist.github.com/a
by bloodbeard 10y ago
In the comments, Jim Hall mentions having made a BASH script to get the ratio - but doesn't post it. So I crapped out a Python script (https://gist.github.com/anonymous/51a19ccb44e554affbdca69310bb77d3 https://gist.github.com/anonymous/51a19ccb44e554affbdca69310...).
It makes me happy to see that my favorite color combo of black and plasma orange (0xFF8000)* is well above acceptable. As is green on black.
* Among the first computers I ever used were terminals with plasma orange on black background - I've always loved it.
I mean the comments in the blog, not the HN comments.
- legostormtroopr 10y agoThis is really cool, I've done something really similar - except it grabs the colors from the HTML itself, so you can use it to check against a HTML file for any issues: https://news.ycombinator.com/item?id=13683096 https://news.ycombinator.com/item?id=13683096