Browser support

Currently Sandpit targets modern browsers, including IE11 and Edge, and uses babel-polyfill when compiled for ES5.

Why use Sandpit?

The goal of Sandpit is to normalise and simplify the process of creative coding—using code to make pretty things. This usually takes the form of drawing onto the Canvas element, in either a 2d or 3d context. It has resulted in a ton of tools, from Processing.js to Three.js, and an incredible community of people who have pushed the bar of what can be done on the web.

Sandpit supports a bunch of key features that aim to simplify creative coding. Specifically, helps with the following:

Manages inputs, like touches, taps, clicks, force and the accelerometer, and takes care of touch event handling for multitouch on mobile so you don't have to worry about pinch to zoom

Makes it easy to drop in settings, with a simple API for specifying ranges, types and defaults (with dat.GUI behind the scenes)

Stores settings in the query string, so you can copy and paste them without needing to touch a line of code

Offers a bunch of helpers, covering maths, color and vector manipulation (kudos to color and Victor)

Supports bringing your own canvas—for example, to simplify using Three