<div/> 요소를 생성합니다.
<div/>요소는 주로 다른 요소들의 컨테이너로 사용됩니다.
매개변수 html은 선택적(optional)입니다. 새로 생성될 <div/>의 내부 HTML을 설정하는 문자열입니다.
예제
구문
createDiv([html])
매개변수
html
String: "
새로 생성될 <div></div> 요소의 내부 HTML
Returns
p5.Element: 새로 생성된 p5.Element 객체
This page is generated from the comments in src/dom/dom.js . Please feel free to edit it and submit a pull request!