Build notes / Script · Tracing

How the tracing check on this site works

The slate on our home page asks you to trace a Telugu letter, and the page has to decide whether the trace is good enough. The check must be forgiving of a finger and still reject a scribble. It runs in your browser.

Sheet
N · Build note
Subject
Script · Tracing
Working part
Part 01 · Tracing check
Thresholds
4
Runs
In your browser

T-01 The letter

The letter is data, not a picture

Each letter is stored as two things in a unit square: the outline of the real glyph, and its centre lines as strokes. The strokes are listed in writing order, each from its start point.

Outline
Strokes, in writing order

The letter అ in a unit square: the outline of the real glyph, and two centre-line strokes, each from its start point.

T-02 The numbers

The thresholds

Threshold 01

0.09

A touch sample is on the path when it lies within 0.09 of a stroke, which is 9% of the pad's side.

Threshold 02

80%

At least 80% of the samples must be on the path, so a scribble across the pad fails.

Threshold 03

85%

Each stroke is resampled every 0.02 along its length, and at least 85% of those points must be covered, so half a letter fails.

Threshold 04

8

Fewer than 8 samples is a tap, not a trace.

Because every number is a fraction of the pad, the same rules hold on any screen size.

T-03 Not graded

What the check does not grade

The check does not grade the order or direction of the strokes. A trace in any order that meets the tolerance passes. The numbered dots and arrows teach the order; they do not mark it.

One consequence: the short second stroke of అ lies inside the tolerance of the long first stroke, so the check accepts the letter once the first stroke is traced.

T-04 Working part

Try it

This pad runs the four thresholds above, in your browser.

Part 01 · Tracing checkRuns in your browser

Scope an app with touch input →

Start a project

Tell us what you want to build and which platforms you need, or send the scope you drew. We reply by email.

hi@cr8veworks.com