News for hackers. Stuff that matters.
Re:Clone-a-Lisa by mattround on Saturday August 19, 2023 @04:48PM (#37193028)
I made this game; in case anyone's wondering how the scoring works: It draws your version over the original with 'difference' compositing, then downscales the result (using 'medium' quality to avoid most pixels getting skipped) and adds up the R, G & B values for every pixel in that small image. This total is then compared with the total difference for the initial state (which represents 0%).

Darker areas have the biggest initial difference, and the whole pic is darker than the initial canvas, so get a lot of paint down and pay most attention to the dark bits, you'll soon get over 70%. 85% is v good, and I think 90% is probably possible with enough skill and speed.

Re:Clone-a-Lisa by ajdoingnothing on Saturday August 19, 2023 @05:40PM (#37193536)
You're a very creative & talented person!
Re:Clone-a-Lisa by mattround on Saturday August 19, 2023 @04:58PM (#37193123)
(So yes, you can rack up points from simple blocks of colour up to a point, but need to get the shapes right to go higher)
Re:Clone-a-Lisa by lbourdages on Saturday August 19, 2023 @05:21PM (#37193342)
My child-level attempt got 63.1%, so there are definitely diminishing returns.

Side note, I did not notice the button to show the reference until I was almost finished. I would most likely have done better if I had known :)

Re:Clone-a-Lisa by calderknight on Saturday August 19, 2023 @06:34PM (#37194027)
I wouldn't be too sure. My first attempt got ~67% without using the reference. My second attempt got 60% with the reference.
Re:Clone-a-Lisa by KRAKRISMOTT on Saturday August 19, 2023 @06:12PM (#37193837)
You might like the non-maximum suppression algorithm from computer vision
Re:Clone-a-Lisa by thatwasunusual on Saturday August 19, 2023 @06:31PM (#37194002)
> I made this game

You moth..f.... piec. of sh..! Now I can't sleep!

EDIT: After having played it a few times, I think you should expand on the idea, because it seems to be a great tool for training visual memory.

Re:Clone-a-Lisa by throwaway45467 on Saturday August 19, 2023 @06:34PM (#37194025)
Fun! What did you implement it with?
Re:Clone-a-Lisa by mattround on Saturday August 19, 2023 @06:41PM (#37194074)
It's just simple HTML/CSS/JS and canvas manipulation; scoring is done using 'difference' compositing & checking pixel RGB values, and brushes are built up from bog-standard canvas strokes.
Re:Clone-a-Lisa by starshadowx2 on Saturday August 19, 2023 @07:00PM (#37194200)
Just filling in the canvas with black gets you to 75%, then you can add some green and yellow to get to 76% but after that it seems you need to be more precise to get higher.
Re:Clone-a-Lisa by yybgm on Saturday August 19, 2023 @07:24PM (#37194365)
That's what i did
Re:Clone-a-Lisa by oxfordmale on Saturday August 19, 2023 @07:10PM (#37194278)
My high score:

Needless to stay I best stick to software engineering:

https://i.imgur.com/b7wbUNI.jpg

Re:Clone-a-Lisa by pattle on Saturday August 19, 2023 @07:13PM (#37194297)
That's actually really impressive
Re:Clone-a-Lisa by lurquer on Saturday August 19, 2023 @09:08PM (#37195007)
It’s like some demented Winnie the Pooh
Re:Clone-a-Lisa by samstave on Saturday August 19, 2023 @09:43PM (#37195205)
We call his great leader of the D-round Investment Xi Reddit Ping in these parts.
Re:Clone-a-Lisa by mattround on Sunday August 20, 2023 @04:10AM (#37197146)
There's a very bad canvas bug in Android Chrome on some devices that's making the original show through - you're supposed to be painting on white (been looking for a workaround & it's fixed in Chrome Canary)
Re:Clone-a-Lisa by flir on Saturday August 19, 2023 @07:13PM (#37194295)
I like it, but can I get a diff between my drawing and the real thing at the end please?
Re:Clone-a-Lisa by qingcharles on Saturday August 19, 2023 @08:59PM (#37194958)
It was so frustrating at the end not to be able to see the difference. You should be able to click to toggle between your "art" and the original.
Re:Clone-a-Lisa by samstave on Saturday August 19, 2023 @09:44PM (#37195211)
It should do a fade blend btwn the two. (and allow me to upload images for either personal or challenges among friends -- this should be like that old game "draw something" challenges
Re:Clone-a-Lisa by kepano on Saturday August 19, 2023 @07:17PM (#37194324)
I really wanted to hit 85% but the best I could do was 84.4% https://i.imgur.com/t3saf5D.jpeg

The scoring system could try to account for perceptual color differences, perhaps by ramping up the saturation of both images when calculating the differences. Since the original painting is relatively desaturated the current scoring mostly incentivizes focusing on light/dark rather than shades of color.

Lots of other great suggestions in the thread — would be fun to see a leaderboard!

Re:Clone-a-Lisa by runnerup on Saturday August 19, 2023 @07:44PM (#37194508)
Doing the distance calculation in CIELAB / Oklab color space would suffice.
Re:Clone-a-Lisa by johnchristopher on Sunday August 20, 2023 @08:31AM (#37198484)
What input device did you use (mouse, finger, touchpad, etc. ) ?
Re:Clone-a-Lisa by kepano on Sunday August 20, 2023 @02:42PM (#37201840)
iPad + pencil
Re:Clone-a-Lisa by miffe on Saturday August 19, 2023 @07:20PM (#37194343)
All the colors are black for me in Firefox 116.0.3
Re:Clone-a-Lisa by nemetroid on Saturday August 19, 2023 @07:28PM (#37194391)
Works just fine here.
Re:Clone-a-Lisa by Evidlo on Saturday August 19, 2023 @08:41PM (#37194852)
Me too.
Re:Clone-a-Lisa by mattround on Sunday August 20, 2023 @03:59AM (#37197086)
I'm guessing you have an add-on that alters page colours, eg to force dark mode..?
Re:Clone-a-Lisa by kroltan on Sunday August 20, 2023 @08:34AM (#37198508)
Same, but reloading with a clean cache (Ctrl+Shift+F5) made it work.
Re:Clone-a-Lisa by 867-5309 on Sunday August 20, 2023 @09:09AM (#37198774)
you probably meant Ctrl+F5 or Ctrl+Shift+R
Re:Clone-a-Lisa by nebulous1 on Saturday August 19, 2023 @08:27PM (#37194771)
FYI, I can get over 65% by just scrawling the large black brush all over the canvas randomly.
Re:Clone-a-Lisa by MiracleLegumes on Saturday August 19, 2023 @08:35PM (#37194816)
Are you Matt Round of Amazon fame? If yes, I have to thank you for my career building on Matt Rounds Tool (MRT)
Re:Clone-a-Lisa by mattround on Sunday August 20, 2023 @03:28AM (#37196972)
No, I'm not aware of anyone building their career on my tool.
Re:Clone-a-Lisa by hanniabu on Saturday August 19, 2023 @09:03PM (#37194982)
After the timer it up it'd be nice if you can continue going
Re:Clone-a-Lisa by jtolmar on Sunday August 20, 2023 @01:51AM (#37196491)
I love that you went to the effort to do brush dynamics for this. It really enhances the joke.
Re:Clone-a-Lisa by woolion on Sunday August 20, 2023 @03:42AM (#37197018)
It's fun, but not so much when you know you can get higher results by cheesing a dumb strategy than by actually trying to draw. Improving scoring could really help... (others already made good suggestions).

Drawing something that complex in such a short amount of time is quite a challenge, keeping within a minute is strictly in party game realm. I used to do ultra low-res versions of paintings (in Pico-8) and the shortest I could do for things like this would be 10 minutes I think (upwards to 20).

For reference, the Mona Lisa: https://woolion.art/assets/img/wobblepaint/017(joconde).gif

Re:Clone-a-Lisa by mattround on Sunday August 20, 2023 @03:51AM (#37197054)
"Party game realm" is a great compliment!
Re:Clone-a-Lisa by Kiro on Sunday August 20, 2023 @05:57AM (#37197677)
> you can get higher results by cheesing a dumb strategy

I think that makes it much more fun for most people, so improving the scoring would actually make it worse.

Re:Clone-a-Lisa by JoshuaDavid on Sunday August 20, 2023 @04:37AM (#37197249)
I managed to get 80% with only horizontal bars: https://imgur.com/a/OnhVdyr. I have not, however, managed to get above 85% (though I've gotten 84% a few times).

It looks like, if every pixel is colored using the closest color from the palette, the score would be 94.7%: https://imgur.com/a/wiltqay. So 90% would be quite close to the theoretical max score.

In terms of game mechanics, I love the percentage score that updates in real time. That immediate feedback is really compelling.

Re:Clone-a-Lisa by Sebastian_09 on Sunday August 20, 2023 @06:42AM (#37197868)
Interestingly very much looks like a Rothko !
Re:Clone-a-Lisa by kookamamie on Sunday August 20, 2023 @06:42AM (#37197867)
Darker areas are also easier to get right, or close to right, as I'm assuming the scoring is done in sRGB space and thus gets skewed by the non-linearity of its gamma curve.