Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!newsfeed.tele2net.at!news.panservice.it!feed.xsnews.nl!border02.ams.xsnews.nl!feeder04.ams.xsnews.nl!feeder03.ams.xsnews.nl!frontend-F09-15.ams.news.kpn.nl From: Cecil Westerhof Newsgroups: comp.lang.postscript Subject: Re: How to make things like Celtic borders Organization: Decebal Computing References: <87k35hvn4y.fsf@Equus.decebal.nl> X-Face: "(y8cC@tg_12{">GF'UXTW]FHI2wMiZNrnf'1EFQ&O#$m:f#O7+7}kR,v+Pti8=Vi/Z"g^?b"E X-Homepage: http://www.decebal.nl/ Date: Sat, 06 Sep 2014 14:24:49 +0200 Message-ID: <87d2b9ueb2.fsf@Equus.decebal.nl> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:9GIGuyKa+Wr1a6PPlSps+JAgq+8= MIME-Version: 1.0 Content-Type: text/plain Lines: 31 NNTP-Posting-Host: 77.171.42.144 X-Trace: 1410006651 news.kpn.nl 20748 77.171.42.144@kpn/77.171.42.144:47311 Xref: csiph.com comp.lang.postscript:2028 Op Saturday 6 Sep 2014 07:44 CEST schreef tlvp: > On Fri, 05 Sep 2014 22:16:29 +0200, Cecil Westerhof wrote: > >> Anybody pointers about how to do that? > > For knots and braids, generally, with over- and under-crossings, I > can only suggest two things: > > 1) stroke the rope in layers, most underneath first, whatever has > over-crossings with that next, and so on; and > > 2) for each such layer of rope, before stroking the black curves of > the two edges of the rope at that layer, produce the closed path > consisting of the first edge from beginning to end, the lineto the > nearest point of the second edge, the second edge itself, and the > closepath command (giving you the lineto the starting point of the > first edge), and fill that with white (otherwise your rope will seem > "transparent" :-) ). > > I can offer you a code illustration if you like, but I suspect > you'll understand well enough that you won't really need that. Well, I am not a postscript expert yet and certainly a newbie on drawing graphics. So a code illustration to get me started would be appreciated very much. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof