Displaying 1 to 6 from 6 results

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

  •    Javascript

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

  •    Javascript

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

  •    Javascript

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

  •    Javascript

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

  •    Javascript

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.