Back to Blog
Technology By Draw Perfect Shape Team

Understanding Your Score: The Math Behind the Magic

Ever wonder how we calculate if your shape is perfect? Dive into the algorithm that powers our scoring engine.

Understanding Your Score: The Math Behind the Magic

When you finish drawing a shape on our site, you receive a score out of 100% almost instantly. But what exactly goes into that calculation?

The Three Pillars of a Perfect Shape

Our custom algorithm analyzes your stroke data across three primary dimensions:

1. Shape Recognition (Procrustes Analysis)

We compare your drawn path against an ideal mathematical model of the requested shape. We use a variant of Procrustes analysis, which scales, translates, and rotates your drawing to find the best possible fit with the ideal template. The lower the variance, the higher your score.

2. Line Smoothness

Even if the overall shape is accurate, a shaky line will reduce your score. We calculate the localized curvature and look for sudden, unexpected jaggedness or sharp angles where there should be smooth curves.

3. Closure and Continuity

Did you close the loop? For shapes like circles and squares, leaving a gap between your start and end points negatively impacts your score. We also check if you overlapped the lines too much at the end.

Why 100% is (Almost) Impossible

Scoring a true 100% means matching the mathematical template perfectly down to the pixel level. While a 95% is achievable with practice, anything above 98% is a feat of robotic precision!