News for hackers. Stuff that matters.
Re:Guess My RGB by penteract on Sunday March 31, 2024 @12:31PM (#39885657)
I didn't have a formula, just a Javascript object with 4096 keys. You could try to use a formula, but the rounding would make it quite blurry, so an "exact" answer wouldn't necessarily be right.
Re:Guess My RGB by penteract on Sunday March 31, 2024 @01:52PM (#39886370)
Here's the code to generate the object and check that it works: https://gist.github.com/penteract/8957d7d18a60f021d8d74ef2f4...
Re:Guess My RGB by CobrastanJorji on Sunday March 31, 2024 @03:37PM (#39887339)
This is beautiful! Simple and effective.