I'm not sure how many of these can already be done in trans4 with lua, but I thought I'd put them here anyway.
clear([cnv])
getPixel(x, y, &r, &g, &b, [cnv])
getRes(&w, &h)
gettextheight(text)
gettextwidth(text)
pixelText(x, y, str, [cnv])
random(min, max)
split(str, delimiter, arr)