4 ms·
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 in
by ynfnehf 4y 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.
- dmix 4y agoA mac or windows app controlling the mouse I presume?
- ynfnehf 4y agoI 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.
- dmix 4y agoDid you film it by any chance? This would be a good throw-away Twitter or blog post
- chrischen 4y agoArduino controlling a robotic arm holding a mouse, written in C.
- culi 4y agopowered by a large language model
- majkinetor 4y agoI 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 4y agoIn 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.)
- hinkley 4y agoOctagons are great fun to draw on graph paper. They're just a truncated square.
- madcaptenor 4y agoThey are! But the octagons you draw that way aren’t regular (basically because sqrt(2) is irrational)
- hinkley 4y agoYou can get pretty close with a pencil and a ruler though, if you have the right diameter of mechanical pencil. If you place the ruler dead on the corners of the squares and draw the line offset that tiny little bit, the error is barely perceptible without magnification.
- jonas-w 4y agohttps://news.ycombinator.com/item?id=34284790 https://news.ycombinator.com/item?id=34284790 This bookmarklet also "only" gets 99.9%