HomeGame DevelopmentTouch Target Fitts's Law 2D: Live Regression Model

Touch Target Fitts's Law 2D: Live Regression Model

2D companion to the Fitts's Law touch-target simulator: a top-down target grid drives real tap trials while a live least-squares regression panel fits movement-time-vs-index-of-difficulty data and recovers the underlying Fitts's Law constants from noisy samples in real time.

Game Development2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-mobile-accessibility-implementation ↗ Open standalone

The 3D version of this simulator visualizes Fitts's Law from the outside: you watch a finger fly to targets and see a hit-rate number update. This 2D companion turns the same physics into a working scientific instrument. Each simulated tap still obeys the identical model — movement time predicted from the index of difficulty log2(D/W+1), landing point perturbed by Gaussian aim error that grows with the motor-impairment slider — but every (index of difficulty, observed move time) pair is now plotted and fed into a live least-squares regression that tries to recover the very constants (a≈150ms, b≈120ms/bit) baked into the simulator, exactly as Paul Fitts's original 1954 study and every HCI evaluation since have done from real human timing data. Watch the fitted intercept and slope converge onto the true values as taps accumulate, and watch the fit degrade — R² dropping, the scatter widening — as you crank up motor impairment or shrink targets below the WCAG 44pt/48dp minimums.

⚙ Under the hood

2D companion to the Fitts's Law touch-target simulator: a top-down target grid drives real tap trials while a live least-squares regression panel fits movement-time-vs-index-of-difficulty data and recovers the underlying Fitts's Law constants from noisy samples in real time.

accessibilitymobile-uxfitts-lawwcagtouch-targethuman-factorsregressionstatistics

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)