From: Mojca Miklavec <mojca.miklavec@guest.arnes.si>
Subject: Re: shading in meta[post/play] & PDF
Date: Sat, 22 Jan 2005 02:36:44 +0100 [thread overview]
Message-ID: <41F1AE2C.2020002@guest.arnes.si> (raw)
In-Reply-To: <41F16C44.4020106@wxs.nl>
>> Page 746 of PDF Reference, version 1.6 also defines an interesting new
>> feature: 3D objects (3D Artwork as they call it), but I haven't found
>> anything else about that.
>
>
> there is a section about shading, the function numbers differ;
?
How? (I was talking only about shading types, not about function types
at all anyway, but the number *should* be the same.)
> take a look at supp-mpe.tex, all we need is some variant on
>
> \defineMPspecial{31}
> {\startMPshading{16}% type 3
> \setMPshadingcolors{4}{5}{6}{10}{11}{12}%
> \immediate\pdfobj
> {<</FunctionType 2
> /Domain [\gMPs1 \gMPs2]
> /C0 [\MPshadeA]
> /C1 [\MPshadeB]
> /N \gMPs3>>}%
> \immediate\pdfobj
> {<</ShadingType 3
> /ColorSpace /\MPshadeC\space
> /Function \the\pdflastobj\space 0 R
> /Coords [\gMPs7 \gMPs8 \gMPs9 \gMPs{13} \gMPs{14} \gMPs{15}]
> /Extend [true true]>>}%
> \stopMPshading}
>
> (plus some more depending on what parameters need to be passed)
Thanks for pointing it out.
This piece of code is very nice (however the whole bunch of code that
resides in the file ... I wonder how you managed to put all that stuff
together :)
> if you can locate the right stuff in the pdf ref manual we can see what
> can be done (off list); i can add more 'special' handlers to the mp to
> pdf converted
Here are some more examples:
http://partners.adobe.com/public/developer/ps/sdk/index_archive.html
http://partners.adobe.com/public/developer/en/ps/sdk/TN5600.SmoothShading.pdf
http://partners.adobe.com/public/developer/en/ps/sdk/sample/smooth.zip
(I didn't want to send the material to the list and I didn't find the
links until now.)
I'll try to make the drawings I need (in PostScript for the beginning)
and collect the ideas of how the things have to be implemented (which
features supported and how). I'm in no way such a 'superwoman' to be
able to do dozens of things efficiently in one day as you do, but I'll
do my best; exams are approaching, so it may take me slightly longer -
please apologize me.
Thanks again for being prepared to help. I'll write back as soon as I
have something to report.
Mojca
next prev parent reply other threads:[~2005-01-22 1:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-15 5:16 Mojca Miklavec
2005-01-15 21:04 ` [metapost] " Laurence Finston
2005-01-19 10:00 ` Mojca Miklavec
2005-01-19 10:59 ` Laurence Finston
2005-01-19 11:48 ` Hans Hagen
2005-01-20 23:47 ` Mojca Miklavec
2005-01-21 20:55 ` h h extern
2005-01-22 1:36 ` Mojca Miklavec [this message]
2005-01-15 22:02 ` [metapost] " Laurence Finston
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41F1AE2C.2020002@guest.arnes.si \
--to=mojca.miklavec@guest.arnes.si \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).