ontext.strokeStyle = 'cornflowerblue';

    context.shadowOffsetX = 5;
    context.shadowOffsetY = 5;
    context.shadowBlur    = 10;

    //创建渐变
    gradient.addColorStop(0,'blue');
    gradient.addColorStop(0.25,'yellow');
    gradient.addColorStop(0.5, 'white');
    gradient.addColorStop(0.75, 'red');
    gradient.addColorStop(1.0,'blue');

    drawBackground();
    drawGradientText();
</script>

</body>
</html>