JS - 使 canvas 背景透明

 

canvas = document.getElementById('canvas1');
var context = canvas.getContext('2d');
context.fillStyle = 'rgba(255, 255, 255, 0)'

你可能感兴趣的:(JS - 使 canvas 背景透明)