p5.js
が実行されて表示される。ソースは https://github.com/masui/runp5 にある。p5.js setup = () => {
$('<h2>').text('ランダムに点を打つ').appendTo($('body'))
createCanvas(400,400)
fill('#ffd')
strokeWeight(0)
rect(0,0,400,400)
}
draw = () => {
fill('#000')
rect(random(400),random(400),2,2)
}
? [Tips]: [P5.js][プログラム]を[Scrapbox]ページ上で[実行]する工夫