Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by efskap

1 day ago

Yeah I dug up the relevant function because I was curious how one would solve this.

    return (r * 1000 + g * 100 + b * 10 + a * 255) / 10000;

https://github.com/Stanko/monorail/blob/2da287a4e822705a99d7...

0 comments

efskap

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities