Skip to content
Harsh Singh edited this page Jul 22, 2022 · 5 revisions

Currently the canvas.js module exports a single function called createCanvas

createCanvas

Params

  • width {number} - width of the canvas
  • height {number} - height of the canvas
  • background {string} - background style of the canvas, default none

Example

const canvas = Bottlecap.createCanvas(500, 500, 'black');
Clone this wiki locally