ctx.shadowColor = 'blue'; // 阴影颜色设置 ctx.shadowBlur = 20; // 阴影模糊程度 ctx.shadowOffsetX = 100; // 阴影水平方向偏移量 ctx.shadowOffsetY = 50; // 阴影垂直方向偏移量