summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/metapost/slideshow/sshowex2.mp
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-11 22:58:36 +0000
committerKarl Berry <karl@freefriends.org>2006-01-11 22:58:36 +0000
commitac3c55a3216b5988f0e48ba9414ddb059f19a699 (patch)
treea752ab12de05a9ac4511903abc09675172018fd6 /Master/texmf-dist/metapost/slideshow/sshowex2.mp
parentd087712418726a64822e40ce1c0627a514d17975 (diff)
trunk/Master/texmf-dist/metapost
git-svn-id: svn://tug.org/texlive/trunk@104 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/metapost/slideshow/sshowex2.mp')
-rw-r--r--Master/texmf-dist/metapost/slideshow/sshowex2.mp36
1 files changed, 36 insertions, 0 deletions
diff --git a/Master/texmf-dist/metapost/slideshow/sshowex2.mp b/Master/texmf-dist/metapost/slideshow/sshowex2.mp
new file mode 100644
index 00000000000..788bbf55b9e
--- /dev/null
+++ b/Master/texmf-dist/metapost/slideshow/sshowex2.mp
@@ -0,0 +1,36 @@
+%%
+%% slide-show example which demonstrates text wrapping, and changing the background
+%% on the fly
+%%
+
+
+input slideshow;
+
+% start with a blue to red gradient, then `gradually' shift it to red to blue
+noslides := 11;
+def doback =
+ background := image(drawgradient((charcode/noslides)[blue,red], (charcode/noslides)[red,blue]););
+enddef;
+
+doback;
+
+extra_endfig := extra_endfig & "doback;";
+
+continue;
+nextfig;
+ header("A Walk in the Park");
+endfig;
+bpoint("I was walking in the park one day, when the most remarkable thing happened.");
+bpoint("There was a lady there, well, I say lady because I was brought up to believe one should use this term to refer to adult members of the fair sex, but from her behaviour, I'm not sure it's the right term at all.");
+bpoint("This lady, as I call her, was conveying herself by way of two-wheeled roller skates, and she was wearing a tiny pair of short pants, and a top which, although it completely covered her torso, was extremely revealing as to her form.");
+bpoint("Well, she noticed that she had my attention, and behaved in a manner which I can only describe as provacative in the extreme.");
+bpoint(ditto & "Do you want a closer look, Jack?" & ditto & " she asked (but my name is not Jack, nor John for that matter), and then she lifted her top, exposing the most disgusting protuberances.");
+bpoint("Needless to say, I was shocked.");
+bpoint("I quickly found a park warden and reported the vixen (I can't bring myself to call her a lady again).");
+bpoint(ditto & "What, the one in the white spandex top?" & ditto & " he exclaimed.");
+bpoint("I supposed that's what that material was, and he assured me that he would seek her out and speak to her about the matter.");
+bpoint("It seemed to me that more severe handling was suggested by the circumstances, but he was eager to do the job, so I left him to it.");
+
+
+
+end