The simplest way to get such an effect is to literally blink the sprite: Just don't draw it half the time.

    var frequency = 200;
    if (! blinking || Math.floor(Date.now() / frequency) % 2) {
        ctx.drawImage(...);
    }

The idea is that when `blinking` is set to `true`, the sprite will flash at the given `frequency`.