You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your tool is so cool!!!
I made a color version but didn't test the result with my plotter up to now - https://grbl-plotter.de/plotterfun-color
Also drag & drop of an images on to the canvas is possible
To do: I can't change the order of the colors (the lightest color first would be nice), output scaled to given mm (somehow a factor of 3.78 is applied...)
Reacted by Javi Hostaler and CCERocks
Reacted by Mariana Fernandes, Javi Hostaler and CCERocks
Your tool is so cool!!!
I made a color version but didn't test the result with my plotter up to now - https://grbl-plotter.de/plotterfun-color
Also drag & drop of an images on to the canvas is possible
To do: I can't change the order of the colors (the lightest color first would be nice), output scaled to given mm (somehow a factor of 3.78 is applied...)
The program is HTML and JavaScript, just open the site and check the source code (right click in browser window).
Inside the saved SVG, the color, are separated - just open in a text-editor.
If you need something else than RGB or CMY color model:
In line 359 the colors will be separated from the image. RGB is easy because pixel-date is stored in RGB, for CMY calculations are needed to separate cyan, magenta and yellow:
Activity
mitxela commentedon Dec 26, 2020
Very nice! Sorry I didn't comment earlier.
When I tried my CMYK plot, I did it by processing four separate images, which I generated in Krita, so this is certainly a lot easier.
Triod-project commentedon Jan 24, 2021
Hi svenhb,
Have you share your code?
svenhb commentedon Jan 24, 2021
Just rigth-click on the open site and save the code... https://grbl-plotter.de/plotterfun-color/
asutay38 commentedon Jul 18, 2021
Does this site have a program?
For example (Drawing Bot V3)
asutay38 commentedon Jul 18, 2021
Or does this site allow you to save individual CMYK colors?
svenhb commentedon Jul 18, 2021
The program is HTML and JavaScript, just open the site and check the source code (right click in browser window).
Inside the saved SVG, the color, are separated - just open in a text-editor.
If you need something else than RGB or CMY color model:
In line 359 the colors will be separated from the image. RGB is easy because pixel-date is stored in RGB, for CMY calculations are needed to separate cyan, magenta and yellow:
< function applyFilter (channel, context) { // https://wiki.selfhtml.org/wiki/JavaScript/Canvas/Pixel_Manipulation
var data, mod, x, y, offset;
var r,g,b,k,c,m,yl;
mod = context.createImageData(cw, ch);
mariana-s-fernandes commentedon Aug 11, 2022
HI @svenhb, I have been using your color version, works really well! Do you have the code in a repo?
svenhb commentedon Aug 12, 2022
I made a repo here: https://github.com/svenhb/plotterfun-color
I hope it is ok for mitxela
witchole commentedon Jul 15, 2025
Hi @svenhb, that's a nice enhancement!
Just a few comments:
(1) In CMY-only mode, the image is missing the black channel.
I think you can fix that by changing this line:
k = Math.min(1 - r, Math.min(1 - g, 1 - b))to:
if (modeK) k = Math.min(1 - r, Math.min(1 - g, 1 - b)) else k = 0;(2) RGB mode would look better on a black background as it's an additive colour system, so should start without light.
(3) Why not add a "Monochrome" option, so this could be integrated back into @mitxela's repository?