Paper.js is unclaimed —
P
Paper.js
The Swiss Army Knife of Vector Graphics Scripting.·paperjs.org
Paper.js is an open source vector graphics scripting framework that runs on top of the HTML5 Canvas. It provides a Scene Graph / Document Object Model for working with layers, groups, paths, symbols and rasters, along with PaperScript, an extension of JavaScript that adds operator overloading and scoped script execution. It treats vector mathematics as a first-class citizen through core types like Point, Size and Rectangle, and supports SVG import/export, mouse and keyboard interaction, curve smoothing, dashed strokes, and emulation of common blend modes.
What it's for
Creating and manipulating vector graphics and bezier curvesBuilding interactive tools that respond to mouse and keyboard inputImporting and exporting SVG graphicsWorking with raster images and averaging pixel colors within pathsPlacing multiple instances of an item using symbolsDebugging path construction via selection outlinesPerforming vector geometry and mathematical operations on points and sizesSmoothing curves and simplifying path segmentsSimulating dashed strokes on canvasApplying Illustrator/Photoshop-style blend modes in JavaScript
Features 16
- Bounding box inspection supporting complex stroke styles and miter limits
- Curve smoothing and path segment simplification by curve fitting
- Emulation of Illustrator/Photoshop blend modes (multiply, screen, overlay, soft-light, hard-light, color-dodge, color-burn, darken, lighten, difference, exclusion, hue, saturation, luminosity, color, add, subtract, average, negation)
- Flexible object conversion between basic types, arrays and plain JavaScript objects
- Keyboard interaction via key events and key state checks
- Mathematical/algebraic operations on Points and Sizes via PaperScript operator overloading
- Mouse interaction handlers (onMouseDown, onMouseDrag, onMouseUp)
- PaperScript, a scoped extension of JavaScript for sandboxed script execution
- Paths and segments with points and handles for curve manipulation
- Raster image placement and pixel color averaging within paths
- Scene Graph / Document Object Model with layers, groups, paths, compound paths, rasters and symbols
- Selection outlines showing paths, segment points, handles and bounding boxes for debugging
- Simulated dashed strokes at near-native drawing speed
- SVG import and export, including gradients and clipping
- Symbols for placing multiple instances of an item to save memory and speed transformations
- Vector geometry as a first-class citizen
At a glance
open sourceAPI
TypeLibrary / SDK
PlatformsWeb
No company, integrations, or compliance data published yet.