Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #2025 > unrolled thread
| Started by | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| First post | 2014-09-05 22:16 +0200 |
| Last post | 2014-09-10 20:49 -0400 |
| Articles | 7 — 4 participants |
Back to article view | Back to comp.lang.postscript
How to make things like Celtic borders Cecil Westerhof <Cecil@decebal.nl> - 2014-09-05 22:16 +0200
Re: How to make things like Celtic borders tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2014-09-06 01:44 -0400
Re: How to make things like Celtic borders Cecil Westerhof <Cecil@decebal.nl> - 2014-09-06 14:24 +0200
Re: How to make things like Celtic borders jdaw1 <jdawiseman@gmail.com> - 2014-09-06 11:14 -0700
Re: How to make things like Celtic borders tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2014-09-06 15:03 -0400
Re: How to make things like Celtic borders Eli the Bearded <*@eli.users.panix.com> - 2014-09-10 18:53 +0000
Re: How to make things like Celtic borders tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2014-09-10 20:49 -0400
| From | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| Date | 2014-09-05 22:16 +0200 |
| Subject | How to make things like Celtic borders |
| Message-ID | <87k35hvn4y.fsf@Equus.decebal.nl> |
I am playing to make borders for quotes. I came across:
https://www.google.com/search?q=celtic+borders&tbm=isch&tbo=u&source=univ&sa=X&ei=LhYKVPrAPKuCzAPdqIDAAg&ved=0CBwQsAQ&biw=1044&bih=1430
Anybody pointers about how to do that? At the moment I would not know
how to create things like that.
An example what I made (with squared clover):
https://www.facebook.com/ZelfOntwikkeling/photos/a.480753858643860.158254.470841432968436/825580660827843
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
[toc] | [next] | [standalone]
| From | tlvp <mPiOsUcB.EtLlLvEp@att.net> |
|---|---|
| Date | 2014-09-06 01:44 -0400 |
| Message-ID | <wh85qwtkib50$.1oocl9xl6qogq$.dlg@40tude.net> |
| In reply to | #2025 |
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. Cheers, -- tlvp -- Avant de repondre, jeter la poubelle, SVP.
[toc] | [prev] | [next] | [standalone]
| From | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| Date | 2014-09-06 14:24 +0200 |
| Message-ID | <87d2b9ueb2.fsf@Equus.decebal.nl> |
| In reply to | #2026 |
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
[toc] | [prev] | [next] | [standalone]
| From | jdaw1 <jdawiseman@gmail.com> |
|---|---|
| Date | 2014-09-06 11:14 -0700 |
| Message-ID | <6d9b0279-f731-4963-9770-85a9871d7e15@googlegroups.com> |
| In reply to | #2028 |
Pick a repeating unit, one for straights and one for a right corner.
/Straight {...} bind def draws the straight of length 1.
/RightCorner {...} bind def draws the curve of length 1, turns right, another length 1.
Then paint things with the likes of ... scale ... rotate Straight Straight RightCorner Straight Straight RightCorner Straight Straight RightCorner Straight Straight RightCorner fill.
[toc] | [prev] | [next] | [standalone]
| From | tlvp <mPiOsUcB.EtLlLvEp@att.net> |
|---|---|
| Date | 2014-09-06 15:03 -0400 |
| Message-ID | <99h15kxma7lt$.1n5jkpf16cfe4.dlg@40tude.net> |
| In reply to | #2028 |
On Sat, 06 Sep 2014 14:24:49 +0200, Cecil Westerhof wrote: > So a code illustration to get me started would be > appreciated very much. Overly heavy on the didactic pedagogy, but perhaps of use anyway: a sequence of 10 heavily commented .ps files gradually generating a nice, if unusual, trefoil (3-leaf-clover, or overhand) knot: the ten files 001*.ps through 010*.ps in the web directory http://tlvp.net/~misc.tlvp/TrefoilPS (taken serially). The " * " parts of their names hint at their purpose. Seeing what gets added to (or uncommented out in) the next in the series is what may prove instructive. And if not, well, they cost you only a bit of your time. HTH. Cheers, -- tlvp -- Avant de repondre, jeter la poubelle, SVP.
[toc] | [prev] | [next] | [standalone]
| From | Eli the Bearded <*@eli.users.panix.com> |
|---|---|
| Date | 2014-09-10 18:53 +0000 |
| Message-ID | <eli$1409101447@qz.little-neck.ny.us> |
| In reply to | #2033 |
In comp.lang.postscript, tlvp <mPiOsUcB.EtLlLvEp@att.net> wrote: > Overly heavy on the didactic pedagogy, but perhaps of use anyway: a > sequence of 10 heavily commented .ps files gradually generating a nice, if > unusual, trefoil (3-leaf-clover, or overhand) knot: the ten files > > 001*.ps through 010*.ps > > in the web directory http://tlvp.net/~misc.tlvp/TrefoilPS (taken serially). Thanks for that demo (even though I wasn't the one who asked for it.) I'll be reading it. I'd like to mention that I made an animated GIF out of it, too: http://i.imgur.com/5VMWQ3Y.gif Feel free to ignore or use that as you wish. I have some other thoughts, but they topic digresses, so I'm going to start a new thread. Elijah ------ going off in the direction of postscript animation
[toc] | [prev] | [next] | [standalone]
| From | tlvp <mPiOsUcB.EtLlLvEp@att.net> |
|---|---|
| Date | 2014-09-10 20:49 -0400 |
| Message-ID | <1gwg6bshf44kb.2gqmatc9lbsp.dlg@40tude.net> |
| In reply to | #2035 |
On Wed, 10 Sep 2014 18:53:22 +0000 (UTC), Eli the Bearded wrote: > In comp.lang.postscript, tlvp <mPiOsUcB.EtLlLvEp@att.net> wrote: >> ... the ten files >> >> 001*.ps through 010*.ps >> >> in the web directory http://tlvp.net/~misc.tlvp/TrefoilPS (taken serially). > > Thanks for that demo (even though I wasn't the one who asked for it.) YMTW :-) . > ... I made an animated GIF out > of it, too: > > http://i.imgur.com/5VMWQ3Y.gif Cute; and impressive. Me, I made an animatable PDF out of them -- or rather, a multipage PDF, that I just page through by hand, fast, as part of a presentation of both the math underlying the geometry, the pedagogy for motivating that math, and the interest PostScript should stir in geometers. > Feel free to ignore or use that as you wish. I have some other thoughts, > but they topic digresses, so I'm going to start a new thread. I may well try to add that as the Maraschino topping to that presentation. > Elijah > ------ > going off in the direction of postscript animation Sounds like a worthy adventure :-) . Cheers, -- tlvp -- Avant de repondre, jeter la poubelle, SVP.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.postscript
csiph-web