Live data from Hacker News

Perfect Circle

neal.fun

91–100 of 155 posts

Re: Perfect Circle

#91
post #46
post #25

Earlier quoted context omitted.

My anticlockwise circles score more than my clockwise ones. Is there some theory behind that ?

Might have something to do with the mechanics of your shoulder. Particularly if your hand is in the air, counterclockwise feels more natural than clockwise. Or at least, for your right arm. What happens if you repeat the experiment with your left hand?

if it was my left arm, are negative scores possible?

Re: Perfect Circle

#92
post #25
post #22

Earlier quoted context omitted.

I was wondering why some circles seemed great but got low scores. To test your tip, I just made a square and got 92%

My anticlockwise circles score more than my clockwise ones. Is there some theory behind that ?

i think clockwise starting from the on your right hand naturally wants to drift rightward. Counterclockwise cancels the drift?

Have you tried switching hands and starting from the bottom?

Re: Perfect Circle

#93
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!

Re: Perfect Circle

#94
post #87
post #86

Earlier quoted context omitted.

Throw a compass into the mix and you'll get close enough. But you like, fall off the grid man.

Are you trying to square a circle? We don't tolerate that witchcraft around these parts. Now git.

No - you can't square the circle, but you can get the square-root of 2.

Choose a corner and truncate, measure the edge length using a compass, and use that to draw the rest of the owl.

You can do it, but you end up with horizontal and vertical edges that are misaligned with the grid.

And I saw the opportunity to make a bad joke.

Re: Perfect Circle

#96

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.

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%).

Re: Perfect Circle

#97
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)()

Re: Perfect Circle

#98

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.

[dead]

Re: Perfect Circle

#99
post #29

One of my maths teachers was able to draw up to something like a three foot circle on the blackboard that looked very, very close to ideal every time. He would always use two arcs to do it and it was uncanny. He would whip out a metre/yard rule to do straight lines because they are much harder to do. Your limbs etc are all a collection of ball and socket/downright weirdly jointed/hinges with benefits/more weirdness.…

At my university the math department held an annual chalkboard circle drawing competition.

Re: Perfect Circle

#100
post #75

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/

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.
Post reply on HN