Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我该怎么做:
alpha = alpha + 1; ctx.strokeStyle = 'rgba(0,153,255,alpha)'; ctx.stroke();
我试图将变量alpha作为颜色的 alpha 通道。
alpha
ctx.strokeStyle = 'rgba(0,153,255,' + alpha + ')';