t = 0 (slider from 0 to 5, step 0.0010)
A = (1.52, 1.74)
B = (7.66, 1.74)
C = (2.52, -2.4)
D = (9.52, -0.02)
E = (6.640000000000001, -2.38)
P = If(t < 1.0, t * B + (1.0 - t) * A, If[t ≥ 1.0 ∧ t < 2.0, (t - 1.0) * C + (2.0 - t) * B, If[t ≥ 2.0 ∧ t < 3.0, (t - 2.0) * D + (3.0 - t) * C, If[t ≥ 3.0 ∧ t < 4.0, (t - 3.0) * E + (4.0 - t) * D, If[t ≥ 4.0, (t - 4.0) * A + (5.0 - t) * E]]]])
Q = If(t < 3.0, A, If[t ≥ 3.0 ∧ t < 4.0, (t - 3.0) * B + (4.0 - t) * A, If[t ≥ 4.0, B]])
z = If(x < 0.0, 0.0, If[x > 1.0, 1.0, x])
P': A + z(t) * (B - A) + z(t - 1.0) * (C - B) + z(t - 2.0) * (D - C) + z(t - 3.0) * (E - D) + z(t - 4.0) * (A - E)
Q': A + z(t - 3.0) * (B - A)