def setup
background(220)
h5 = createElement('h5', 'I am an h5 P5Element!')
h5.style('color', '#00a1d3')
h5.position(10, 0)
end
指定されたタグの HTML要素を生成します。
| 引数名 | 内容 | 備考 | オプション | デフォルト値 |
|---|---|---|---|---|
| tag | HTML要素のタグ | |||
| content | HTMLコンテンツ | HTML要素に挿入 | ○ | "" |
elm : p5elementオブジェクト