📅  最后修改于: 2022-03-11 14:56:49.828000             🧑  作者: Mango
let value = 0;
function draw() {
fill(value);
rect(25, 25, 50, 50);
}
function keyPressed() {
if (value === 0) {
value = 255;
} else {
value = 0;
}
}