stonkpunk


  • EPX / Scale2x / AdvMAME2x / 3x pixel art scaling algorithms (Eric's Pixel Expansion). 2x, 3x, 4x, 6x, 8x. Anti-aliasing. Works on flat RGBA data.

    published 0.0.129 2 years ago
  • quadratic error mesh decimation. simplified interface for npm mesh-simplifier - use simple triangles instead of Three.js geometry.

    published 0.0.17 a year ago
  • dilate / expand the pixels in a color image

    published 0.0.114 2 years ago
  • very fast gaussian image blur functions originally by Ivan Kutskir and Wojciech Jarosz

    published 0.0.115 2 years ago
  • synchronously read, modify, and save PNG and JPG image data.

    published 0.0.153 a year ago
  • signed or unsigned distance function for triangles using r-tree and/or bvh and/or kd-tree

    published 1.0.76 7 months ago
  • get cross-sections of a 3d triangle mesh

    published 0.0.278 2 years ago
  • get the shortest connecting line segment / point of closest approach between a pair of line segments

    published 0.0.2 2 years ago
  • index a set of triangles into a set of positions/pts and cells. merge vertices fast.

    published 0.0.42 2 years ago
  • convert list of triangles into list of edges where curvature is above threshold

    published 0.0.2 2 years ago
  • generate a triangle mesh from a distance function

    published 0.0.162 7 months ago
  • linear or bezier interpolation along a path made from line segments, using binary search

    published 0.0.137 2 years ago
  • given an array of 3d line segments, chop the lines at all points of intersection, returning non-intersecting sub-segments

    published 0.0.13 2 years ago
  • breaks up a triangle mesh into "islands" (connected components)

    published 0.0.2 2 years ago
  • fast sparse marching cubes implementation - runtime proportional to surface area rather than volume

    published 0.0.172 7 months ago
  • generate random points and normals evenly distributed on a triangle mesh

    published 0.0.2 2 years ago
  • Fast utilities for ray-casting against triangles or boxes or a distance function / implicit surface

    published 0.0.214 7 months ago
  • draw a filled triangle directly onto a pixel buffer, with textures or interpolated vertex colors

    published 0.0.28 2 years ago
  • print basic text directly onto a flat pixel buffer

    published 0.0.15 2 years ago
  • simple software renderer. render an image of a triangle mesh directly to a pixel buffer without using the GPU.

    published 0.0.2411 a year ago
  • automatic uv mapping / uv unwrapping / mesh parameterization / texture mapping -- simple interface for xatlas.js

    published 0.0.2 2 years ago
  • sorting networks for up to 64 inputs. the fastest way to sort small lists.

    published 0.0.7 2 years ago
  • slide a point along a wall / surface / triangle mesh [eg for games, slide camera along wall upon collision]

    published 0.0.31 2 years ago
  • convert an image into triangles with vertex colors - compress image data using mesh compression! poor man's vector tracing.

    published 0.0.3 2 years ago
  • convert a triangle mesh into a list of "skeletal points" - points of maximum distance from the surface

    published 0.0.54 7 months ago
show more packages