免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
返回列表 发帖

不规则阴影怎么加?

阴影.png
2020-4-14 12:08

阴影2.png
2020-4-14 12:08
  1. \begin{figure}[!ht]
  2.         \flushright
  3.         \begin{tikzpicture}[scale=0.8,>=latex']
  4.         \tikzstyle{every node}=[font=\small]
  5.        
  6.         \coordinate (A) at (0,4);
  7.         \coordinate (B) at (3,0);
  8.         \coordinate (C) at (0,0);
  9.         \coordinate (D) at (0,1);
  10.         \coordinate (E) at (1,0);
  11.         \coordinate (O) at (1,1);
  12.         \coordinate (P) at (0.8,2.4);
  13.        
  14.         \node[left]at(A){$A$};
  15.         \node[right]at(B){$B$};
  16.         \node[below left]at(C){$C$};
  17.         \node[left]at(D){$D$};
  18.         \node[below]at(E){$E$};
  19.         \node[left]at(P){$P$};
  20.         \draw(A)--(B)--(C)--(A);
  21.         \draw[->] (C)--(P);
  22.         \draw (O)circle (1);
  23.         \end{tikzpicture}
  24. \end{figure}
复制代码
分享到: QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友

easy执
  1. \begin{tikzpicture}[scale=0.8,>=latex']
  2.         \tikzstyle{every node}=[font=\small]
  3.        
  4.         \coordinate (A) at (0,4);
  5.         \coordinate (B) at (3,0);
  6.         \coordinate (C) at (0,0);
  7.         \coordinate (D) at (0,1);
  8.         \coordinate (E) at (1,0);
  9.         \coordinate (O) at (1,1);
  10.         \coordinate (P) at (0.8,2.4);

  11.         \filldraw[fill=gray!50,even odd rule]
  12.         (A)--(B)--(C)--cycle
  13.         (O)circle (1);

  14.         \draw[->] (C)--(P);
  15.         \node[left]at(A){$A$};
  16.         \node[right]at(B){$B$};
  17.         \node[below left]at(C){$C$};
  18.         \node[left]at(D){$D$};
  19.         \node[below]at(E){$E$};
  20.         \node[left]at(P){$P$};
  21. \end{tikzpicture}
复制代码

TOP

回复 2# kuing

厉害

TOP

返回列表 回复 发帖