📜  p5 透明度 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:42.507000             🧑  作者: Mango

代码示例1
function draw() {
  clear();
  background(200);
  squareColor = color(100, 50, 100);
  squareColor.setAlpha(128 + 128 * sin(millis() / 1000));
  fill(squareColor);
  rect(13, 13, width - 26, height - 26);
}