Displaying 1 to 6 from 6 results

adaptive-bezier-curve - adaptive and scalable 2D bezier curves


Builds a bezier curve that is adaptive; that is to say, it has more points along curved corners, and less points along straight lines. This can be used to produce scalable curves that are consistently smooth, while using a small number of steps. Based on AntiGrain.Also see adaptive-quadratic-curve.

adaptive-quadratic-curve - adaptive and scalable 2D quadratic curves


Builds a quadratic curve that is adaptive; that is to say, it has more points along curved corners, and less points along straight lines. This can be used to produce scalable curves that are consistently smooth, while using a small number of steps. Based on AntiGrain.Also see adaptive-bezier-curve.

eases - a grab-bag of modular easing equations


This is a grab-bag of Robert Penner's easing equations, most of the code from glsl-easings. Pull requests for optimizations are welcome.Each easing has its own file which can be required individually. The entry point also exports all eases with camelCase, so require('eases/expo-in-out') becomes require('eases').expoInOut.




path-illustrator - a simple client for illustrating vector paths


Work in progress. A client interface for drawing lines, curves and shapes with familiar Photoshop tools and keybaord shortcuts.The end goals for the project described here.

svg-path-contours - gets a discrete list of points from svg


Approximates an SVG path into a discrete list of 2D contours (polylines). This is useful for collision detection, intersection, triangulation & WebGL rendering, etc. It does not attempt to clean or optimize the discretized points.See demo/index.js for exmaple.