またXの夜。@nawi0718の質問を見かけて、「はい、TikZで絵が描けるよ」って答えられるなーと思って。ヘッダーに朝比奈みくるがいたから、さっとこの絵を描いてみたよ。彼女の恥ずかしがり屋で控えめな性格が好き。
もしかしてtikzってお絵かきできますか
— William Jones (@nawi0718) April 7, 2025
座標を取得するために、元の画像に座標グリッドを重ねてみた。
\documentclass[tikz,border=10pt]{standalone} \begin{document} \begin{tikzpicture} \foreach \i in {1,...,7} { \node at (\i,-0.2) {\i}; \node at (-0.2,\i) {\i};} \node[opacity=0.3] at (3,4) {\includegraphics[scale=2]{mikuru.png}}; \draw[step=0.5, dotted] (0,0) grid (7,8); \draw[step=1] (0,0) grid (7,8); \end{tikzpicture} \end{document}
\documentclass[tikz,border=10pt]{standalone} \begin{document} \begin{tikzpicture}[hair/.style={brown!70!red!80!black,draw=black,thick}] \draw[thick] (2.8, 4.2) to[out=200,in=270, looseness=0.5] (1,4.7) to[out=90,in=260] (1.1,5.1) to[out=100,in=20,looseness=5] (2.8, 4.2); \fill[hair] (1.55,6.7) to [bend left=30] (2.1,7.3) to[bend left=50] (2.5,6.4) to (1.7,6.75)--cycle; \fill[hair] (3.3,4.3) to [bend left=20] (3.8,5.8) to[bend left=50] cycle; \filldraw[hair] (3.8,5.2) to[bend left=20] (2.93,3.5) (3.5,4.7) to[bend left=10] (2.4,2.8) to [out=140,in=270] (3,4.4) to[out=80,in=240] (3.5,5.2); \filldraw[hair] (4.4,6.6) to[out=310,in=90] (4.75,5,0) to[out=270,in=130] (5.3,4.2) to[out=310,in=40] (5.3,2.7) to[bend right=20] (4.5,4) to [bend left=50] (4.6,2) to[out=90,in=330] (4,3) to[out=150,in=300] (3.5,4.4); \filldraw[hair] (1.7,4.28) to[out=250,in=150] (2.1,3) to[out=160,in=260] (1.2,4.45) -- cycle; \filldraw[hair] (1.2,4.45) to[out=260,in=150] (1.7,3) to[out=160,in=290] (0.5,3.5) to[out=110,in=260] (1,4.8) to[bend right=30] cycle; \filldraw[hair] (1,4.8) to[bend left=15] (0.6,6) to[bend left=40] (1.75,7.3) (1.65,7.2) to[bend left=25] (2.2,7.4) to[bend right=30] (1.1,5.1); \filldraw[hair](2,7.4) to[out=10,in=60,looseness=1.3] (3.8,4.8) to[bend right=10] (3.65,5.4) (2.6,7.2) to[bend left=50] (3.4,4.8) to[bend right=20] (3.1,5.6) to[bend left=25] (2.5,6.3) (3.4,5.7) to[bend left=30] (2.5,6.3) to[bend right=10] (2.6,5.5) to[bend left=20] (2.2,6.3) to [bend right=20] (2.4,5.3) to[bend left=40] (1.8,7) (1.7,6.7) to[bend right=30] (1.2,5.3) to [bend left=40] (1.2,6.8) (1.1,5.5) to[bend right=20] (1,4.8); \draw[thick] (1.5,7.25) to[bend left=70] (1.9,7.6) (1.85,7.55) to[bend left=70] (2.6,7.8) to[bend left=70] (3.4,7.5) to[bend left=70, looseness=1.4] (4,7) to[bend left=70] (4.3,6.4); \filldraw[white,draw=black,thick] (4.15,6.5) to[bend left=70] (4.3,5.7) to[bend left=70] (4.3,5.7) to[bend left=70] (4.08,5.5); \draw[thick,fill=red] (1.5,5.3) ellipse (0.2 and 0.45) (2.8,5.1) ellipse (0.3 and 0.5); \draw[thick,fill=black] (1.5,5.4) ellipse (0.2 and 0.32) (2.8,5.2) ellipse (0.3 and 0.4); \draw[fill=white] (1.3,4.9) ellipse (0.12 and 0.06) (2.9,4.65) ellipse (0.15 and 0.06) (1.6,5.2) circle (0.08) (1.45,5.6) circle (0.04) (3,4.95) circle (0.1) (2.7,5.45) circle (0.06); \draw[thick] (1.8,4.65) to[out=0,in=200] (2,4.6) to[out=20,in=60] (2.4,4.3) to[out=240,in=340] (1.8,4.3) to[out=160,in=180] cycle; \filldraw (1.2,5.7) to [bend left=50] (1.75,5.65) to[bend right=80,looseness=1.2] cycle; \filldraw (2.55,5.65) to [bend left=50] (3.1,5.5) to[bend right=80,looseness=1.2] cycle; \end{tikzpicture} \end{document}
またXの夜。@nawi0718の質問を見かけて、「はい、TikZで絵が描けるよ」って答えられるなーと思って。ヘッダーに朝比奈みくるがいたから、さっとこの絵を描いてみたよ。彼女の恥ずかしがり屋で控えめな性格が好き。 https://t.co/BXGVVdvCzD pic.twitter.com/1D3Mi8XdRG
— LaTeX.org (@TeXgallery) April 8, 2025
See also: Original Source by Stefan Kottwitz
Note: The copyright belongs to the blog author and the blog. For the license, please see the linked original source blog.
Leave a Reply
You must be logged in to post a comment.