悠闲数学娱乐论坛(第2版)'s Archiver

kuing 发表于 2018-6-8 21:25

[无聊]画个蛋蛋

[code]\begin{tikzpicture}
  \def\eggheight{3cm}
  \path[preaction={fill=orange!50!white},
  ball color=orange!60!gray,fill opacity=.5]
  plot[domain=-pi:pi,samples=100]
  ({.78*\eggheight *cos(\x/4 r)*sin(\x r)},{-\eggheight*(cos(\x r))})
  -- cycle;
\end{tikzpicture}[/code]选自:[url]https://tex.stackexchange.com/questions/74168/how-can-i-draw-an-egg-using-tikz[/url]

isee 发表于 2018-6-8 21:45

好蛋

isee 发表于 2018-6-8 23:03

你们直观感受下

[img]https://i.stack.imgur.com/jnF4g.png[/img]

kuing 发表于 2018-6-8 23:28

[b]回复 [url=http://kuing.orzweb.net/redirect.php?goto=findpost&pid=27016&ptid=5419]3#[/url] [i]isee[/i] [/b]

我贴过来的代码是这个
[img]https://i.stack.imgur.com/LqpjR.png[/img]
感觉这个颜色好点

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.