Challenge: Lightsaber

Make a lightsaber interactive using vector math.



Make it grow!

Hint

keyPressed = function() { if (keyCode === ) { ; } drawSaber(); };


This light saber is drawn according to the coordinates of a vector. Use the keyPressed function to make it
double in size every time the user presses the up arrow, by multiplying the vector.