def setup
background(220)
div = createDiv('this is some text')
div.style('font-size', '16px')
div.position(10, 0)
end
DOMのブロックレベル要素を生成します。
| 引数名 | 内容 | 備考 | オプション | デフォルト値 |
|---|---|---|---|---|
| html | inner HTML | divタグに挿入する文字列 | ○ | "" |
p5.Elementオブジェクト
(<div></div>タグの HTMLエレメント)