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.
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
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
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