I have two functions that define keyframes to animate in x or y axis. They only differ whether its horizontal or vertical.
function edgeh_prefab(st, y) return