>>25179331You're close with the editing video thing. It's an AviSynth script for colour correction using SmoothCurve16. That's why I wasn't sure if it counted.

Pure AviSynth syntax doesn't have loops or if blocks, only recursion and the ternary conditional operator. SmoothCurve expects its input points to be sorted, so that explains the abomination in the middle.