Earlier quoted context omitted.
A mac or windows app controlling the mouse I presume?
Arduino controlling a robotic arm holding a mouse, written in C.
Perfect Circle
81–90 of 155 posts
Re: Perfect Circle
#82Earlier quoted context omitted.
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)…
Octagons are great fun to draw on graph paper. They're just a truncated square.
Or if you want the largest octagon that fits in a given circle (octagon of a given radius).
Re: Perfect Circle
#83Another 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.
Re: Perfect Circle
#84play on mobile and move the device instead of your finger. the mass damping increased accuracy for me
Re: Perfect Circle
#85Earlier quoted context omitted.
got 94%! macbook trackpad (and a couple dozen attempts)
My circle is 94.6% perfect, can you beat that? https://neal.fun/perfect-circle/
Re: Perfect Circle
#86Earlier quoted context omitted.
They are! But the octagons you draw that way aren’t regular (basically because sqrt(2) is irrational)
You 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.
But you like, fall off the grid man.
Re: Perfect Circle
#87Earlier quoted context omitted.
You 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.
Throw a compass into the mix and you'll get close enough. But you like, fall off the grid man.
Re: Perfect Circle
#88As 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.
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.
Seems like this should derive the best center point of your circle, rather than mandating the dot.
But yes, we are overthinking it...
Re: Perfect Circle
#89My circle is 97.6% perfect, can you beat that? https://neal.fun/perfect-circle/ (Now my hand hurts...)