| Bitmap2Vector |
| Tuesday, 25 December 2007 01:38 | ||||||||
|
Looked at from near it looks like stripes and looked at from far it looks like a picture. Applied on a window, it enables you to look through from near and look at a picture from far. The last converter was written in C, but I like Python more and more. No filepointer is necessary, the debugging info is useful and handling of variables is easy. The svg core is taken from the net. The licence is not defined by the author and on the same site I found following sentence: "Except where otherwise noted, recipes in the Python Cookbook are published under the Python license.". Looks free to me. I changed the integer output to float and added functions for polygons of any pointcount. The other part is taken from the Timeguy again. His script is intended to generate g-code and looks at the brightness of every pixel. The same is needed here, except the g-code part. Because it is for vinyl plotter, I added a maximum and a minimum bound, this makes later deburring easier and the stripes more stable. The new spiralscript has a positioning bug in the center. You can play with the initial circlesize (variablename: circle) to compensate this. This picture drawn by Leonardo da Vinci now sticks to my door: ![]() You can discern the stripes in the detailed view. This is the first try. The next one will be made with a border, because the narrow stripes will turn up at the ends, also the min- and max-bound wasn't implemented when this got cut. Here you see the source image:
Source of Tux: Tux-G2.png |
||||||||
| Last Updated on Friday, 22 January 2010 19:07 |





