Answers for "p5 transparancy"

0

p5 transparancy

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);
}
Posted by: Guest on January-03-2021

Browse Popular Code Answers by Language