In your second example, you reset fillStyle every time before drawing the white rectangle. You're not doing the same with globalAlpha in ...
確定! 回上一頁