由于一个画布只能有一个2d上下文,所以Save和restore可以用作多种情况的解决方案。 ... canvas save restore ... shadowColor = 'rgba(204, 204, 204, 0.5)'; ctx.
確定! 回上一頁