Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including canvas-utilities with all npm packages installed. Try it out:

var canvasUtilities = require("canvas-utilities")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

canvas-utilities v2.3.0

Utilities for use with node-canvas or the browser's <canvas> element.


Lots of useful utilities for drawing things on canvases, like:

  • ImageHelper: adds rotation and flip support to images
  • ImageLine: a line of images
  • ImageRays: like a kaleidoscope of ImageLines
  • PixelSorter: pixel sorting effects for canvases
  • PoissonImageGrid: fill a space with randomly-placed images
  • Rainbow: draws a rainbow in the given rectangle
  • SequentialImageSet: for animated sprites
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free