Please enable JavaScript to use CodeHS

CodeHS Glossary


createCanvas(width, height) JavaScript

Creates a canvas element in the document and sets the dimensions of it in pixels. This method should be called only once at the start of `setup()`