mattdesl

mattdesl/extrude-polyline

triangulates a 2D polyline into a stroke

JavaScript
181
17
MIT License

This library triangulates a 2D polyline into a stroke mesh with configurable thickness, join types, and cap styles. It's designed for developers working with 2D graphics in JavaScript who need to convert paths into triangulated meshes for rendering in WebGL or other graphics contexts. The project provides consistent results with HTML5 canvas stroking and supports features like variable thickness through custom mapping functions.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of mattdesl/extrude-polyline

Account's avatar
typeof number, or use a default
Account's avatar
gl-matrix's vec2, split into smaller pieces
Account's avatar
low level utils for polyline miter joins
Account's avatar
creates a new array with given range
Account's avatar
local development server that aims to make using browserify fast and fun
Account's avatar
A minimal testbed for simple canvas demos
Account's avatar
Clamp a value between two other values
Account's avatar
avoid string concats when making rgba() colors
Account's avatar
draws a simplicial complex using Canvas2D context
Account's avatar
random float between a range
Account's avatar
bare-bones smoothstep interpolation function
Account's avatar
tap-producing test harness for node and browsers
Account's avatar
get current touch/mouse position

Support the repos that depend on mattdesl/extrude-polyline

Top contributors

mattdesl's profile
mattdesl
24 contributions
sidorares's profile
sidorares
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet