Delphi five points three times smoothing (demonstration legend)