TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Guess my RGB

618 点作者 talonx大约 1 年前

54 条评论

mg大约 1 年前
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 未加载
cjk2大约 1 年前
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 未加载
pavlov大约 1 年前
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.)
jsf01大约 1 年前
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 未加载
ldjb大约 1 年前
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>
bbx大约 1 年前
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 未加载
pteraspidomorph大约 1 年前
I got the first one in a single guess and now I&#x27;m afraid it can only go downhill from here...
antonpuz大约 1 年前
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
Timwi大约 1 年前
Would love to try a “Guess my HSL” spinoff.
评论 #39883170 未加载
评论 #39883176 未加载
p4bl0大约 1 年前
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 未加载
hivacruz大约 1 年前
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.
penteract大约 1 年前
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.
jacknews大约 1 年前
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.
skobes大约 1 年前
&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 未加载
lukew3大约 1 年前
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>
elyobo大约 1 年前
Fun game, a convenient wordle style social media sharing utility would spread the word. Not sure what would work.
评论 #39883846 未加载
keepamovin大约 1 年前
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 未加载
azeemba大约 1 年前
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.
imacomputer大约 1 年前
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
nurple大约 1 年前
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>
indigoabstract大约 1 年前
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?
taylorius大约 1 年前
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!
doctorhandshake大约 1 年前
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.
ssimono大约 1 年前
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_terminator大约 1 年前
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 未加载
sidedishes大约 1 年前
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_大约 1 年前
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.
yakkomajuri大约 1 年前
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.
mmahemoff大约 1 年前
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.
pierrelf大约 1 年前
Amazing! Just needs an expert mode with 0-255 and alpha channel
评论 #39882960 未加载
zafka大约 1 年前
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>
xzel大约 1 年前
This is awesome! I would love a GeoGuessr style gameplay element and watch my design friends compete over a couple of beers!
DangerousPie大约 1 年前
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!
teensydata大约 1 年前
It&#x27;s funny that I made a website exactly like this a few months ago. It was supposed to be Wordle for colors
blt大约 1 年前
Curious if anyone can see the difference between #DD2 and #DD3. It was impossible on my 2013 Retina Macbook.
评论 #39892808 未加载
leononame大约 1 年前
Just joining in on the canon that this is incredibly fun, much more than I would&#x27;ve anticipated
somedude895大约 1 年前
I sometimes play this with people at work. Point at something in the office and guess the RGB.
salomon812大约 1 年前
For those that love this game (as I do) I recommend &quot;I Love Hue&quot; for mobile.
评论 #39886492 未加载
htk大约 1 年前
I LOVE this. I&#x27;ll become RGBruceLee if I play this enough.
tamimio大约 1 年前
Love it, first one took 15 steps, second one took only 4!
ramshanker大约 1 年前
22) #5A7 (Splendid!)
chrisjj大约 1 年前
Bug? #952 shows matching colour but scores only 94%.<p>Android Chrome.
评论 #39883356 未加载
评论 #39883135 未加载
评论 #39883220 未加载
CuriouslyC大约 1 年前
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?
kookamamie大约 1 年前
Is the guessing done in linear or sRGB space?
mldbk大约 1 年前
Randomly got from first attempt
junon大约 1 年前
This is a lot of fun :)
ricardo81大约 1 年前
Only took me 18 guesses. Should&#x27;ve thought about ROYBGIV a bit before guessing.
评论 #39883144 未加载
评论 #39883168 未加载
yoyopa大约 1 年前
isn&#x27;t this HEX? RGB is usually 0-255 or 0 to 1
评论 #39889694 未加载
chrismorgan大约 1 年前
#f09 <i>hurt</i>.
panchtatvam大约 1 年前
Loved it !
mirlind_guri22大约 1 年前
hack pasword snapchat
评论 #39896494 未加载
mirlind_guri22大约 1 年前
snap hack paswordp
mirlind_guri22大约 1 年前
hack pasword
mansarip大约 1 年前
my eyes!