SVG Circle and polygon sectors

Other sites and resources for Inkscape users.
bipper
Posts: 4
Joined: Sun Apr 10, 2011 4:55 am

SVG Circle and polygon sectors

Postby bipper » Tue May 02, 2017 9:23 pm

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

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: SVG Circle and polygon sectors

Postby Moini » Wed May 03, 2017 4:19 am

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
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)

bipper
Posts: 4
Joined: Sun Apr 10, 2011 4:55 am

Re: SVG Circle and polygon sectors

Postby bipper » Sun May 07, 2017 8:05 am

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.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: SVG Circle and polygon sectors

Postby Moini » Sun May 07, 2017 11:41 am

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)

bipper
Posts: 4
Joined: Sun Apr 10, 2011 4:55 am

Re: SVG Circle and polygon sectors

Postby bipper » Sun May 07, 2017 6:55 pm

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 :)

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: SVG Circle and polygon sectors

Postby Moini » Sun May 07, 2017 11:10 pm

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)


Return to “Inkscape Resources”