tikz: 図形の境界線を描画しないようにするにはどうすればよいですか?

tikz: 図形の境界線を描画しないようにするにはどうすればよいですか?

円を描くには、次の例を考えてみましょう。

\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
  \draw[fill=red](0, 0)circle(1cm);
\end{tikzpicture}
\end{document}

出力は次のようになります。

ここに画像の説明を入力してください

この円の境界線を描かない方法は?

答え1

draw=none描画色を削除すると:

\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
  \draw[fill=red,draw=none](0, 0)circle(1cm);
\end{tikzpicture}
\end{document}

または、もっと簡単に言うと、\fillの代わりにを使用します\draw

\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
  \fill[red](0, 0)circle(1cm);
\end{tikzpicture}
\end{document}

関連情報