I would like to draw generic amoeba-like shapes with TikZ and don't really want to think too deeply about its boundary. Basically a closed connected set with smooth locally convex boundaries.
Any ideas how to do this easily?
|
|
Here's an example using one of the examples from the question that Peter Grill links to. You need the code from the TeX-SX Launchpad site: download the file
produces:
(although you should be aware that the specific syntax I've used above might break in future versions of TikZ; there's an alternative notation that definitely won't) |
|||
|
|
|
More realistic amoeba with PSTricks. First VersionPlease skip this first version (as there is a small glitch) and jump to the final version. In this version I use I have no idea how to exclude the last node when using
Animation
Final versionIn this version I use Therefore,
exludes the last node. One advantage of using
Animation
|
||||
|
|
Whenever I have to draw curves when I don't want to think too deeply about its boundary, I just use randomized curves. For example, here is a solution using Metapost + Metafun (I am posting ConTeXt code, but it should work in standalone metapost as well) EDIT As Karl's student's answer illustrates, you get more realistic looking amoeba shapes if you start randomizing with more points. Based on that idea, here is another solution: (I think that the amoeba with 20 points looks rather realistic).
Breakdown of code:
Previous answer
or with less randomness
These curves were obtained using
In the second diagram, I changed
Instead of starting with a circle, you can start with a more amoeba like shape to get more realistic output. |
||||
|
|