The science
Every stroke is copied by a dihedral group Dn: rotations by 2πk/n, plus optional mirror images. The mood graph uses Russell’s circumplex model (1980): valence (pleasant to unpleasant) and arousal (calm to excited). Here valence and arousal are simple heuristics from pen speed, hue, saturation, lightness and tremor. It is an illustration, not a clinical measure, and not a diagnostic tool. The check rotates the drawn image by one fold and reports the share of ink pixels that do not coincide (pixel resampling leaves a small residue).