Spirograph along rectangle effect?

Post questions on how to use or achieve an effect in Inkscape.
User avatar
Kjohrf
Posts: 170
Joined: Tue Oct 27, 2009 11:42 am
Location: US
Contact:

Spirograph along rectangle effect?

Postby Kjohrf » Sat Feb 06, 2010 3:00 am

Howdy. I'd like something equivalent to using a spirograph that had a rectangle (or arbitrary) shape for the inner gear. The effect would create, I think, something like the fancy scrolling used in money. I tried pattern along path, but the result is very rough and not close to being precise enough.

Any suggestions?

A border scroll extension would be great. Might have to work on that someday. Probably not as easy as it seems at first.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Spirograph along rectangle effect?

Postby brynn » Sat Feb 06, 2010 4:25 am

Probably not as easy as it seems at first.

Yeah, the math behind those spirograms is over my head (or maybe long forgotten). I can't imagine the kind of scripts that would have to be written.

But I LOVE that Spirograph extension, and have made hundreds of spirograms with it!

Are you thinking of rectangles for both the ring and the gear? Or just the ring or gear? I have to think that using a rectangle for either one, in the real child's toy with pen and paper, would be hard to use. But in the virtual world, I think it would work, and would be fantastic. But sadly I've never learned to write any kind of code, well beyond basic.html
Attachments
spirosamples.svg
(246.22 KiB) Downloaded 190 times

User avatar
Kjohrf
Posts: 170
Joined: Tue Oct 27, 2009 11:42 am
Location: US
Contact:

Re: Spirograph along rectangle effect?

Postby Kjohrf » Sat Feb 06, 2010 6:49 am

Thanks for the follow-up, brynn. I looked at the extension code a bit. It's not too bad, but a bit much for a quick attempt at basing on rectangles. I want the inner gear to be the rectangle. The math isn't too bad except dealing with rounding the corner. I'd have to think about that some. Don't have enough time at the moment, but maybe one of these days.

In the mean time, I did some scrolling by cheating a little. The basic steps:

Make a rectangle. Convert to path.

Select all nodes and add more nodes at least twice.

Select every other node on the top. Move away from the center of the rectangle a bit. Repeat for all four sides.

Select all nodes. Make selected nodes symmetric (or maybe smooth).

Now duplicate that a few times, moving each over a bit.

Now select everything and duplicate, then do outset a bit.

Not perfect, but good enough for me for the moment.

Wingnut

Re: Spirograph along rectangle effect?

Postby Wingnut » Tue Dec 28, 2010 12:37 am

Hi gang! I know I'm pretty late-coming on this, but this is also something i am looking for. Essentially, I want to do spirograph borders around any-sized RECTANGLE center-hole (of the spirograph flower). http://webpages.charter.net/wingthing/h ... ran04.html is a CANVAS thing I've messed with a bit... but that's just a spiroflower maker that tests translating (using canvas save/restore stuff). No testing has been done on the "rectangular center hole" needs, yet. The above spiro-drawer is from Kamiel Martinet, http://www.martinet.nl/ (thanks bud!) and was originally seen here... https://developer.mozilla.org/samples/c ... slate.html . There's an SVG spiromaker at http://webpages.charter.net/wingthing/m ... rofox3.svg (also spirofox2.svg) if anyone needs one... its a bit old... could use some dynamic screen-width sniffing.

All of that crap aside... yes, a spiromaker that produced an any-sized rectangular center-hole, and especially one that allowed its "border width" to be set somewhat, too... that would be excellent, and I'd be inclined to buy its math-genius creator AT LEAST dinner... if not a good solid drunk to go with it. wingthing at... charter.net... if anyone has leads or ideas. Thanks!

PS: I'm black text on black backdrop in the CAPTCHA box. Needs CSS! Fix please. thx.


Return to “Help with using Inkscape”