So I tried the example and changed this line:
call paint->forward(100)
to: call paint->forward(100+i)
But all I got was an error message, with no obvious way to proceed.