SkillAgentSearch skills...

FilamentPainter

Filament Painting generator for 3D printing

Install / Use

/learn @hpnrep6/FilamentPainter
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Filament Painter

A free colour lithophane generator hosted at https://painter.vec4.ca/

Powered by WebGL2.

Running Locally

  • Download as zip or clone the repository.
  • Drag index.html into a browser tab.

Directory Structure

  • /src contains the Typescript source code
  • /ui contains the CSS styling
  • /build contains compiled JavaScript code (from Typescript)

Core Components

The main component of this entire app is in https://github.com/hpnrep6/FilamentPainter/blob/master/src/gl/compute/Heights.ts

To determine the colour at a layer, a brute force method is used by starting from layer 0 and then incrementing the height for each layer while applying the appropriate colour blending function.

Currently, the colour blending uses an exponential curve of (e^(-2x) - e^-2) / (1 - e^-2), which gives a pretty good approximation of how filament actually behaves.

Since everything is run on the GPU, this brute force computation runs relatively fast.

Screenshot 2025-04-13 at 13 04 20

Related Skills

View on GitHub
GitHub Stars29
CategoryDevelopment
Updated16d ago
Forks7

Languages

TypeScript

Security Score

75/100

Audited on Mar 10, 2026

No findings