Forgot password?
 Create new account
View 1134|Reply 3

[无聊]画个蛋蛋

[Copy link]

701

Threads

110K

Posts

910K

Credits

Credits
94172
QQ

Show all posts

kuing Posted at 2018-6-8 21:25:13 |Read mode
  1. \begin{tikzpicture}
  2.   \def\eggheight{3cm}
  3.   \path[preaction={fill=orange!50!white},
  4.   ball color=orange!60!gray,fill opacity=.5]
  5.   plot[domain=-pi:pi,samples=100]
  6.   ({.78*\eggheight *cos(\x/4 r)*sin(\x r)},{-\eggheight*(cos(\x r))})
  7.   -- cycle;
  8. \end{tikzpicture}
Copy the Code
选自:tex.stackexchange.com/questions/74168/how-can … aw-an-egg-using-tikz

801

Threads

4889

Posts

310K

Credits

Credits
36169

Show all posts

isee Posted at 2018-6-8 21:45:58
好蛋

801

Threads

4889

Posts

310K

Credits

Credits
36169

Show all posts

isee Posted at 2018-6-8 23:03:58
Last edited by hbghlyj at 6 days ago你们直观感受下

701

Threads

110K

Posts

910K

Credits

Credits
94172
QQ

Show all posts

 Author| kuing Posted at 2018-6-8 23:28:06
Last edited by hbghlyj at 6 days ago回复 3# isee

我贴过来的代码是这个

感觉这个颜色好点

手机版Mobile version|Leisure Math Forum

2025-4-20 22:06 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list