alternative to breakShape();?
in
Contributed Library Questions
•
2 months ago
I'm working on a sketch that traces a PImage using the diewald_CV_kit library and blob detection. So far I have it tracing my image just fine,even with nested multiple contours. I am running into a problem with the fill() function. The outer trace fills, but any inner contours are covered by the fill. The inner contours should become a window of transparency on the fill of the outer contour. Something like the breakShape() function provides, but it appears unavailable in 2.0. I am using code from the extract_letters in the diewald_CV_kit library. It does recognize outer and inner contours and colors them accordingly, so I'm hoping this won't be too difficult.
I really don't care about seeing the traces in the sketch. The PImages in the sketch will be a posterized grayscale images with 6 levels from black to white. A separate blob detector will be had for each color ( 4 grays, 1 black, and 1 white).
I will eventually work on exporting the traces as SVGs, so maybe there might be some functionality for that in the SVG library, I'm not sure. I really only care about the SVGs being output correctly.
Any thoughts or ideas on this? You can see the example of extract_letters here: http://www.openprocessing.org/sketch/35858
I really don't care about seeing the traces in the sketch. The PImages in the sketch will be a posterized grayscale images with 6 levels from black to white. A separate blob detector will be had for each color ( 4 grays, 1 black, and 1 white).
I will eventually work on exporting the traces as SVGs, so maybe there might be some functionality for that in the SVG library, I'm not sure. I really only care about the SVGs being output correctly.
Any thoughts or ideas on this? You can see the example of extract_letters here: http://www.openprocessing.org/sketch/35858
1