if t < tp0_start: # what we are doing is to create a series of PIXs to conver all the possible durations
tp0_start = t
if t > tp0_end:
tp0_end = t
tp0_end += 24 * _FD
dur = tp0_end - tp0_start
for i in range(0, int(dur), int(_FD)): # first of all, you should know how many frames we are going to make, then with each frame, what PIX we are going to use
PIX_li = [] # we need one PIX for each frame
PIX_li.append(PIX_t[0])
PIX_li.append(PIX_t[1])
temp = list(PIX_t[2])
for j in range(num): # make the PIX
pt = text[j]
off = (pt[1] * width + pt[0]) * 4
temp[off + 0] = 0xFF
temp[off + 1] = 0x55
temp[off + 2] = 0x59
if tp0_start + i < tp0[j]: # should be transparent