i don't know if this is what you're askin soz, but it reads like
1. draw line on layer 'x' an colour blue,
2 while drawing line realise should be on layer 'y' and colour red
3 change it in mid-command to save changing later?
Is this what you're getting at?