Graphics program written in Javascript for webpage: simplify keystrokes

There are a lot of keystrokes involved in making a color move from one position to the next.

legPos[0]=new...