Re: [NTG-context][metapost] shading in meta[post/play] PDF

2005-01-20 Thread Laurence Finston
On Wed, 19 Jan 2005, Mojca Miklavec wrote: How can I make shading inside metapost(play) to produce exactly what's in the attached picture (smooth shades). Or more generally: how can I hardcode some PS/PDF code in .mp, not (yet) supported by metapost(play)? This is a very difficult question.

[NTG-context] Re: [metapost] shading in meta[post/play] PDF

2005-01-17 Thread Laurence Finston
In metapost, perfect spheres can be drawn, like on http://www.gnu.org/software/3dldf/cdsmpls.html. But how can I add colour? You could use the intersection points of the circles as the corners of rectangles and fill the latter. The more circles you use, the better the results will be. The

[NTG-context] Re: [metapost] shading in meta[post/play] PDF

2005-01-17 Thread Laurence Finston
Laurence Finston wrote: If you mean my spheres, that's an artefact of the PNG graphics. Actually, I think it may be because of the high magnification I used in order to get the glyphs to be a reasonable size when viewed using a browser. It would probably work better to make

[NTG-context] Re: [metapost] shading in meta[post/play] PDF

2005-01-17 Thread Laurence Finston
are ultimately drawn as short straight-line segments, though. In the code in that file, the circles have 64 points, and I thought the results were good enough. Raising it to some value x such that x % 4 == 0 and x 64 might improve them, I haven't tried it. 32 wasn't enough. Laurence Finston http