Hello,
I've written a small Javascript script to make grouped polygon and circle sectors for use in Inkscape. I wrote it to save me time when making certain shapes for a project.
It can also make some nice flower / ferris wheel images if the arc value is set to less than the circle radius.
Pretty basic, but it might save someone else reinventing the wheel ( please forgive the pun )
http://www.raincloud.co.uk/svg/svgSector_C.html
SVG Circle and polygon sectors
Re: SVG Circle and polygon sectors
Would you like to upload that into the 'SVG tools' category on the Inkscape website? We've already got one nice script there that makes life easier, why not have a second one
Visit https://inkscape.org
Visit https://inkscape.org
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Re: SVG Circle and polygon sectors
Thanks for the kind offer Moini.
I'm just learning Javascript at the moment. I wouldn't consider myself to be a programmer as such.
Maybe I will be able to rewrite the script in python as a Inkscape extension one day !
I've updated the script to generate concentric polygons and to colour the sectors / rings in randomly.
If you are using Chrome, it will ask if you want to download multiple files. You have to say yes ! to download both SVG.
Thanks Matt.
I'm just learning Javascript at the moment. I wouldn't consider myself to be a programmer as such.
Maybe I will be able to rewrite the script in python as a Inkscape extension one day !
I've updated the script to generate concentric polygons and to colour the sectors / rings in randomly.
If you are using Chrome, it will ask if you want to download multiple files. You have to say yes ! to download both SVG.
Thanks Matt.
Re: SVG Circle and polygon sectors
bipper wrote:I'm just learning Javascript at the moment. I wouldn't consider myself to be a programmer as such.
Same for me, I don't think I'll ever really feel qualified
bipper wrote:Maybe I will be able to rewrite the script in python as a Inkscape extension one day !
I'm sure you will be
I've updated the script to generate concentric polygons and to colour the sectors / rings in randomly.
Now that sounds like fun
This wasn't exactly an offer, more of an invitation. The gallery at inkscape.org can hold any kind of Inkscape related stuff, and users can upload it there.
See for example:
https://inkscape.org/en/gallery/
https://inkscape.org/en/gallery/=extension/
https://inkscape.org/en/gallery/=svg-tool/
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Re: SVG Circle and polygon sectors
Yes, I see it now !
I didn't know you could upload resources. I haven't been to the site in a while as I update Inkscape via the Linux terminal.
I've zipped the page and put it in the SVG Tools category as suggested
I didn't know you could upload resources. I haven't been to the site in a while as I update Inkscape via the Linux terminal.
I've zipped the page and put it in the SVG Tools category as suggested
Re: SVG Circle and polygon sectors
Already noticed Thank you for sharing, bipper!
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)