This page provides animation describing the selection of highest identical residues in a pair of peptides.

Scoring scheme of Identical Residues of two peptides

In this example, the Percent Identity (PID) value is denoted by the MAXIMUM SCORE achieved during the overlapping of these two peptides.

Here PID is 3.