# Clear the screen on mouse press. def setup background(128) end def draw ellipse(mouseX, mouseY, 20, 20) end def mousePressed clear background(128) end
[p5.js] clear
キャンバスの描画内容をすべてクリアします。
なし
・WEBGLモードにおける引数r, g, b, aの指定は未実装です。