Displaying 1 to 14 from 14 results

ndarray - 📈 Multidimensional arrays for JavaScript


Modular multidimensional arrays for JavaScript.ndarrays can be transposed, flipped, sheared and sliced in constant time per operation. They are useful for representing images, audio, volume graphics, matrices, strings and much more. They work both in node.js and with browserify.




chaikin-smooth - Chaikin's smoothing algorithm for 2D polylines


Chaikin's smoothing algorithm for 2D polylines.Performs the smoothing algorithm on the specified path, returning a list populated with the additional smoothed points. If the input path has a length of <= 2, the result will be a new array with the same points as the input.

layout-bmfont-text - word-wraps and lays out text glyphs


Provides layout and word-wrapping for left-to-right Latin text, primarily aimed at bitmap font rendering in Canvas/WebGL. The input font should be in the format of BMFont json, see here.You can use bmfont-lato for testing, or load-bmfont for Node/Browser loading.

concaveman - A very fast 2D concave hull algorithm in JavaScript


A very fast 2D concave hull algorithm in JavaScript (generates a general outline of a point set).The algorithm is based on ideas from the paper A New Concave Hull Algorithm and Concaveness Measure for n-dimensional Datasets, 2012 by Jin-Seo Park and Se-Jong Oh.

triangulate-contours - triangulates a series of 2D contours


Triangulates a series of contours using Tess2.js. Returns a simplicial complex with { positions, cells }. Works with 2D and 3D coordinates, and contours can be in reverse winding order for holes.positions are a series of points with the same number of components as the input, and cells is a list of faces with indices into the positions array.



svg-morph - morph animation between two svg path arrays


then load index.html in a browser.Create a new morph animation svg that morphs between the point arrays a and b. Each element in a and b is of the form [x,y].

node-surrender - draw lines and shapes on the terminal


Draw lines and shapes on the terminal.Create a new surrender object from opts.

Shapes - Net standard geometry/shape manipulation library, can be used to merge / split shapes


SixLabors.Shapes is a new cross-platform 2D polygon manipulation AP.At present the code is pre-release we have initial pre-releases availible on nuget.

vivid.ex - Vivid is a simple 2D rendering library written in Elixir.


Vivid is a simple 2D rendering library. I implemented a simple ASCII renderer for debugging and testing purposes, so at any time you can pipe almost any Vivid struct to IO.puts and the contents of the buffer will be rendered and printed onto the screen.

sstp - Convert rect/circle/ellipse/polygon elements to path element.


Convert rect/circle/ellipse/polygon elements to path element. Convert rect/circle/ellipse/polygon elements to path element. Don't contain line and polyline element. if need, please use rect instead.