Basic javascript implementation of layer-color mixing for 3d printing
It does not generate stl files from images (like hueforge actually does), so I recommend converting your images to stl using something like https://3dp.rocks/lithophane/ or opening your images directly into your slicer if the slicer supports it.
Go Live button on the bottom right cornerindex.html is located) by opening the folder in File Explorer and typing 'cmd' in the search bar like so:npx serve
:warning: If you get an error like npm ERR! code ENOENT, run this command then try again:
mkdir "%AppData%\npm"
Open up the URL in your browser. For the screenshot above, that would be: http://localhost:3000
You can replace the input_image.png file with any image you want (just make sure it has this exact name and path) then refresh the page. If you need to use a jpg instead of png the you would need to make some modifications to main.js (edit the line name = "input_image.png" to point to your jpg file name) It will keep working as long as you keep the cmd window open with the npx serve program running.
$ claude mcp add hueforge-at-home \
-- python -m otcore.mcp_server <graph>