|
Post by vovchik on Jun 19, 2012 15:29:57 GMT 1
UPDATED - 01Micko on the Puppy Linux forum found a small bug in my FIND routine. IT has been fixed and the attachment updated. Hi all, I just finished a useful little svg generator in BaCon. It contains a library of 225 nice/useful svg symbols, and you can assign colors for line and fill. By this means, controlling the colors, you can generate a perfectly matched icon set, for example. The archive contains a UPX'd 32-bit binary (compiled in Lucid) and the source. Don't think that your computer has stalled during compilation. I thought so myself at first. It just takes a long time to compile a large svg string array - several minutes on my machine. The un-UPX'd binary is some 270k using my compile string: bacon -o -Os -o -fdata-sections -o -ffunction-sections -o -Wl,--gc-sections bsvg
After UPXing, it is 100k With kind regards, vovchik PS. I think I will also make a GUI version. Attachments:
|
|
|
Post by vovchik on Jun 20, 2012 19:28:59 GMT 1
Hi guys, Here is a slightly improved version. You can now output to stdout (for redirecting purposes), and I added -C and -I (which output unformatted lists of colors and icons), so that it is easier to parse these lists in scripts. With kind regards, vovchik PS. I deleted the version I uploaded an hour ago, since I discovered that the help wasn't working properly. It is now. Attachments:
|
|
|
Post by alexfish on Jun 21, 2012 8:27:49 GMT 1
Hi guys, Here is a slightly improved version. You can now output to stdout (for redirecting purposes), and I added -C and -I (which output unformatted lists of colors and icons), so that it is easier to parse these lists in scripts. With kind regards, vovchik PS. I deleted the version I uploaded an hour ago, since I discovered that the help wasn't working properly. It is now. I have compiled this , works very well , Think I will add this to the RAD tool Thanks alexfish
|
|
|
Post by vovchik on Jun 25, 2012 15:39:28 GMT 1
Dear all, I have revised bsvg again and added heaps of new svgs (now 410). I have also included a script that dumps all the icons in the library to your current directory as svg files - and you can specify colors. Incorporated in this version is a set by P.J. Onori ( somerandomdude.com/work/iconic/), but I first had to modify all his polygons and other shape macros to full svg paths and to standardize all views to 128x128. His icons start with "I_". A real pain, that transformation exercise, but at least all the icons are now one size. I also added a few of my own (icon names starting with V_). Have fun... With kind regards, vovchik PS. The archive contains the source, a 32-bit UPX'd binary compiled on Lucid and the dump script. I would place the binary and dump script in /usr/local/bin. Attachments:
|
|
|
Post by bigbass on Jun 25, 2012 16:56:21 GMT 1
Wow ! That will make icons quickly talk about on the fly for theme changing This will keep things light and fast I haven't tried SVG Icons in Bacon yet but will do ! where do find time for all that coding ;D great Job I will be using this yes they work this viewer is part of the latest rad cad called canvas-previewer3 a stand alone small app multiple lines of code allowed the 0,0 is the location on the screen it can be changed too tech note: I recompiled your source code with no problems Joe
|
|
|
Post by alexfish on Jun 25, 2012 18:41:00 GMT 1
Dear all, I have revised bsvg again and added heaps of new svgs (now 410). I have also included a script that dumps all the icons in the library to your current directory as svg files - and you can specify colors. Incorporated in this version is a set by P.J. Onori ( somerandomdude.com/work/iconic/), but I first had to modify all his polygons and other shape macros to full svg paths and to standardize all views to 128x128. His icons start with "I_". A real pain, that transformation exercise, but at least all the icons are now one size. I also added a few of my own (icon names starting with V_). Have fun... With kind regards, vovchik PS. The archive contains the source, a 32-bit UPX'd binary compiled on Lucid and the dump script. I would place the binary and dump script in /usr/local/bin. Think you read my mind. just in the process of doing a dump , when you dumped this , can't believe it alexfish
|
|
|
Post by vovchik on Jun 26, 2012 14:45:03 GMT 1
Dear guys, I have been at it again. This is version 0.1d, which now contains 478 icons. The "V-bk" ones are really good and useful, I think. I used potrace to create the vectors, and the results aren't bad. Please have a look. I think Axelfish and Joe can put this stuff to very good use. With kind regards, vovchik Attachments:
|
|
|
Post by vovchik on Jun 26, 2012 15:07:16 GMT 1
@ alexfish, Sorry about the mispelling - I am dyslexic - or, at any rate, I cannot tell left from right without looking at my hands, and that can lead to silly mistakes. When driving, and I am told to "turn right", I invariably do the opposite. Good thing I have no car and don't drive much these days. A doctor friend once told me that that condition is not so uncommon. With kind regards, vovchik
|
|
|
Post by bigbass on Jun 26, 2012 15:10:22 GMT 1
Hey vovchik thank you for all your hard work and using SVG images helped me solve a problem I had with making images used for my default window images in RAD by using SVG as a hollow shape I can simulate a window size by having a border and modify the SVG for different sizes which is not easy to do with other image formats as you already know this also works for text labels ! so two big problems I had are solved by using SVG now "drawing" on a canvas is much easier since you started this thread talking about SVG I would like to offer two examples of SVG this may give you an idea to add editable sizes , shapes and text which would be a extra option to your already great app Joe this produces a 350x350 square with a yellow border <svg width="100%" height="100%" viewBox="0 0 350 350"> <rect x="0" y="0" rx="0" ry="0" width="350" height="350" stroke="yellow" stroke-width="2" fill="none" /> </svg>
this produces a 350x350 square with a yellow border with text in red <svg width="100%" height="100%" viewBox="0 0 350 350"> <text x="0" y="10" fill="red">window 350 x 350 SVG yellow </text> <rect x="0" y="0" rx="0" ry="0" width="350" height="350" stroke="yellow" stroke-width="2" fill="none" /> </svg>
|
|
|
Post by vovchik on Jun 26, 2012 15:32:04 GMT 1
Dear Joe, Thanks. I didn't know that you could use "%" for width and height. That will come in very handy in processing svg vectors... With kind regards, vovchik
|
|
|
Post by alexfish on Jun 26, 2012 15:44:23 GMT 1
@ alexfish, Sorry about the mispelling - I am dyslexic - or, at any rate, I cannot tell left from right without looking at my hands, and that can lead to silly mistakes. When driving, and I am told to "turn right", I invariably do the opposite. Good thing I have no car and don't drive much these days. A doctor friend once told me that that condition is not so uncommon. With kind regards, vovchik You ain't seen mine , but at least can still drive , some call me by my nic "Axel" , so don't mind Did you know a dislexic can read a sentance by just looking at it ;D There is a test on the Web. regards alexfish
|
|