Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
penteract
on March 31, 2024
|
parent
|
context
|
favorite
| on:
Guess my RGB
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.
penteract
on March 31, 2024
[–]
Here's the code to generate the object and check that it works:
https://gist.github.com/penteract/8957d7d18a60f021d8d74ef2f4...
CobrastanJorji
on March 31, 2024
|
parent
[–]
This is beautiful! Simple and effective.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: