Damien Seguin's repositories
canvas-record
Record a video in the browser or directly on the File System from a canvas region (2D/WebGL/WebGPU) as MP4, WebM, MKV, MOV, GIF, PNG/JPG Sequence using WebCodecs and Wasm when available.
glsl-tone-map
A collection of tone mapping functions available both as ES modules strings and as GLSL files for use with glslify.
primitive-geometry
Geometries for 3D rendering, including normals, UVs and cell indices (faces). Perfect if you want to supercharge your dependency folder... with 30KB of geometries.
async-preloader
Assets preloader using async/await and fetch for usage both in the browser and Node.js.
glsl-conditionals
Daniel Holden's functions designed to avoid conditionals in GLSL, available both as ES modules strings and as GLSL files for use with glslify.
typedoc-material-theme
A TypeDoc theme based on Material 3.
media-codecs
Get a codec parameter string (like 'avc1.4d002a') from human readable options (like { name: 'Main', level: '4.2' }) and back to a descriptive name ('AVC Main Profile Level 4.2').
canvas-context
Create a RenderingContext (2d, webgl, webgl2, bitmaprenderer, gpupresent), optionally offscreen for possible use in a Worker.
gpu-memory
Estimate the GPU memory used by textures.
canvas-thumbnail-cache
Draw images into a canvas square grid for fast retrieval at a thumbnail size.
smootherstep
Ken Perlin's improved version of the commonly used first-order smoothstep function.
geom-merge
Merges multiple geometries into one
geom-parse-obj
Parse OBJ geometry files
geom-parse-stl
Parse a STL (StereoLithography) ASCII string, ArrayBuffer or ArrayBuffer with ASCII data, and return a simplicial complex.
geom-revolve
Create geometry by revolving path around Y axis
pub-sub-map
A minimal, namespaced pub-sub implementation with optional data storing on publish and data retrieval on subscribe.
value-format-table
Format an array of objects as text, Markdown, HTML, and more.
geom-builder
Simplicial-complex-like geometry builder backed by typed arrays
geom-export-obj
Convert one (or more) simplicial complex geometry (positions/cells/normals/uvs/vertexColors) into an OBJ string.
hammersley
Computes i-th point in a Hammersley Point Set of size n
rollup-plugin-polyfill-node
A modern Node.js polyfill for your Rollup bundle.
string-truncate
Truncate a string with a custom separator in the middle (tru…ate), end (trunca…) or at any index (t…ncate).
value-inspector
Get a string representation of a value or an object. Pretty much like they look in Chrome DevTools.