Skip to content
dbradyPublic

About

My personal bin folder. I keep ~/bin in my path; these are the utilities and scripts I keep in there.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

2,504 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a collection of scripts I keep around. Be forewarned: Some of them are cryptic. Many of them are undocumented. Several of them are very nearly pointless.

But some of them are insanely useful. I will try to make sure these are documented, so that sharing them on github isn’t as dumb as some of these files would lead you to believe.…

Turn an image into a multi-color 3D-printed inlay sign: quantize to a few filament colors, trace to SVG, then build a baseplate STL plus one flush inlay STL per color (load them together in the slicer as one object).

inlay-svg -n 6 -b black --color gold sign.png   # -> sign.svg, sign-preview.png
inlay-stl -s 120x240x3 -r 8 sign.svg            # -> sign-01-black.stl, ...

Requirements:

  • Ruby 3.1+ with the colorize and optimist gems

  • ImageMagick 6.9+ or 7 (apt install imagemagick / brew install imagemagick)

  • potrace (apt install potrace / brew install potrace)

  • uv (curl -LsSf https://astral.sh/uv/install.sh | sh / brew install uv); inlay-stl uses it to run lib/inlay_geom.py with its own Python and manifold3d, downloaded into uv’s cache on first run

Filament colors come from ~/.config/inlay/filaments (Name: #hex per line). Without that file, the CSS named colors in lib/inlay-filaments-css.txt are used. Run either script with no arguments for full options.

About

My personal bin folder. I keep ~/bin in my path; these are the utilities and scripts I keep in there.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages