Referencia drawingContext

drawingContext

A system variable that provides direct access to the sketch's <canvas></canvas> element.

The <canvas></canvas> element provides many specialized features that aren't included in the p5.js library. The drawingContext system variable provides access to these features by exposing the sketch's CanvasRenderingContext2D object.

Ejemplos


Referencias Relacionadas