Once shadowing is turned on, every new drawing to the canvas will be shadowed.
Turn off further shadowing by setting context.shadowColor
to a transparent color.
// start shadowing
context.shadowColor='black';
... render some shadowed drawings ...
// turn off shadowing.
context.shadowColor='rgba(0,0,0,0)';