Current collected state Current
Observed since 20 Oct, 19:10 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
grabs a new 2d canvas context
Grabs a CanvasRenderingContext2D, returning null if it doesn't exist. Similar to webgl-context.
var context = require('2d-context')()
var canvas = context.canvas
or
var canvas = document.createElement('canvas')
var context = require('2d-context')({
canvas: canvas,
alpha: true,
width: 256,
height: 256
})
ctx = require('2d-context')([opt])Gets a new canvas context with optional parameters:
canvas a canvas element to use, otherwise creates a new elementwidth a width to set, otherwise no changeheight a height to set, otherwise no changealpha and storageYou can then get a reference of the canvas element with ctx.canvas.
MIT, see LICENSE.md for details.
Download counts and popularity will appear here as the collector receives them.
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 19:10 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:1abf89f32d34a3c8508251369a00a09a15ca26ab79b5342dd79e0b253e554d53