Readit News logoReadit News
zamadatix · 3 years ago
As a tip: what it's really checking is for a circle centered on the dot in the middle with the radius equal to your initial click's distance from the center. You could make a mid sized perfect circle which is slightly off the center of the dot and lose to a square that fills the play area.
pstorm · 3 years ago
I was wondering why some circles seemed great but got low scores. To test your tip, I just made a square and got 92%
dxbydt · 3 years ago
My anticlockwise circles score more than my clockwise ones. Is there some theory behind that ?
kibibyte · 3 years ago
This explains why I'm able to achieve my lowest ever score (0.7%) by starting a sort of spiral shape near the dot, whereas drawing that spiral in reverse would be much closer to perfect (>85%).
sixstringtheory · 3 years ago
This is what I aimed for since that is how a circle is defined in a cartesian equation: (x − a)^2 + (y − b)^2 = r^2 where a and b are the circle’s center point xy coordinates and r is radius.
kbutler · 3 years ago
But is a square more of a perfect circle than an off-center perfect circle?

Seems like this should derive the best center point of your circle, rather than mandating the dot.

But yes, we are overthinking it...

Deleted Comment

Dead Comment

ynfnehf · 3 years ago
By cheating with a Python script to move the mouse, I managed to get 99.9%. Seems difficult to get higher than that, perhaps due to the mouse position having integer coordinates.
majkinetor · 3 years ago
I literray came here to see who is going to proclaim automation first (and in what way) :) Unsurprinsingly, it was the first comment.

100% perfect circle is a pure math thing and can't be achieved with drawing in any way.

yarg · 3 years ago
In a similar vein, people claim it's impossible to draw a heptagon with a straight edge and ruler.

Sure, but good luck pulling of a perfect octagon either, given the limitations of pen and paper.

And there's a perfectly good approximation that'll very quickly produce a theoretical heptagon with error margins less than the thickness of a pencil.

1/7 ~= 1/8 + 1/64 + 1/512 + 1/4096

(1/n = sum(1...infinity) of 1/((n + 1) ^ i)

(A perfect heptagon requires infinitely many steps.)

jonas-w · 3 years ago
https://news.ycombinator.com/item?id=34284790

This bookmarklet also "only" gets 99.9%

dmix · 3 years ago
A mac or windows app controlling the mouse I presume?
ynfnehf · 3 years ago
I used the pyautogui library on Linux. Then just a simple loop with an incrementing angle, with some overshoot in the end in order for the webpage to recognize that the circle was complete. First time using the library, worked pretty well, except I had to figure out that I had to use pyautogui.PAUSE = 0 to make it not pause between mouse movements.
chrischen · 3 years ago
Arduino controlling a robotic arm holding a mouse, written in C.
sigvef · 3 years ago
Cool! Not to self-promote (no monetization or anything), but in case any one finds it helpful, I made something similar for myself to practice becoming more accurate with Wacom-style tablet pens: https://tabletpractice.arkt.is/
camtarn · 3 years ago
This is great too! Being able to draw nice straight lines with a tablet pen might debatably be even more useful than drawing a perfect circle.
prenaud · 3 years ago
I messed around with building something similar just before the holidays: https://steadyhand.app/

It was a blast to learn how to do things in canvas and as an exercise, a very fun little app to build. I'm not sure how the OP is measuring perfection of the circle, but in mine it was standard deviation of every drawn point around the centre of the page.

I encourage people to try to scaffold something like this together in canvas/JS sometime. Very fun project!

russellbeattie · 3 years ago
Here's the bookmarklet you've been waiting for...

  javascript:(function()%7Blet%20s%3Ddocument.querySelector(%22main%20svg%22).getBoundingClientRect()%2Ccx%3Ds.width%2F2%2Bs.x%2Ccy%3Ds.height%2F2%2Bs.y%2Cr%3Ds.width%2F3%2Cd%3Ddocument.querySelector(%22main%20div%22)%2Ca%3D0%3Bfor(let%20e%3D0%3Be%3C50%3Be%2B%2B)%7Ba%2B%3DMath.acos(1-Math.pow(60%2Fr%2C2)%2F2)%3Blet%20t%3DMath.round(cx%2Br*Math.cos(a))%2Cn%3DMath.round(cy%2Br*Math.sin(a))%3B0%3D%3De%26%26d.dispatchEvent(new%20MouseEvent(%22mousedown%22%2C%7BclientX%3At%2CclientY%3An%7D))%2Cd.dispatchEvent(new%20MouseEvent(%22mousemove%22%2C%7BclientX%3At%2CclientY%3An%7D))%7Dd.dispatchEvent(new%20MouseEvent(%22mouseup%22))%7D)()

ehsankia · 3 years ago
Another great neal.fun page. One feature I'd like to see is, make the user to N circles in a row and take the median score or something. Right now you can just spam hundreds and take your top score, but it doesn't really reward consistency.
culi · 3 years ago
A consistency reward is a cute idea. It's like "I can't draw your definition of a perfect circle, but I can draw my perfect circle"
majkinetor · 3 years ago
Yeah, we all totally need consistency reward. The game will become borring without it :)
Waterluvian · 3 years ago
There’s a mini game in Mario Odyssey about walking a perfect circle. This reminds me of that. It’s charming.
bbx · 3 years ago
That challenge was surprisingly hard. Even with the couple of landmarks (I think a few small bushes). It’s weird how high the difference was between what looked like a perfect circle and what was actually expected. It was almost like an optical illusion.
Waterluvian · 3 years ago
I got 100% (the second moon) purely by the feel of the controller. I didn’t even look. I just started an arc and held fast. It’s amazingly difficult to walk a perfect circle.
hutzlibu · 3 years ago
I thought this was about Giotto a famous Renaissance Painter, but it seems to be a training app, to become like him (one day):

"The Pope hoped to hire a fresco artist and sent to Giotto a messenger, who asked for a competitive sample drawing. With just paper and a pen, Giotto flicked his wrist and drew a perfect circle. Vasari writes: "The messenger, seeing that he could get nothing else, departed ill-pleased...However, sending the other drawings to the Pope with the names of those who had made them, he sent also Giotto's, relating how he had made the circle without moving his arm and without compasses; the Pope…saw that Giotto must surpass greatly all the other painters of his time."

https://www.smithsonianmag.com/arts-culture/perfect-circles-...