Referencia height

height

La variable height almacena la altura del lienzo en píxeles.

Por defecto, height tiene un valor de 100, el cual puede ser modificado mediante la llamada a createCanvas() o resizeCanvas(). Por ejemplo: createCanvas(100, 50) define el valor de height como 50.

Al llamar noCanvas() se definirá el valor de height como 0.

Ejemplos

This page is generated from the comments in src/core/environment.js . Please feel free to edit it and submit a pull request!

Referencias Relacionadas