Is this a requirement or a convention? If it\'s a convention what\'s the reason? Ctx doesn\'t seem especially memorable or intuitive.
e.g.
var ctx =
it's exactly the same if you do
var context = document.getElementById('canvas').getContext('2d');
or
var whatever = document.getElementById('canvas').getContext('2d');
I think "ctx" is really explanatory and short enough :)