TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Guess my RGB

618 pointsby talonxabout 1 year ago

54 comments

mgabout 1 year ago
I wonder what the optimal strategy would be if you can&#x27;t see the color and only the answers when you click submit.<p>Hillclimbing is already somewhat efficient:<p><pre><code> For each slider: - Start at 0 - Move to the right until the score drops - Move one to the left </code></pre> That should result in something like 9 tries per slider on average, so 27 tries per color.<p>One signal that could be used to improve it: The difference in score between 0 to 1 gives you the approximate length you have to move to the right.<p>Due to rounding, you don&#x27;t get the exact length.<p>So My guess is that with an optimal strategy, on average you would need something like 4 tries per slider.<p>That comes down to and average of 12 tries per color.
评论 #39883694 未加载
评论 #39883880 未加载
评论 #39883729 未加载
评论 #39888130 未加载
评论 #39884380 未加载
评论 #39889733 未加载
评论 #39884266 未加载
评论 #39889615 未加载
评论 #39886288 未加载
评论 #39883440 未加载
cjk2about 1 year ago
This is my party trick. Describe a colour and I&#x27;ll give you the hex code.<p>As you can imagine I&#x27;m <i>really</i> popular at parties...
评论 #39883603 未加载
评论 #39886021 未加载
评论 #39883630 未加载
评论 #39883438 未加载
评论 #39883357 未加载
pavlovabout 1 year ago
After submitting, the background color of the box displaying the match percentage result shows you the color you guessed.<p>(This may be obvious depending on the color you’re guessing, but in my case the color was quite gray and it took me a few guesses to notice this essential visual aid.)
jsf01about 1 year ago
This is unintentionally a great ad for perceptual color spaces. I found it easier to ignore the color and just look at the percentage changes after a while when zeroing in on a guess. I wonder if that would be different in a game of Guess My OKLCH!
评论 #39886870 未加载
ldjbabout 1 year ago
It&#x27;s not linked to from the page, but here&#x27;s the GitHub repo for anyone interested:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;susam&#x2F;myrgb">https:&#x2F;&#x2F;github.com&#x2F;susam&#x2F;myrgb</a>
bbxabout 1 year ago
It&#x27;s funny. I just finished writing a lesson where I teach about different color formats. In it, I explained how difficult it was to choose a color with rgb values, because that&#x27;s not how humans think about color. This game is a great example of that.<p>HSL is much more intuitive. As soon as you have an idea of the hue scale, it&#x27;s very easy to define a color with saturation and lightness levels.
评论 #39885015 未加载
pteraspidomorphabout 1 year ago
I got the first one in a single guess and now I&#x27;m afraid it can only go downhill from here...
antonpuzabout 1 year ago
What&#x27;s the problem? just check the background color in inspect element and normalize to 16 levels :) haha<p>But really, good job! very nice game, fun and challenging
Timwiabout 1 year ago
Would love to try a “Guess my HSL” spinoff.
评论 #39883170 未加载
评论 #39883176 未加载
p4bl0about 1 year ago
Very cool idea! On my first two tries, I quickly got to 94% but then got absolutely stuck there. The 94% seemed like a local optimum (moving any slider one slot in either direction<p>Any way to explain that?<p>Also: it would be cool to have a way to forfeit and get the solution.
评论 #39883642 未加载
评论 #39883179 未加载
评论 #39883116 未加载
评论 #39883034 未加载
hivacruzabout 1 year ago
For a few recruitments, we asked the candidates to create a front app like this with React. It was quite nice as we could quickly see how they use the library, what they know etc.<p>Simple app but funny game.
penteractabout 1 year ago
I swear that #516 looks darker than #505 (although perhaps only against a background of #505 with #808 next to it). Something interesting is going on there with my perception of saturation.
jacknewsabout 1 year ago
There are a lot of similar games, eg <a href="https:&#x2F;&#x2F;trycolors.com&#x2F;games&#x2F;guess-color" rel="nofollow">https:&#x2F;&#x2F;trycolors.com&#x2F;games&#x2F;guess-color</a><p>I use them in my code club to teach about what is light, actually, how do we perceive color, how tv and computer screens &#x27;trick&#x27; your color perception by simply mixing RGB in the right proportions, etc.
skobesabout 1 year ago
&lt;bug report&gt;<p>I got the first one in 10 guesses, then I tapped New Game but the background didn&#x27;t change and my next guess said NaN%<p>(Android Chrome)
评论 #39884017 未加载
评论 #39883872 未加载
评论 #39883853 未加载
评论 #39883873 未加载
评论 #39883856 未加载
lukew3about 1 year ago
I made something similar a while ago. I opted for calculating a score based on the sum of distance between each of the channel values and gave users one guess. <a href="https:&#x2F;&#x2F;lukew3.github.io&#x2F;color-code-tutor&#x2F;" rel="nofollow">https:&#x2F;&#x2F;lukew3.github.io&#x2F;color-code-tutor&#x2F;</a>
elyoboabout 1 year ago
Fun game, a convenient wordle style social media sharing utility would spread the word. Not sure what would work.
评论 #39883846 未加载
keepamovinabout 1 year ago
Really so much fun!<p>This guy produces great things. He did that micro drawing language a while back, right?<p>Would also be cool to have a camera link where you can select the color to guess by pointing the camera at something.<p>I find this guy so inspiring. He codes and creates tools like I aspire to. Just beautiful stuff!
评论 #39906145 未加载
azeembaabout 1 year ago
Ha this reminds me of a game me and my friend made a few years ago: <a href="http:&#x2F;&#x2F;rbgnrgb.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;rbgnrgb.com&#x2F;</a><p>You play as RBG fighting monsters with different RGB values.
imacomputerabout 1 year ago
Nice! I would love to study how people hone in the correct color, and how close people get on the first try.<p>Do people binary search or scan a range?, how do they prioritize the color channels? etc
nurpleabout 1 year ago
Reminds me of a video[0] that describes Diffie-Hellman key exchange in terms of mixing color values (as globs of oil paint).<p>I guess in this game you&#x27;re guessing the mix of primary colors, so maybe it doesn&#x27;t hold the same property of difficulty in deriving the constituents?<p>[0] <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=YEBfamv-_do" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=YEBfamv-_do</a>
indigoabstractabout 1 year ago
It would be interesting to know what type of people would find this game amusing..<p>Since I&#x27;m one of them, perhaps programmers?
tayloriusabout 1 year ago
I seem to be able to get it in around 7-8 guesses usually - based on a fairly good initial guess (85% or so) and the heuristic that if the percentage went up by 1 in the previous axis increment &#x2F; decrement, that axis is now at the correct value. It&#x27;s a really entertaining game. Kudos to the author!
doctorhandshakeabout 1 year ago
Vaguely reminiscent of Specimen by Charlie Whitney and Erica Gorochow <a href="https:&#x2F;&#x2F;playspecimen.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;playspecimen.com&#x2F;</a> … a great game if you haven’t tried it, and unusually revealing about the limits of perception.
ssimonoabout 1 year ago
Reminds me of something similar I made a few years ago: <a href="https:&#x2F;&#x2F;github.com&#x2F;ssimono&#x2F;hexliterate">https:&#x2F;&#x2F;github.com&#x2F;ssimono&#x2F;hexliterate</a> It still works, that&#x27;s a multiplayer real-time game
bun_terminatorabout 1 year ago
Fun! Spill your scores. I can usually get within 85%, had one perfect out of 10. And one 70%
评论 #39883224 未加载
评论 #39882902 未加载
评论 #39882832 未加载
评论 #39886013 未加载
评论 #39883832 未加载
评论 #39882964 未加载
评论 #39893588 未加载
sidedishesabout 1 year ago
This is very nice! Someone I know made one of these too a while back with a similar UI - <a href="https:&#x2F;&#x2F;gkpotter.com&#x2F;projects&#x2F;rgb&#x2F;" rel="nofollow">https:&#x2F;&#x2F;gkpotter.com&#x2F;projects&#x2F;rgb&#x2F;</a>
hunter2_about 1 year ago
Reminds me of notching out microphone feedback on a 31-band graphic equalizer without a real-time analyzer revealing the frequency. There was ear training software to simulate this activity, for practicing the art.
yakkomajuriabout 1 year ago
As someone who knows very little about colors, it was quite fun to see how much green is a light shade of purple I got. Could probably get better at guessing base RGBs I want for thing X on a frontends I build by playing this.
mmahemoffabout 1 year ago
This is fun. I like the fact you can click anywhere, which is nice for a non-touch device. Probably would help to emphasise those slider ticks as they are almost invisible, it would it more inviting to click instead of drag.
pierrelfabout 1 year ago
Amazing! Just needs an expert mode with 0-255 and alpha channel
评论 #39882960 未加载
zafkaabout 1 year ago
Reminds me of this: <a href="http:&#x2F;&#x2F;yizzle.com&#x2F;whatthehex&#x2F;" rel="nofollow">http:&#x2F;&#x2F;yizzle.com&#x2F;whatthehex&#x2F;</a>
xzelabout 1 year ago
This is awesome! I would love a GeoGuessr style gameplay element and watch my design friends compete over a couple of beers!
DangerousPieabout 1 year ago
Fun! This takes me back to coding up websites in plain HTML in Notepad. Coming up with the right hex codes for colors was an essential skill!
teensydataabout 1 year ago
It&#x27;s funny that I made a website exactly like this a few months ago. It was supposed to be Wordle for colors
bltabout 1 year ago
Curious if anyone can see the difference between #DD2 and #DD3. It was impossible on my 2013 Retina Macbook.
评论 #39892808 未加载
leononameabout 1 year ago
Just joining in on the canon that this is incredibly fun, much more than I would&#x27;ve anticipated
somedude895about 1 year ago
I sometimes play this with people at work. Point at something in the office and guess the RGB.
salomon812about 1 year ago
For those that love this game (as I do) I recommend &quot;I Love Hue&quot; for mobile.
评论 #39886492 未加载
htkabout 1 year ago
I LOVE this. I&#x27;ll become RGBruceLee if I play this enough.
tamimioabout 1 year ago
Love it, first one took 15 steps, second one took only 4!
ramshankerabout 1 year ago
22) #5A7 (Splendid!)
chrisjjabout 1 year ago
Bug? #952 shows matching colour but scores only 94%.<p>Android Chrome.
评论 #39883356 未加载
评论 #39883135 未加载
评论 #39883220 未加载
CuriouslyCabout 1 year ago
Landed on a high blue, guessed #00CC00, was correct, closed the browser. Kind of interesting I suppose though maybe more granularity so that I can&#x27;t so easily guess?
kookamamieabout 1 year ago
Is the guessing done in linear or sRGB space?
mldbkabout 1 year ago
Randomly got from first attempt
junonabout 1 year ago
This is a lot of fun :)
ricardo81about 1 year ago
Only took me 18 guesses. Should&#x27;ve thought about ROYBGIV a bit before guessing.
评论 #39883144 未加载
评论 #39883168 未加载
yoyopaabout 1 year ago
isn&#x27;t this HEX? RGB is usually 0-255 or 0 to 1
评论 #39889694 未加载
chrismorganabout 1 year ago
#f09 <i>hurt</i>.
panchtatvamabout 1 year ago
Loved it !
mirlind_guri22about 1 year ago
hack pasword snapchat
评论 #39896494 未加载
mirlind_guri22about 1 year ago
snap hack paswordp
mirlind_guri22about 1 year ago
hack pasword
mansaripabout 1 year ago
my eyes!