你好,我想知道是否有可能使画布的背景看起来透明(没有颜色)。下面的代码片段显示了我试图解释的一个示例。如果你有任何建议,请让我知道
function setup() {
createCanvas(400, 400);
}
function draw() {
/* How to make a transparent color????? */
background(220);
rect(100,100,100,200);
}
html, body {
margin: 0;
padding: 0;
}
<!DOCTYPE html>
<html>