difficulty_ast
sequencelengths
1
4
id
stringlengths
7
28
code
stringlengths
918
3.32k
commented_code
stringlengths
1.11k
3.44k
instruction
stringlengths
17
328
result_description
stringlengths
10
115
difficulty
stringclasses
3 values
modification_type
stringclasses
3 values
type
stringclasses
2 values
patch
sequencelengths
1
4
template_solution_code
sequencelengths
1
4
code_solution
sequencelengths
1
4
image_solution
images listlengths
1
4
image_input
imagewidth (px)
300
300
[ 3 ]
beam_coord_change
\documentclass[tikz,border=5pt]{standalone} \usepackage{pgfplots} \pgfplotsset{/pgf/number format/use comma,compat=1.16} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{stanli} \usetikzlibrary{calc,intersections,patterns} \begin{document} \begin{tikzpicture}[scale=1] \draw (-2,3) node[below] {O}; \draw[<->] (-1,3) node[right] {$x$}-|(-2,4) node[left]{$y$}; \point{A}{2}{9}; \point{B}{3}{4}; \point{B'}{5}{5}; \point{C}{0}{0}; \point{D}{8}{1}; \beam{2}{A}{B}[0][0]; \beam{2}{B}{C}[0][0]; \beam{2}{B}{D}[0][0]; \beam{3}{A}{B'}; \beam{3}{B'}{C}; \beam{3}{B'}{D}; \notation{4}{A}{B}[1]; \notation{4}{C}{B}[2][0.6]; \notation{4}{D}{B}[3]; \support{3}{A}[180]; \support{3}{C}[-45]; \support{3}{D}[45]; \hinge{1}{A} \hinge{1}{B} \hinge{1}{C} \hinge{1}{D} \hinge{1}{B'} \begin{scope}[color=red] \load{1}{B}[205][1.5]; \notation{1}{1.3,3.5}{F}[centered]; \end{scope} \dimensioning{1}{B}{B'}{0.5}[$u_\mathrm{B}$]; \dimensioning{2}{B}{B'}{7}[$v_\mathrm{B}$]; \notation{1}{A}{A}[below left]; \notation{1}{B}{B}[above right]; \notation{1}{B'}{B'}[above right]; \notation{1}{C}{C}[right=1mm]; \notation{1}{D}{D}[left=1mm]; \draw (0.5,2.5) node[left]{$EA$} to [out=0,in=180] (1.5,2); \draw (1.75,6.5) node[left]{$EA$} to [out=0,in=150] (2.6,6); \draw (5.25,1.75) node[left]{$EA$} to [out=0,in=225] (6,2.2); \end{tikzpicture} \end{document}
\documentclass[tikz,border=5pt]{standalone} \usepackage{pgfplots} \pgfplotsset{/pgf/number format/use comma,compat=1.16} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{stanli} % TikZ Library for Structural Analysis by Jurgen Hackl \usetikzlibrary{calc,intersections,patterns} \begin{document} \begin{tikzpicture}[scale=1] %\draw [help lines] (0,0) grid [step=1] (8,9); %useful for construction % Coordinates system \draw (-2,3) node[below] {O}; \draw[<->] (-1,3) node[right] {$x$}-|(-2,4) node[left]{$y$}; %point \point{A}{2}{9}; \point{B}{3}{4}; \point{B'}{5}{5}; \point{C}{0}{0}; \point{D}{8}{1}; %beams \beam{2}{A}{B}[0][0]; \beam{2}{B}{C}[0][0]; \beam{2}{B}{D}[0][0]; \beam{3}{A}{B'}; \beam{3}{B'}{C}; \beam{3}{B'}{D}; \notation{4}{A}{B}[1]; \notation{4}{C}{B}[2][0.6]; \notation{4}{D}{B}[3]; %supports \support{3}{A}[180]; \support{3}{C}[-45]; \support{3}{D}[45]; %hinges \hinge{1}{A} \hinge{1}{B} \hinge{1}{C} \hinge{1}{D} \hinge{1}{B'} %load force \begin{scope}[color=red] \load{1}{B}[205][1.5]; \notation{1}{1.3,3.5}{F}[centered]; \end{scope} %displacements \dimensioning{1}{B}{B'}{0.5}[$u_\mathrm{B}$]; \dimensioning{2}{B}{B'}{7}[$v_\mathrm{B}$]; %labels \notation{1}{A}{A}[below left]; \notation{1}{B}{B}[above right]; \notation{1}{B'}{B'}[above right]; \notation{1}{C}{C}[right=1mm]; \notation{1}{D}{D}[left=1mm]; \draw (0.5,2.5) node[left]{$EA$} to [out=0,in=180] (1.5,2); \draw (1.75,6.5) node[left]{$EA$} to [out=0,in=150] (2.6,6); \draw (5.25,1.75) node[left]{$EA$} to [out=0,in=225] (6,2.2); % To-paths are really useful for drawing curved lines. The above % to path is equal to: % % \draw[-latex,thick] (3.2,0.5) node[right]{$\mathsf{S_{1,2}}$} % ..controls +(180:.2cm) and +(up:0.25cm) .. (3,0); % Internally the to path is translated to a similar bezier curve, % but the to path syntax hides the complexity from the user. \end{tikzpicture} \end{document}
Move the coordinate system between EA and F.
Diagram of a mechanical system, with a coordinate system close to the point B
easy
update
scientific
[ "@@ -10,2 +10,2 @@\n\n-\\draw (-2,3) node[below] {O};\n-\\draw[<->] (-1,3) node[right] {$x$}-|(-2,4) node[left]{$y$};\n+\\draw (1,4.5) node[below] {O};\n+\\draw[<->] (2,4.5) node[right] {$x$}-|(1,5.5) node[left]{$y$};" ]
[ "\\documentclass[tikz,border=5pt]{standalone}\n\\usepackage{pgfplots}\n\\pgfplotsset{/pgf/number format/use comma,compat=1.16}\n\\usepackage[T1]{fontenc}\n\\usepackage[utf8]{inputenc}\n\\usepackage{stanli} \n\\usetikzlibrary{calc,intersections,patterns}\n\n\\begin{document}\n\\begin{tikzpicture}[scale=1]\n \\draw (§rangei(1,0.5),§rangei(4.5,0.5)) node[below] {O};\n \\draw[<->] (§rangei(2,0.5),§rangei(4.5,0.5)) node[right] {$x$}-|(§rangei(1,0.5),§rangei(5.5,0.5)) node[left]{$y$};\n \\point{A}{2}{9};\n \\point{B}{3}{4};\n \\point{B'}{5}{5};\n \\point{C}{0}{0};\n \\point{D}{8}{1};\n \\beam{2}{A}{B}[0][0];\n \\beam{2}{B}{C}[0][0];\n \\beam{2}{B}{D}[0][0];\n \\beam{3}{A}{B'};\n \\beam{3}{B'}{C};\n \\beam{3}{B'}{D};\n \\notation{4}{A}{B}[1];\n \\notation{4}{C}{B}[2][0.6];\n \\notation{4}{D}{B}[3];\n \\support{3}{A}[180];\n \\support{3}{C}[-45];\n \\support{3}{D}[45];\n \\hinge{1}{A}\n \\hinge{1}{B}\n \\hinge{1}{C}\n \\hinge{1}{D}\n \\hinge{1}{B'}\n \\begin{scope}[color=red]\n \\load{1}{B}[205][1.5];\n \\notation{1}{1.3,3.5}{F}[centered];\n \\end{scope}\n \\dimensioning{1}{B}{B'}{0.5}[$u_\\mathrm{B}$];\n \\dimensioning{2}{B}{B'}{7}[$v_\\mathrm{B}$];\n \\notation{1}{A}{A}[below left];\n \\notation{1}{B}{B}[above right];\n \\notation{1}{B'}{B'}[above right];\n \\notation{1}{C}{C}[right=1mm];\n \\notation{1}{D}{D}[left=1mm];\n \\draw (0.5,2.5) node[left]{$EA$} to [out=0,in=180] (1.5,2);\n \\draw (1.75,6.5) node[left]{$EA$} to [out=0,in=150] (2.6,6);\n \\draw (5.25,1.75) node[left]{$EA$} to [out=0,in=225] (6,2.2);\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5pt]{standalone}\n\\usepackage{pgfplots}\n\\pgfplotsset{/pgf/number format/use comma,compat=1.16}\n\\usepackage[T1]{fontenc}\n\\usepackage[utf8]{inputenc}\n\\usepackage{stanli} \n\\usetikzlibrary{calc,intersections,patterns}\n\n\\begin{document}\n\\begin{tikzpicture}[scale=1]\n \\draw (1,4.5) node[below] {O};\n \\draw[<->] (2,4.5) node[right] {$x$}-|(1,5.5) node[left]{$y$};\n \\point{A}{2}{9};\n \\point{B}{3}{4};\n \\point{B'}{5}{5};\n \\point{C}{0}{0};\n \\point{D}{8}{1};\n \\beam{2}{A}{B}[0][0];\n \\beam{2}{B}{C}[0][0];\n \\beam{2}{B}{D}[0][0];\n \\beam{3}{A}{B'};\n \\beam{3}{B'}{C};\n \\beam{3}{B'}{D};\n \\notation{4}{A}{B}[1];\n \\notation{4}{C}{B}[2][0.6];\n \\notation{4}{D}{B}[3];\n \\support{3}{A}[180];\n \\support{3}{C}[-45];\n \\support{3}{D}[45];\n \\hinge{1}{A}\n \\hinge{1}{B}\n \\hinge{1}{C}\n \\hinge{1}{D}\n \\hinge{1}{B'}\n \\begin{scope}[color=red]\n \\load{1}{B}[205][1.5];\n \\notation{1}{1.3,3.5}{F}[centered];\n \\end{scope}\n \\dimensioning{1}{B}{B'}{0.5}[$u_\\mathrm{B}$];\n \\dimensioning{2}{B}{B'}{7}[$v_\\mathrm{B}$];\n \\notation{1}{A}{A}[below left];\n \\notation{1}{B}{B}[above right];\n \\notation{1}{B'}{B'}[above right];\n \\notation{1}{C}{C}[right=1mm];\n \\notation{1}{D}{D}[left=1mm];\n \\draw (0.5,2.5) node[left]{$EA$} to [out=0,in=180] (1.5,2);\n \\draw (1.75,6.5) node[left]{$EA$} to [out=0,in=150] (2.6,6);\n \\draw (5.25,1.75) node[left]{$EA$} to [out=0,in=225] (6,2.2);\n\\end{tikzpicture}\n\\end{document}" ]
[ 29 ]
bee_eyes
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, colors alias/.style={color alias/.list/.expanded={#1}}, execute/.code={#1}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ bee/.pic={ \begin{scope}[x=3cm/480,y=3cm/480, rotate=-45, shift=(270:48)] \reflect[ on left= {colors alias={body as BlueGrey800, stripes as Amber500}}, on right={colors alias={body as BlueGrey900, stripes as Amber700}, half clip}, lower wing/.style={fill=BlueGrey100}, upper wing/.style={fill=BlueGrey50}]{ \fill [body] (0,-160) .. controls ++(120:64) and ++(270:64) .. (-88, -16) .. controls ++( 90:64) and ++(225:64) .. ( 0, 128) .. controls ++(315:64) and ++( 90:64) .. ( 88, -16) .. controls ++(270:64) and ++( 60:64) .. cycle; \fill [body] (0,128) ellipse [x radius=80, y radius=56]; \fill [body] (32,160) arc (180:90:64) -- ++(6,-6) coordinate [midway] (@) arc (90:180:64) -- cycle; \fill [body] (@) circle [radius=12]; \begin{scope} \clip (0,-160) .. controls ++(120:64) and ++(270:64) .. (-88, -16) .. controls ++( 90:64) and ++(225:64) .. ( 0, 128) .. controls ++(315:64) and ++( 90:64) .. ( 88, -16) .. controls ++(270:64) and ++( 60:64) .. cycle; \foreach \i in {0,...,2} \fill [stripes] (-256, -160 + \i*80) rectangle ++(512, 40); \end{scope} \foreach \s [count=\i from -1] in {lower wing, upper wing} \fill [style=\s, shift={(16,56)}, rotate=\i*32] (0,0) .. controls ++( 30:64) and ++(180:32) .. (128,56) arc (90:-90:56) .. controls ++(180:32) and ++(330:64) .. cycle; } \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {bee}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{% half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, colors alias/.style={color alias/.list/.expanded={#1}}, execute/.code={#1}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, } \newcommand\reflect[2][]{% \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ bee/.pic={ \begin{scope}[x=3cm/480,y=3cm/480, rotate=-45, shift=(270:48)] \reflect[ on left= {colors alias={body as BlueGrey800, stripes as Amber500}}, on right={colors alias={body as BlueGrey900, stripes as Amber700}, half clip}, lower wing/.style={fill=BlueGrey100}, upper wing/.style={fill=BlueGrey50}]{ \fill [body] (0,-160) .. controls ++(120:64) and ++(270:64) .. (-88, -16) .. controls ++( 90:64) and ++(225:64) .. ( 0, 128) .. controls ++(315:64) and ++( 90:64) .. ( 88, -16) .. controls ++(270:64) and ++( 60:64) .. cycle; \fill [body] (0,128) ellipse [x radius=80, y radius=56]; \fill [body] (32,160) arc (180:90:64) -- ++(6,-6) coordinate [midway] (@) arc (90:180:64) -- cycle; \fill [body] (@) circle [radius=12]; \begin{scope} \clip (0,-160) .. controls ++(120:64) and ++(270:64) .. (-88, -16) .. controls ++( 90:64) and ++(225:64) .. ( 0, 128) .. controls ++(315:64) and ++( 90:64) .. ( 88, -16) .. controls ++(270:64) and ++( 60:64) .. cycle; \foreach \i in {0,...,2} \fill [stripes] (-256, -160 + \i*80) rectangle ++(512, 40); \end{scope} \foreach \s [count=\i from -1] in {lower wing, upper wing} \fill [style=\s, shift={(16,56)}, rotate=\i*32] (0,0) .. controls ++( 30:64) and ++(180:32) .. (128,56) arc (90:-90:56) .. controls ++(180:32) and ++(330:64) .. cycle; } \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {bee}; \end{tikzpicture} \end{document}
Add eyes to the bee with pupils, on the front of its head, looking forward
A bee with eyes, looking forward
hard
add
animal
[ "@@ -49,0 +50,2 @@\n\n+\\fill [BlueGrey100] (40, 150) circle [radius=20];\n+\\fill [BlueGrey700] (40, 160) circle [radius=7];" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n colors alias/.style={color alias/.list/.expanded={#1}},\n execute/.code={#1},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\n\\tikzset{\nbee/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480, rotate=-45, shift=(270:48)]\n\\reflect[\n on left= {colors alias={body as BlueGrey800, stripes as Amber500}},\n on right={colors alias={body as BlueGrey900, stripes as Amber700}, half clip},\n lower wing/.style={fill=BlueGrey100}, upper wing/.style={fill=BlueGrey50}]{\n \\fill [body] (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\fill [body] (0,128) ellipse [x radius=80, y radius=56];\n \\fill [body]\n (32,160) arc (180:90:64) -- ++(6,-6) coordinate [midway] (@)\n arc (90:180:64) -- cycle;\n \\fill [body] (@) circle [radius=12];\n \\begin{scope}\n \\clip (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\foreach \\i in {0,...,2}\n \\fill [stripes] (-256, -160 + \\i*80) rectangle ++(512, 40);\n \\end{scope}\n \\foreach \\s [count=\\i from -1] in {lower wing, upper wing}\n \\fill [style=\\s, shift={(16,56)}, rotate=\\i*32]\n (0,0)\n .. controls ++( 30:64) and ++(180:32) .. (128,56)\n arc (90:-90:56)\n .. controls ++(180:32) and ++(330:64) .. cycle;\n \\fill [BlueGrey100] (§rangei(40,10), §rangei(150,5)) circle [radius=§rangei(20,7)];\n \\fill [BlueGrey700] (§rangei(40,10), §rangei(160,5)) circle [radius=§rangei(7,5)];\n \n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {bee};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n colors alias/.style={color alias/.list/.expanded={#1}},\n execute/.code={#1},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\n\\tikzset{\nbee/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480, rotate=-45, shift=(270:48)]\n\\reflect[\n on left= {colors alias={body as BlueGrey800, stripes as Amber500}},\n on right={colors alias={body as BlueGrey900, stripes as Amber700}, half clip},\n lower wing/.style={fill=BlueGrey100}, upper wing/.style={fill=BlueGrey50}]{\n \\fill [body] (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\fill [body] (0,128) ellipse [x radius=80, y radius=56];\n \\fill [body]\n (32,160) arc (180:90:64) -- ++(6,-6) coordinate [midway] (@)\n arc (90:180:64) -- cycle;\n \\fill [body] (@) circle [radius=12];\n \\begin{scope}\n \\clip (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\foreach \\i in {0,...,2}\n \\fill [stripes] (-256, -160 + \\i*80) rectangle ++(512, 40);\n \\end{scope}\n \\foreach \\s [count=\\i from -1] in {lower wing, upper wing}\n \\fill [style=\\s, shift={(16,56)}, rotate=\\i*32]\n (0,0)\n .. controls ++( 30:64) and ++(180:32) .. (128,56)\n arc (90:-90:56)\n .. controls ++(180:32) and ++(330:64) .. cycle;\n \\fill [BlueGrey100] (40, 150) circle [radius=20];\n \\fill [BlueGrey700] (40, 160) circle [radius=7];\n \n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {bee};\n\\end{tikzpicture}\n\\end{document}" ]
[ 2 ]
bee_longer_body
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, colors alias/.style={color alias/.list/.expanded={#1}}, execute/.code={#1}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ bee/.pic={ \begin{scope}[x=3cm/480,y=3cm/480, rotate=-45, shift=(270:48)] \reflect[ on left= {colors alias={body as BlueGrey800, stripes as Amber500}}, on right={colors alias={body as BlueGrey900, stripes as Amber700}, half clip}, lower wing/.style={fill=BlueGrey100}, upper wing/.style={fill=BlueGrey50}]{ \fill [body] (0,-160) .. controls ++(120:64) and ++(270:64) .. (-88, -16) .. controls ++( 90:64) and ++(225:64) .. ( 0, 128) .. controls ++(315:64) and ++( 90:64) .. ( 88, -16) .. controls ++(270:64) and ++( 60:64) .. cycle; \fill [body] (0,128) ellipse [x radius=80, y radius=56]; \fill [body] (32,160) arc (180:90:64) -- ++(6,-6) coordinate [midway] (@) arc (90:180:64) -- cycle; \fill [body] (@) circle [radius=12]; \begin{scope} \clip (0,-160) .. controls ++(120:64) and ++(270:64) .. (-88, -16) .. controls ++( 90:64) and ++(225:64) .. ( 0, 128) .. controls ++(315:64) and ++( 90:64) .. ( 88, -16) .. controls ++(270:64) and ++( 60:64) .. cycle; \foreach \i in {0,...,2} \fill [stripes] (-256, -160 + \i*80) rectangle ++(512, 40); \end{scope} \foreach \s [count=\i from -1] in {lower wing, upper wing} \fill [style=\s, shift={(16,56)}, rotate=\i*32] (0,0) .. controls ++( 30:64) and ++(180:32) .. (128,56) arc (90:-90:56) .. controls ++(180:32) and ++(330:64) .. cycle; } \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {bee}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{% half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, colors alias/.style={color alias/.list/.expanded={#1}}, execute/.code={#1}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, } \newcommand\reflect[2][]{% \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ bee/.pic={ \begin{scope}[x=3cm/480,y=3cm/480, rotate=-45, shift=(270:48)] \reflect[ on left= {colors alias={body as BlueGrey800, stripes as Amber500}}, on right={colors alias={body as BlueGrey900, stripes as Amber700}, half clip}, lower wing/.style={fill=BlueGrey100}, upper wing/.style={fill=BlueGrey50}]{ \fill [body] (0,-160) .. controls ++(120:64) and ++(270:64) .. (-88, -16) .. controls ++( 90:64) and ++(225:64) .. ( 0, 128) .. controls ++(315:64) and ++( 90:64) .. ( 88, -16) .. controls ++(270:64) and ++( 60:64) .. cycle; \fill [body] (0,128) ellipse [x radius=80, y radius=56]; \fill [body] (32,160) arc (180:90:64) -- ++(6,-6) coordinate [midway] (@) arc (90:180:64) -- cycle; \fill [body] (@) circle [radius=12]; \begin{scope} \clip (0,-160) .. controls ++(120:64) and ++(270:64) .. (-88, -16) .. controls ++( 90:64) and ++(225:64) .. ( 0, 128) .. controls ++(315:64) and ++( 90:64) .. ( 88, -16) .. controls ++(270:64) and ++( 60:64) .. cycle; \foreach \i in {0,...,2} \fill [stripes] (-256, -160 + \i*80) rectangle ++(512, 40); \end{scope} \foreach \s [count=\i from -1] in {lower wing, upper wing} \fill [style=\s, shift={(16,56)}, rotate=\i*32] (0,0) .. controls ++( 30:64) and ++(180:32) .. (128,56) arc (90:-90:56) .. controls ++(180:32) and ++(330:64) .. cycle; } \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {bee}; \end{tikzpicture} \end{document}
Make the body of the bee longer, and pointy
A bee with a long and pointy body
medium
update
animal
[ "@@ -25 +25 @@\n\n-\\fill [body] (0,-160)\n+\\fill [body] (0,-220)\n@@ -36 +36 @@\n\n-\\clip (0,-160)\n+\\clip (0,-220)" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n colors alias/.style={color alias/.list/.expanded={#1}},\n execute/.code={#1},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\n\\tikzset{\nbee/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480, rotate=-45, shift=(270:48)]\n\\reflect[\n on left= {colors alias={body as BlueGrey800, stripes as Amber500}},\n on right={colors alias={body as BlueGrey900, stripes as Amber700}, half clip},\n lower wing/.style={fill=BlueGrey100}, upper wing/.style={fill=BlueGrey50}]{\n \\fill [body] (0,§range(-260,-190,-220))\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\fill [body] (0,128) ellipse [x radius=80, y radius=56];\n \\fill [body]\n (32,160) arc (180:90:64) -- ++(6,-6) coordinate [midway] (@)\n arc (90:180:64) -- cycle;\n \\fill [body] (@) circle [radius=12];\n \\begin{scope}\n \\clip (0,§range(-260,-190,-220))\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\foreach \\i in {0,...,§range(2,3,2)}\n \\fill [stripes] (-256, §range(-160,-200,-160) + \\i*80) rectangle ++(512, 40);\n \\end{scope}\n \\foreach \\s [count=\\i from -1] in {lower wing, upper wing}\n \\fill [style=\\s, shift={(16,56)}, rotate=\\i*32]\n (0,0)\n .. controls ++( 30:64) and ++(180:32) .. (128,56)\n arc (90:-90:56)\n .. controls ++(180:32) and ++(330:64) .. cycle;\n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {bee};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n colors alias/.style={color alias/.list/.expanded={#1}},\n execute/.code={#1},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\n\\tikzset{\nbee/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480, rotate=-45, shift=(270:48)]\n\\reflect[\n on left= {colors alias={body as BlueGrey800, stripes as Amber500}},\n on right={colors alias={body as BlueGrey900, stripes as Amber700}, half clip},\n lower wing/.style={fill=BlueGrey100}, upper wing/.style={fill=BlueGrey50}]{\n \\fill [body] (0,-220)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\fill [body] (0,128) ellipse [x radius=80, y radius=56];\n \\fill [body]\n (32,160) arc (180:90:64) -- ++(6,-6) coordinate [midway] (@)\n arc (90:180:64) -- cycle;\n \\fill [body] (@) circle [radius=12];\n \\begin{scope}\n \\clip (0,-220)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\foreach \\i in {0,...,2}\n \\fill [stripes] (-256, -160 + \\i*80) rectangle ++(512, 40);\n \\end{scope}\n \\foreach \\s [count=\\i from -1] in {lower wing, upper wing}\n \\fill [style=\\s, shift={(16,56)}, rotate=\\i*32]\n (0,0)\n .. controls ++( 30:64) and ++(180:32) .. (128,56)\n arc (90:-90:56)\n .. controls ++(180:32) and ++(330:64) .. cycle;\n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {bee};\n\\end{tikzpicture}\n\\end{document}" ]
[ 1 ]
bee_mirrored
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, colors alias/.style={color alias/.list/.expanded={#1}}, execute/.code={#1}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ bee/.pic={ \begin{scope}[x=3cm/480,y=3cm/480, rotate=-45, shift=(270:48)] \reflect[ on left= {colors alias={body as BlueGrey800, stripes as Amber500}}, on right={colors alias={body as BlueGrey900, stripes as Amber700}, half clip}, lower wing/.style={fill=BlueGrey100}, upper wing/.style={fill=BlueGrey50}]{ \fill [body] (0,-160) .. controls ++(120:64) and ++(270:64) .. (-88, -16) .. controls ++( 90:64) and ++(225:64) .. ( 0, 128) .. controls ++(315:64) and ++( 90:64) .. ( 88, -16) .. controls ++(270:64) and ++( 60:64) .. cycle; \fill [body] (0,128) ellipse [x radius=80, y radius=56]; \fill [body] (32,160) arc (180:90:64) -- ++(6,-6) coordinate [midway] (@) arc (90:180:64) -- cycle; \fill [body] (@) circle [radius=12]; \begin{scope} \clip (0,-160) .. controls ++(120:64) and ++(270:64) .. (-88, -16) .. controls ++( 90:64) and ++(225:64) .. ( 0, 128) .. controls ++(315:64) and ++( 90:64) .. ( 88, -16) .. controls ++(270:64) and ++( 60:64) .. cycle; \foreach \i in {0,...,2} \fill [stripes] (-256, -160 + \i*80) rectangle ++(512, 40); \end{scope} \foreach \s [count=\i from -1] in {lower wing, upper wing} \fill [style=\s, shift={(16,56)}, rotate=\i*32] (0,0) .. controls ++( 30:64) and ++(180:32) .. (128,56) arc (90:-90:56) .. controls ++(180:32) and ++(330:64) .. cycle; } \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {bee}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{% half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, colors alias/.style={color alias/.list/.expanded={#1}}, execute/.code={#1}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, } \newcommand\reflect[2][]{% \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ bee/.pic={ \begin{scope}[x=3cm/480,y=3cm/480, rotate=-45, shift=(270:48)] \reflect[ on left= {colors alias={body as BlueGrey800, stripes as Amber500}}, on right={colors alias={body as BlueGrey900, stripes as Amber700}, half clip}, lower wing/.style={fill=BlueGrey100}, upper wing/.style={fill=BlueGrey50}]{ \fill [body] (0,-160) .. controls ++(120:64) and ++(270:64) .. (-88, -16) .. controls ++( 90:64) and ++(225:64) .. ( 0, 128) .. controls ++(315:64) and ++( 90:64) .. ( 88, -16) .. controls ++(270:64) and ++( 60:64) .. cycle; \fill [body] (0,128) ellipse [x radius=80, y radius=56]; \fill [body] (32,160) arc (180:90:64) -- ++(6,-6) coordinate [midway] (@) arc (90:180:64) -- cycle; \fill [body] (@) circle [radius=12]; \begin{scope} \clip (0,-160) .. controls ++(120:64) and ++(270:64) .. (-88, -16) .. controls ++( 90:64) and ++(225:64) .. ( 0, 128) .. controls ++(315:64) and ++( 90:64) .. ( 88, -16) .. controls ++(270:64) and ++( 60:64) .. cycle; \foreach \i in {0,...,2} \fill [stripes] (-256, -160 + \i*80) rectangle ++(512, 40); \end{scope} \foreach \s [count=\i from -1] in {lower wing, upper wing} \fill [style=\s, shift={(16,56)}, rotate=\i*32] (0,0) .. controls ++( 30:64) and ++(180:32) .. (128,56) arc (90:-90:56) .. controls ++(180:32) and ++(330:64) .. cycle; } \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {bee}; \end{tikzpicture} \end{document}
Mirror the bee vertically
A bee, flying towards the left
easy
add
animal
[ "@@ -20 +20 @@\n\n-\\begin{scope}[x=3cm/480,y=3cm/480, rotate=-45, shift=(270:48)]\n+\\begin{scope}[x=3cm/480,y=3cm/480, rotate=45, shift=(270:48)]" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n colors alias/.style={color alias/.list/.expanded={#1}},\n execute/.code={#1},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\n\\tikzset{\nbee/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480, rotate=45, shift=(270:48)]\n\\reflect[\n on left= {colors alias={body as BlueGrey800, stripes as Amber500}},\n on right={colors alias={body as BlueGrey900, stripes as Amber700}, half clip},\n lower wing/.style={fill=BlueGrey100}, upper wing/.style={fill=BlueGrey50}]{\n \\fill [body] (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\fill [body] (0,128) ellipse [x radius=80, y radius=56];\n \\fill [body]\n (32,160) arc (180:90:64) -- ++(6,-6) coordinate [midway] (@)\n arc (90:180:64) -- cycle;\n \\fill [body] (@) circle [radius=12];\n \\begin{scope}\n \\clip (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\foreach \\i in {0,...,2}\n \\fill [stripes] (-256, -160 + \\i*80) rectangle ++(512, 40);\n \\end{scope}\n \\foreach \\s [count=\\i from -1] in {lower wing, upper wing}\n \\fill [style=\\s, shift={(16,56)}, rotate=\\i*32]\n (0,0)\n .. controls ++( 30:64) and ++(180:32) .. (128,56)\n arc (90:-90:56)\n .. controls ++(180:32) and ++(330:64) .. cycle;\n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {bee};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n colors alias/.style={color alias/.list/.expanded={#1}},\n execute/.code={#1},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\n\\tikzset{\nbee/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480, rotate=45, shift=(270:48)]\n\\reflect[\n on left= {colors alias={body as BlueGrey800, stripes as Amber500}},\n on right={colors alias={body as BlueGrey900, stripes as Amber700}, half clip},\n lower wing/.style={fill=BlueGrey100}, upper wing/.style={fill=BlueGrey50}]{\n \\fill [body] (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\fill [body] (0,128) ellipse [x radius=80, y radius=56];\n \\fill [body]\n (32,160) arc (180:90:64) -- ++(6,-6) coordinate [midway] (@)\n arc (90:180:64) -- cycle;\n \\fill [body] (@) circle [radius=12];\n \\begin{scope}\n \\clip (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\foreach \\i in {0,...,2}\n \\fill [stripes] (-256, -160 + \\i*80) rectangle ++(512, 40);\n \\end{scope}\n \\foreach \\s [count=\\i from -1] in {lower wing, upper wing}\n \\fill [style=\\s, shift={(16,56)}, rotate=\\i*32]\n (0,0)\n .. controls ++( 30:64) and ++(180:32) .. (128,56)\n arc (90:-90:56)\n .. controls ++(180:32) and ++(330:64) .. cycle;\n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {bee};\n\\end{tikzpicture}\n\\end{document}" ]
[ 2, 2 ]
bee_red_stripes
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, colors alias/.style={color alias/.list/.expanded={#1}}, execute/.code={#1}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ bee/.pic={ \begin{scope}[x=3cm/480,y=3cm/480, rotate=-45, shift=(270:48)] \reflect[ on left= {colors alias={body as BlueGrey800, stripes as Amber500}}, on right={colors alias={body as BlueGrey900, stripes as Amber700}, half clip}, lower wing/.style={fill=BlueGrey100}, upper wing/.style={fill=BlueGrey50}]{ \fill [body] (0,-160) .. controls ++(120:64) and ++(270:64) .. (-88, -16) .. controls ++( 90:64) and ++(225:64) .. ( 0, 128) .. controls ++(315:64) and ++( 90:64) .. ( 88, -16) .. controls ++(270:64) and ++( 60:64) .. cycle; \fill [body] (0,128) ellipse [x radius=80, y radius=56]; \fill [body] (32,160) arc (180:90:64) -- ++(6,-6) coordinate [midway] (@) arc (90:180:64) -- cycle; \fill [body] (@) circle [radius=12]; \begin{scope} \clip (0,-160) .. controls ++(120:64) and ++(270:64) .. (-88, -16) .. controls ++( 90:64) and ++(225:64) .. ( 0, 128) .. controls ++(315:64) and ++( 90:64) .. ( 88, -16) .. controls ++(270:64) and ++( 60:64) .. cycle; \foreach \i in {0,...,2} \fill [stripes] (-256, -160 + \i*80) rectangle ++(512, 40); \end{scope} \foreach \s [count=\i from -1] in {lower wing, upper wing} \fill [style=\s, shift={(16,56)}, rotate=\i*32] (0,0) .. controls ++( 30:64) and ++(180:32) .. (128,56) arc (90:-90:56) .. controls ++(180:32) and ++(330:64) .. cycle; } \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {bee}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{% half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, colors alias/.style={color alias/.list/.expanded={#1}}, execute/.code={#1}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, } \newcommand\reflect[2][]{% \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ bee/.pic={ \begin{scope}[x=3cm/480,y=3cm/480, rotate=-45, shift=(270:48)] \reflect[ on left= {colors alias={body as BlueGrey800, stripes as Amber500}}, on right={colors alias={body as BlueGrey900, stripes as Amber700}, half clip}, lower wing/.style={fill=BlueGrey100}, upper wing/.style={fill=BlueGrey50}]{ \fill [body] (0,-160) .. controls ++(120:64) and ++(270:64) .. (-88, -16) .. controls ++( 90:64) and ++(225:64) .. ( 0, 128) .. controls ++(315:64) and ++( 90:64) .. ( 88, -16) .. controls ++(270:64) and ++( 60:64) .. cycle; \fill [body] (0,128) ellipse [x radius=80, y radius=56]; \fill [body] (32,160) arc (180:90:64) -- ++(6,-6) coordinate [midway] (@) arc (90:180:64) -- cycle; \fill [body] (@) circle [radius=12]; \begin{scope} \clip (0,-160) .. controls ++(120:64) and ++(270:64) .. (-88, -16) .. controls ++( 90:64) and ++(225:64) .. ( 0, 128) .. controls ++(315:64) and ++( 90:64) .. ( 88, -16) .. controls ++(270:64) and ++( 60:64) .. cycle; \foreach \i in {0,...,2} \fill [stripes] (-256, -160 + \i*80) rectangle ++(512, 40); \end{scope} \foreach \s [count=\i from -1] in {lower wing, upper wing} \fill [style=\s, shift={(16,56)}, rotate=\i*32] (0,0) .. controls ++( 30:64) and ++(180:32) .. (128,56) arc (90:-90:56) .. controls ++(180:32) and ++(330:64) .. cycle; } \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {bee}; \end{tikzpicture} \end{document}
Change the color of the stripes to red
A bee with red stripes
easy
update
animal
[ "@@ -22,2 +22,2 @@\n\n-on left= {colors alias={body as BlueGrey800, stripes as Amber500}},\n-on right={colors alias={body as BlueGrey900, stripes as Amber700}, half clip},\n+on left= {colors alias={body as BlueGrey800, stripes as Red}},\n+on right={colors alias={body as BlueGrey900, stripes as Red}, half clip},", "@@ -22,2 +22,2 @@\n\n-on left= {colors alias={body as BlueGrey800, stripes as Amber500}},\n-on right={colors alias={body as BlueGrey900, stripes as Amber700}, half clip},\n+on left= {colors alias={body as BlueGrey800, stripes as Red500}},\n+on right={colors alias={body as BlueGrey900, stripes as Red700}, half clip}," ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n colors alias/.style={color alias/.list/.expanded={#1}},\n execute/.code={#1},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\n\\tikzset{\nbee/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480, rotate=-45, shift=(270:48)]\n\\reflect[\n on left= {colors alias={body as BlueGrey800, stripes as Red}},\n on right={colors alias={body as BlueGrey900, stripes as Red}, half clip},\n lower wing/.style={fill=BlueGrey100}, upper wing/.style={fill=BlueGrey50}]{\n \\fill [body] (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\fill [body] (0,128) ellipse [x radius=80, y radius=56];\n \\fill [body]\n (32,160) arc (180:90:64) -- ++(6,-6) coordinate [midway] (@)\n arc (90:180:64) -- cycle;\n \\fill [body] (@) circle [radius=12];\n \\begin{scope}\n \\clip (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\foreach \\i in {0,...,2}\n \\fill [stripes] (-256, -160 + \\i*80) rectangle ++(512, 40);\n \\end{scope}\n \\foreach \\s [count=\\i from -1] in {lower wing, upper wing}\n \\fill [style=\\s, shift={(16,56)}, rotate=\\i*32]\n (0,0)\n .. controls ++( 30:64) and ++(180:32) .. (128,56)\n arc (90:-90:56)\n .. controls ++(180:32) and ++(330:64) .. cycle;\n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {bee};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n colors alias/.style={color alias/.list/.expanded={#1}},\n execute/.code={#1},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\n\\tikzset{\nbee/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480, rotate=-45, shift=(270:48)]\n\\reflect[\n on left= {colors alias={body as BlueGrey800, stripes as Red§range(200,800,500)}},\n on right={colors alias={body as BlueGrey900, stripes as Red§range(400,900,700)}, half clip},\n lower wing/.style={fill=BlueGrey100}, upper wing/.style={fill=BlueGrey50}]{\n \\fill [body] (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\fill [body] (0,128) ellipse [x radius=80, y radius=56];\n \\fill [body]\n (32,160) arc (180:90:64) -- ++(6,-6) coordinate [midway] (@)\n arc (90:180:64) -- cycle;\n \\fill [body] (@) circle [radius=12];\n \\begin{scope}\n \\clip (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\foreach \\i in {0,...,2}\n \\fill [stripes] (-256, -160 + \\i*80) rectangle ++(512, 40);\n \\end{scope}\n \\foreach \\s [count=\\i from -1] in {lower wing, upper wing}\n \\fill [style=\\s, shift={(16,56)}, rotate=\\i*32]\n (0,0)\n .. controls ++( 30:64) and ++(180:32) .. (128,56)\n arc (90:-90:56)\n .. controls ++(180:32) and ++(330:64) .. cycle;\n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {bee};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n colors alias/.style={color alias/.list/.expanded={#1}},\n execute/.code={#1},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\n\\tikzset{\nbee/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480, rotate=-45, shift=(270:48)]\n\\reflect[\n on left= {colors alias={body as BlueGrey800, stripes as Red}},\n on right={colors alias={body as BlueGrey900, stripes as Red}, half clip},\n lower wing/.style={fill=BlueGrey100}, upper wing/.style={fill=BlueGrey50}]{\n \\fill [body] (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\fill [body] (0,128) ellipse [x radius=80, y radius=56];\n \\fill [body]\n (32,160) arc (180:90:64) -- ++(6,-6) coordinate [midway] (@)\n arc (90:180:64) -- cycle;\n \\fill [body] (@) circle [radius=12];\n \\begin{scope}\n \\clip (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\foreach \\i in {0,...,2}\n \\fill [stripes] (-256, -160 + \\i*80) rectangle ++(512, 40);\n \\end{scope}\n \\foreach \\s [count=\\i from -1] in {lower wing, upper wing}\n \\fill [style=\\s, shift={(16,56)}, rotate=\\i*32]\n (0,0)\n .. controls ++( 30:64) and ++(180:32) .. (128,56)\n arc (90:-90:56)\n .. controls ++(180:32) and ++(330:64) .. cycle;\n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {bee};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n colors alias/.style={color alias/.list/.expanded={#1}},\n execute/.code={#1},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\n\\tikzset{\nbee/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480, rotate=-45, shift=(270:48)]\n\\reflect[\n on left= {colors alias={body as BlueGrey800, stripes as Red500}},\n on right={colors alias={body as BlueGrey900, stripes as Red700}, half clip},\n lower wing/.style={fill=BlueGrey100}, upper wing/.style={fill=BlueGrey50}]{\n \\fill [body] (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\fill [body] (0,128) ellipse [x radius=80, y radius=56];\n \\fill [body]\n (32,160) arc (180:90:64) -- ++(6,-6) coordinate [midway] (@)\n arc (90:180:64) -- cycle;\n \\fill [body] (@) circle [radius=12];\n \\begin{scope}\n \\clip (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\foreach \\i in {0,...,2}\n \\fill [stripes] (-256, -160 + \\i*80) rectangle ++(512, 40);\n \\end{scope}\n \\foreach \\s [count=\\i from -1] in {lower wing, upper wing}\n \\fill [style=\\s, shift={(16,56)}, rotate=\\i*32]\n (0,0)\n .. controls ++( 30:64) and ++(180:32) .. (128,56)\n arc (90:-90:56)\n .. controls ++(180:32) and ++(330:64) .. cycle;\n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {bee};\n\\end{tikzpicture}\n\\end{document}" ]
[ 8, 7, 8 ]
bee_three_wings
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, colors alias/.style={color alias/.list/.expanded={#1}}, execute/.code={#1}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ bee/.pic={ \begin{scope}[x=3cm/480,y=3cm/480, rotate=-45, shift=(270:48)] \reflect[ on left= {colors alias={body as BlueGrey800, stripes as Amber500}}, on right={colors alias={body as BlueGrey900, stripes as Amber700}, half clip}, lower wing/.style={fill=BlueGrey100}, upper wing/.style={fill=BlueGrey50}]{ \fill [body] (0,-160) .. controls ++(120:64) and ++(270:64) .. (-88, -16) .. controls ++( 90:64) and ++(225:64) .. ( 0, 128) .. controls ++(315:64) and ++( 90:64) .. ( 88, -16) .. controls ++(270:64) and ++( 60:64) .. cycle; \fill [body] (0,128) ellipse [x radius=80, y radius=56]; \fill [body] (32,160) arc (180:90:64) -- ++(6,-6) coordinate [midway] (@) arc (90:180:64) -- cycle; \fill [body] (@) circle [radius=12]; \begin{scope} \clip (0,-160) .. controls ++(120:64) and ++(270:64) .. (-88, -16) .. controls ++( 90:64) and ++(225:64) .. ( 0, 128) .. controls ++(315:64) and ++( 90:64) .. ( 88, -16) .. controls ++(270:64) and ++( 60:64) .. cycle; \foreach \i in {0,...,2} \fill [stripes] (-256, -160 + \i*80) rectangle ++(512, 40); \end{scope} \foreach \s [count=\i from -1] in {lower wing, upper wing} \fill [style=\s, shift={(16,56)}, rotate=\i*32] (0,0) .. controls ++( 30:64) and ++(180:32) .. (128,56) arc (90:-90:56) .. controls ++(180:32) and ++(330:64) .. cycle; } \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {bee}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{% half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, colors alias/.style={color alias/.list/.expanded={#1}}, execute/.code={#1}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, } \newcommand\reflect[2][]{% \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ bee/.pic={ \begin{scope}[x=3cm/480,y=3cm/480, rotate=-45, shift=(270:48)] \reflect[ on left= {colors alias={body as BlueGrey800, stripes as Amber500}}, on right={colors alias={body as BlueGrey900, stripes as Amber700}, half clip}, lower wing/.style={fill=BlueGrey100}, upper wing/.style={fill=BlueGrey50}]{ \fill [body] (0,-160) .. controls ++(120:64) and ++(270:64) .. (-88, -16) .. controls ++( 90:64) and ++(225:64) .. ( 0, 128) .. controls ++(315:64) and ++( 90:64) .. ( 88, -16) .. controls ++(270:64) and ++( 60:64) .. cycle; \fill [body] (0,128) ellipse [x radius=80, y radius=56]; \fill [body] (32,160) arc (180:90:64) -- ++(6,-6) coordinate [midway] (@) arc (90:180:64) -- cycle; \fill [body] (@) circle [radius=12]; \begin{scope} \clip (0,-160) .. controls ++(120:64) and ++(270:64) .. (-88, -16) .. controls ++( 90:64) and ++(225:64) .. ( 0, 128) .. controls ++(315:64) and ++( 90:64) .. ( 88, -16) .. controls ++(270:64) and ++( 60:64) .. cycle; \foreach \i in {0,...,2} \fill [stripes] (-256, -160 + \i*80) rectangle ++(512, 40); \end{scope} \foreach \s [count=\i from -1] in {lower wing, upper wing} \fill [style=\s, shift={(16,56)}, rotate=\i*32] (0,0) .. controls ++( 30:64) and ++(180:32) .. (128,56) arc (90:-90:56) .. controls ++(180:32) and ++(330:64) .. cycle; } \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {bee}; \end{tikzpicture} \end{document}
Add a third pair of wings to the bee
A bee with three sets of wings
medium
add
animal
[ "@@ -24 +24 @@\n\n-lower wing/.style={fill=BlueGrey100}, upper wing/.style={fill=BlueGrey50}]{\n+lower wing/.style={fill=BlueGrey200}, upper wing/.style={fill=BlueGrey50}, middle wing/.style={fill=BlueGrey100}]{\n@@ -44 +44 @@\n\n-\\foreach \\s [count=\\i from -1] in {lower wing, upper wing}\n+\\foreach \\s [count=\\i from -1] in {lower wing, middle wing, upper wing}", "@@ -24 +24 @@\n\n-lower wing/.style={fill=BlueGrey100}, upper wing/.style={fill=BlueGrey50}]{\n+lower wing/.style={fill=BlueGrey200}, middle wing/.style={fill=BlueGrey100}, upper wing/.style={fill=BlueGrey50}]{\n@@ -44 +44 @@\n\n-\\foreach \\s [count=\\i from -1] in {lower wing, upper wing}\n+\\foreach \\s [count=\\i from -1] in {lower wing, middle wing, upper wing}", "@@ -24 +24 @@\n\n-lower wing/.style={fill=BlueGrey100}, upper wing/.style={fill=BlueGrey50}]{\n+lower wing/.style={fill=BlueGrey200}, upper wing/.style={fill=BlueGrey50}, middle wing/.style={fill=BlueGrey100}]{\n@@ -44 +44 @@\n\n-\\foreach \\s [count=\\i from -1] in {lower wing, upper wing}\n+\\foreach \\s [count=\\i from -1] in {lower wing, upper wing, middle wing}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n colors alias/.style={color alias/.list/.expanded={#1}},\n execute/.code={#1},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\n\\tikzset{\nbee/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480, rotate=-45, shift=(270:48)]\n\\reflect[\n on left= {colors alias={body as BlueGrey800, stripes as Amber500}},\n on right={colors alias={body as BlueGrey900, stripes as Amber700}, half clip},\n lower wing/.style={fill=BlueGrey§range(50,200,200)}, upper wing/.style={fill=BlueGrey§range(50,200,50)}, §def(middle wing)/.style={fill=BlueGrey§range(50,200,100)}]{\n \\fill [body] (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\fill [body] (0,128) ellipse [x radius=80, y radius=56];\n \\fill [body]\n (32,160) arc (180:90:64) -- ++(6,-6) coordinate [midway] (@)\n arc (90:180:64) -- cycle;\n \\fill [body] (@) circle [radius=12];\n \\begin{scope}\n \\clip (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\foreach \\i in {0,...,2}\n \\fill [stripes] (-256, -160 + \\i*80) rectangle ++(512, 40);\n \\end{scope}\n \\foreach \\s [count=\\i from -1] in {lower wing, middle wing, upper wing}\n \\fill [style=\\s, shift={(16,56)}, rotate=\\i*32]\n (0,0)\n .. controls ++( 30:64) and ++(180:32) .. (128,56)\n arc (90:-90:56)\n .. controls ++(180:32) and ++(330:64) .. cycle;\n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {bee};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n colors alias/.style={color alias/.list/.expanded={#1}},\n execute/.code={#1},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\n\\tikzset{\nbee/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480, rotate=-45, shift=(270:48)]\n\\reflect[\n on left= {colors alias={body as BlueGrey800, stripes as Amber500}},\n on right={colors alias={body as BlueGrey900, stripes as Amber700}, half clip},\n lower wing/.style={fill=BlueGrey§range(50,200,200)}, §def(middle wing)/.style={fill=BlueGrey§range(50,200,100)}, upper wing/.style={fill=BlueGrey§range(50,200,50)}]{\n \\fill [body] (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\fill [body] (0,128) ellipse [x radius=80, y radius=56];\n \\fill [body]\n (32,160) arc (180:90:64) -- ++(6,-6) coordinate [midway] (@)\n arc (90:180:64) -- cycle;\n \\fill [body] (@) circle [radius=12];\n \\begin{scope}\n \\clip (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\foreach \\i in {0,...,2}\n \\fill [stripes] (-256, -160 + \\i*80) rectangle ++(512, 40);\n \\end{scope}\n \\foreach \\s [count=\\i from -1] in {lower wing, middle wing, upper wing}\n \\fill [style=\\s, shift={(16,56)}, rotate=\\i*32]\n (0,0)\n .. controls ++( 30:64) and ++(180:32) .. (128,56)\n arc (90:-90:56)\n .. controls ++(180:32) and ++(330:64) .. cycle;\n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {bee};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n colors alias/.style={color alias/.list/.expanded={#1}},\n execute/.code={#1},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\n\\tikzset{\nbee/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480, rotate=-45, shift=(270:48)]\n\\reflect[\n on left= {colors alias={body as BlueGrey800, stripes as Amber500}},\n on right={colors alias={body as BlueGrey900, stripes as Amber700}, half clip},\n lower wing/.style={fill=BlueGrey§range(50,200,200)}, upper wing/.style={fill=BlueGrey§range(50,200,50)}, §def(middle wing)/.style={fill=BlueGrey§range(50,200,100)}]{\n \\fill [body] (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\fill [body] (0,128) ellipse [x radius=80, y radius=56];\n \\fill [body]\n (32,160) arc (180:90:64) -- ++(6,-6) coordinate [midway] (@)\n arc (90:180:64) -- cycle;\n \\fill [body] (@) circle [radius=12];\n \\begin{scope}\n \\clip (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\foreach \\i in {0,...,2}\n \\fill [stripes] (-256, -160 + \\i*80) rectangle ++(512, 40);\n \\end{scope}\n \\foreach \\s [count=\\i from -1] in {lower wing, upper wing, middle wing}\n \\fill [style=\\s, shift={(16,56)}, rotate=\\i*32]\n (0,0)\n .. controls ++( 30:64) and ++(180:32) .. (128,56)\n arc (90:-90:56)\n .. controls ++(180:32) and ++(330:64) .. cycle;\n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {bee};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n colors alias/.style={color alias/.list/.expanded={#1}},\n execute/.code={#1},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\n\\tikzset{\nbee/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480, rotate=-45, shift=(270:48)]\n\\reflect[\n on left= {colors alias={body as BlueGrey800, stripes as Amber500}},\n on right={colors alias={body as BlueGrey900, stripes as Amber700}, half clip},\n lower wing/.style={fill=BlueGrey200}, upper wing/.style={fill=BlueGrey50}, middle wing/.style={fill=BlueGrey100}]{\n \\fill [body] (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\fill [body] (0,128) ellipse [x radius=80, y radius=56];\n \\fill [body]\n (32,160) arc (180:90:64) -- ++(6,-6) coordinate [midway] (@)\n arc (90:180:64) -- cycle;\n \\fill [body] (@) circle [radius=12];\n \\begin{scope}\n \\clip (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\foreach \\i in {0,...,2}\n \\fill [stripes] (-256, -160 + \\i*80) rectangle ++(512, 40);\n \\end{scope}\n \\foreach \\s [count=\\i from -1] in {lower wing, middle wing, upper wing}\n \\fill [style=\\s, shift={(16,56)}, rotate=\\i*32]\n (0,0)\n .. controls ++( 30:64) and ++(180:32) .. (128,56)\n arc (90:-90:56)\n .. controls ++(180:32) and ++(330:64) .. cycle;\n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {bee};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n colors alias/.style={color alias/.list/.expanded={#1}},\n execute/.code={#1},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\n\\tikzset{\nbee/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480, rotate=-45, shift=(270:48)]\n\\reflect[\n on left= {colors alias={body as BlueGrey800, stripes as Amber500}},\n on right={colors alias={body as BlueGrey900, stripes as Amber700}, half clip},\n lower wing/.style={fill=BlueGrey200}, middle wing/.style={fill=BlueGrey100}, upper wing/.style={fill=BlueGrey50}]{\n \\fill [body] (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\fill [body] (0,128) ellipse [x radius=80, y radius=56];\n \\fill [body]\n (32,160) arc (180:90:64) -- ++(6,-6) coordinate [midway] (@)\n arc (90:180:64) -- cycle;\n \\fill [body] (@) circle [radius=12];\n \\begin{scope}\n \\clip (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\foreach \\i in {0,...,2}\n \\fill [stripes] (-256, -160 + \\i*80) rectangle ++(512, 40);\n \\end{scope}\n \\foreach \\s [count=\\i from -1] in {lower wing, middle wing, upper wing}\n \\fill [style=\\s, shift={(16,56)}, rotate=\\i*32]\n (0,0)\n .. controls ++( 30:64) and ++(180:32) .. (128,56)\n arc (90:-90:56)\n .. controls ++(180:32) and ++(330:64) .. cycle;\n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {bee};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n colors alias/.style={color alias/.list/.expanded={#1}},\n execute/.code={#1},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\n\\tikzset{\nbee/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480, rotate=-45, shift=(270:48)]\n\\reflect[\n on left= {colors alias={body as BlueGrey800, stripes as Amber500}},\n on right={colors alias={body as BlueGrey900, stripes as Amber700}, half clip},\n lower wing/.style={fill=BlueGrey200}, upper wing/.style={fill=BlueGrey50}, middle wing/.style={fill=BlueGrey100}]{\n \\fill [body] (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\fill [body] (0,128) ellipse [x radius=80, y radius=56];\n \\fill [body]\n (32,160) arc (180:90:64) -- ++(6,-6) coordinate [midway] (@)\n arc (90:180:64) -- cycle;\n \\fill [body] (@) circle [radius=12];\n \\begin{scope}\n \\clip (0,-160)\n .. controls ++(120:64) and ++(270:64) .. (-88, -16)\n .. controls ++( 90:64) and ++(225:64) .. ( 0, 128)\n .. controls ++(315:64) and ++( 90:64) .. ( 88, -16)\n .. controls ++(270:64) and ++( 60:64) .. cycle;\n \\foreach \\i in {0,...,2}\n \\fill [stripes] (-256, -160 + \\i*80) rectangle ++(512, 40);\n \\end{scope}\n \\foreach \\s [count=\\i from -1] in {lower wing, upper wing, middle wing}\n \\fill [style=\\s, shift={(16,56)}, rotate=\\i*32]\n (0,0)\n .. controls ++( 30:64) and ++(180:32) .. (128,56)\n arc (90:-90:56)\n .. controls ++(180:32) and ++(330:64) .. cycle;\n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {bee};\n\\end{tikzpicture}\n\\end{document}" ]
[ 1 ]
boson_square
\documentclass[tikz,border=5]{standalone} \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{amssymb} \usepackage{color} \usepackage[]{xcolor} \usepackage{tikz} \usepackage{tikz} \usepackage{tikz-feynman} \tikzfeynmanset{warn luatex=false} \begin{document} \begin{tikzpicture}[thick, transform shape] \begin{feynman} \vertex(ce); \vertex [below = 0.1 of ce] (ce01){\((b)\)}; \vertex [left = 0.5 of ce] (l01); \vertex [right = 0.5 of ce] (r01); \vertex [above = 1 of ce] (c02); \vertex [left = 1 of ce] (c12){\(k\)}; \vertex [right = 1 of ce] (c22){\(k\)}; \vertex [above left = 1 of ce] (c32){\(p_1\)}; \vertex [above right = 1 of ce] (c42){\(p_2\)}; \vertex[left = 3 of ce](ce2); \vertex [below = 0.1 of ce2] (ce02){\((a)\)}; \vertex [above = 1 of ce2] (c01); \vertex [left = 1 of ce2] (c11){\(k\)}; \vertex [right = 1 of ce2] (c21){\(k\)}; \vertex [above left = 1 of ce2] (c31){\(p_1\)}; \vertex [above right = 1 of ce2] (c41){\(p_2\)}; \vertex[right = 3 of ce](ce3); \vertex [below = 0.1 of ce3] (ce03){\((c)\)}; \vertex [left = 0.5 of ce3] (l02); \vertex [right = 0.5 of ce3] (r02); \vertex [above = 1 of ce3] (c03); \vertex [left = 1 of ce3] (c13){\(k\)}; \vertex [right = 1 of ce3] (c23){\(k\)}; \vertex [above left = 1 of ce3] (c33){\(p_1\)}; \vertex [above right = 1 of ce3] (c43){\(p_2\)}; \vertex[below = 2 of ce](ce4); \vertex [below = 0.1 of ce4] (ce04){\((d)\)}; \vertex[above = 0.5 of ce4](ce5); \vertex [above = 1 of ce4] (c04); \vertex [left = 1 of ce4] (c14){\(k\)}; \vertex [right = 1 of ce4] (c24){\(k\)}; \vertex [above left = 1 of ce4] (c34){\(p_1\)}; \vertex [above right = 1 of ce4] (c44){\(p_2\)}; \diagram* { (c12)--(c22), (c11) --(c21), (c13) --(c23), (c14) --(c24), (ce2) - - [boson, edge label'=\(\)](c31), (ce2) - - [boson, edge label'=\(\)](c41), (l01)- - [boson, edge label'=\(\)](c32), (r01)- - [boson, edge label'=\(\)](c42), (l02)- - [boson, edge label'=\(\)](c43), (r02)- - [boson, edge label'=\(\)](c33), (ce5)- - [boson, edge label'=\(\)](ce4), (ce5)- - [boson, edge label'=\(\)](c34), (ce5)- - [boson, edge label'=\(\)](c44), }; \begin{scope}[decoration={ markings, mark=at position 0.6 with {\arrow[>=Stealth]{>}}}] \draw[postaction={decorate}] (c12) -- node [right=4pt] {}(c22); \draw[postaction={decorate}] (c13) -- node [right=4pt] {}(c23); \end{scope} \begin{scope}[decoration={ markings, mark=at position 0.3 with {\arrow[>=Stealth]{>}}}] \draw[postaction={decorate}] (c11) -- node [right=4pt] {}(c21); \draw[postaction={decorate}] (c14) -- node [right=4pt] {}(c24); \end{scope} \begin{scope}[decoration={ markings, mark=at position 0.9 with {\arrow[>=Stealth]{>}}}] \draw[postaction={decorate}] (c11) -- node [right=4pt] {}(c21); \draw[postaction={decorate}] (c14) -- node [right=4pt] {}(c24); \end{scope} \begin{scope}[decoration={ markings, mark=at position 0.2 with {\arrow[>=Stealth]{>}}}] \draw[postaction={decorate}] (c12) -- node [right=4pt] {}(c22); \draw[postaction={decorate}] (c13) -- node [right=4pt] {}(c23); \end{scope} \begin{scope}[decoration={ markings, mark=at position 0.9 with {\arrow[>=Stealth]{>}}}] \draw[postaction={decorate}] (c12) -- node [right=4pt] {}(c22); \draw[postaction={decorate}] (c13) -- node [right=4pt] {}(c23); \end{scope} \end{feynman} \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{amssymb} \usepackage{color} \usepackage[]{xcolor} \usepackage{tikz} \usepackage{tikz} \usepackage{tikz-feynman} \tikzfeynmanset{warn luatex=false} \begin{document} \begin{tikzpicture}[thick, transform shape] \begin{feynman} %%Second \vertex(ce); \vertex [below = 0.1 of ce] (ce01){\((b)\)}; \vertex [left = 0.5 of ce] (l01); \vertex [right = 0.5 of ce] (r01); \vertex [above = 1 of ce] (c02); \vertex [left = 1 of ce] (c12){\(k\)}; \vertex [right = 1 of ce] (c22){\(k\)}; \vertex [above left = 1 of ce] (c32){\(p_1\)}; \vertex [above right = 1 of ce] (c42){\(p_2\)}; \vertex[left = 3 of ce](ce2); \vertex [below = 0.1 of ce2] (ce02){\((a)\)}; \vertex [above = 1 of ce2] (c01); \vertex [left = 1 of ce2] (c11){\(k\)}; \vertex [right = 1 of ce2] (c21){\(k\)}; \vertex [above left = 1 of ce2] (c31){\(p_1\)}; \vertex [above right = 1 of ce2] (c41){\(p_2\)}; %%Third \vertex[right = 3 of ce](ce3); \vertex [below = 0.1 of ce3] (ce03){\((c)\)}; \vertex [left = 0.5 of ce3] (l02); \vertex [right = 0.5 of ce3] (r02); \vertex [above = 1 of ce3] (c03); \vertex [left = 1 of ce3] (c13){\(k\)}; \vertex [right = 1 of ce3] (c23){\(k\)}; \vertex [above left = 1 of ce3] (c33){\(p_1\)}; \vertex [above right = 1 of ce3] (c43){\(p_2\)}; %%FOurth \vertex[below = 2 of ce](ce4); \vertex [below = 0.1 of ce4] (ce04){\((d)\)}; \vertex[above = 0.5 of ce4](ce5); \vertex [above = 1 of ce4] (c04); \vertex [left = 1 of ce4] (c14){\(k\)}; \vertex [right = 1 of ce4] (c24){\(k\)}; \vertex [above left = 1 of ce4] (c34){\(p_1\)}; \vertex [above right = 1 of ce4] (c44){\(p_2\)}; \diagram* { (c12)--(c22), (c11) --(c21), (c13) --(c23), (c14) --(c24), (ce2) - - [boson, edge label'=\(\)](c31), (ce2) - - [boson, edge label'=\(\)](c41), (l01)- - [boson, edge label'=\(\)](c32), (r01)- - [boson, edge label'=\(\)](c42), (l02)- - [boson, edge label'=\(\)](c43), (r02)- - [boson, edge label'=\(\)](c33), (ce5)- - [boson, edge label'=\(\)](ce4), (ce5)- - [boson, edge label'=\(\)](c34), (ce5)- - [boson, edge label'=\(\)](c44), }; \begin{scope}[decoration={ markings, mark=at position 0.6 with {\arrow[>=Stealth]{>}}}] \draw[postaction={decorate}] (c12) -- node [right=4pt] {}(c22); \draw[postaction={decorate}] (c13) -- node [right=4pt] {}(c23); \end{scope} \begin{scope}[decoration={ markings, mark=at position 0.3 with {\arrow[>=Stealth]{>}}}] \draw[postaction={decorate}] (c11) -- node [right=4pt] {}(c21); \draw[postaction={decorate}] (c14) -- node [right=4pt] {}(c24); \end{scope} \begin{scope}[decoration={ markings, mark=at position 0.9 with {\arrow[>=Stealth]{>}}}] \draw[postaction={decorate}] (c11) -- node [right=4pt] {}(c21); \draw[postaction={decorate}] (c14) -- node [right=4pt] {}(c24); \end{scope} \begin{scope}[decoration={ markings, mark=at position 0.2 with {\arrow[>=Stealth]{>}}}] \draw[postaction={decorate}] (c12) -- node [right=4pt] {}(c22); \draw[postaction={decorate}] (c13) -- node [right=4pt] {}(c23); \end{scope} \begin{scope}[decoration={ markings, mark=at position 0.9 with {\arrow[>=Stealth]{>}}}] \draw[postaction={decorate}] (c12) -- node [right=4pt] {}(c22); \draw[postaction={decorate}] (c13) -- node [right=4pt] {}(c23); \end{scope} \end{feynman} \end{tikzpicture} \end{document}
Put the c diagram under a.
Feynman diagram in a grid layout
easy
update
scientific
[ "@@ -31 +31 @@\n\n-\\vertex[right = 3 of ce](ce3);\n+\\vertex[below = 2 of ce2](ce3);" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[utf8x]{inputenc}\n\\usepackage[T1]{fontenc}\n\\usepackage{amsmath}\n\\usepackage{amssymb}\n\\usepackage{color}\n\\usepackage[]{xcolor}\n\\usepackage{tikz}\n\\usepackage{tikz}\n\\usepackage{tikz-feynman}\n\\tikzfeynmanset{warn luatex=false}\n\n\\begin{document}\n\n\\begin{tikzpicture}[thick, transform shape]\n\\begin{feynman}\n\\vertex(ce);\n\\vertex [below = 0.1 of ce] (ce01){\\((b)\\)};\n\\vertex [left = 0.5 of ce] (l01);\n\\vertex [right = 0.5 of ce] (r01);\n\\vertex [above = 1 of ce] (c02);\n\\vertex [left = 1 of ce] (c12){\\(k\\)};\n\\vertex [right = 1 of ce] (c22){\\(k\\)};\n\\vertex [above left = 1 of ce] (c32){\\(p_1\\)};\n\\vertex [above right = 1 of ce] (c42){\\(p_2\\)};\n\n\\vertex[left = 3 of ce](ce2);\n\\vertex [below = 0.1 of ce2] (ce02){\\((a)\\)};\n\\vertex [above = 1 of ce2] (c01);\n\\vertex [left = 1 of ce2] (c11){\\(k\\)};\n\\vertex [right = 1 of ce2] (c21){\\(k\\)};\n\\vertex [above left = 1 of ce2] (c31){\\(p_1\\)};\n\\vertex [above right = 1 of ce2] (c41){\\(p_2\\)};\n\n\\vertex[below = 2 of ce2](ce3);\n\\vertex [below = 0.1 of ce3] (ce03){\\((c)\\)};\n\\vertex [left = 0.5 of ce3] (l02);\n\\vertex [right = 0.5 of ce3] (r02);\n\n\\vertex [above = 1 of ce3] (c03);\n\\vertex [left = 1 of ce3] (c13){\\(k\\)};\n\\vertex [right = 1 of ce3] (c23){\\(k\\)};\n\\vertex [above left = 1 of ce3] (c33){\\(p_1\\)};\n\\vertex [above right = 1 of ce3] (c43){\\(p_2\\)};\n\n\\vertex[below = 2 of ce](ce4);\n\\vertex [below = 0.1 of ce4] (ce04){\\((d)\\)};\n\\vertex[above = 0.5 of ce4](ce5);\n\n\\vertex [above = 1 of ce4] (c04);\n\\vertex [left = 1 of ce4] (c14){\\(k\\)};\n\\vertex [right = 1 of ce4] (c24){\\(k\\)};\n\\vertex [above left = 1 of ce4] (c34){\\(p_1\\)};\n\\vertex [above right = 1 of ce4] (c44){\\(p_2\\)};\n\n\\diagram* {\n(c12)--(c22),\n(c11) --(c21),\n(c13) --(c23),\n(c14) --(c24),\n(ce2) - - [boson, edge label'=\\(\\)](c31),\n(ce2) - - [boson, edge label'=\\(\\)](c41),\n(l01)- - [boson, edge label'=\\(\\)](c32),\n(r01)- - [boson, edge label'=\\(\\)](c42),\n(l02)- - [boson, edge label'=\\(\\)](c43),\n(r02)- - [boson, edge label'=\\(\\)](c33),\n(ce5)- - [boson, edge label'=\\(\\)](ce4),\n(ce5)- - [boson, edge label'=\\(\\)](c34),\n(ce5)- - [boson, edge label'=\\(\\)](c44),\n};\n\\begin{scope}[decoration={\n\t\tmarkings,\n\t\tmark=at position 0.6 with {\\arrow[>=Stealth]{>}}}] \n\\draw[postaction={decorate}] (c12) -- node [right=4pt] {}(c22);\n\\draw[postaction={decorate}] (c13) -- node [right=4pt] {}(c23);\n\\end{scope}\n\\begin{scope}[decoration={\n\t\tmarkings,\n\t\tmark=at position 0.3 with {\\arrow[>=Stealth]{>}}}] \n\\draw[postaction={decorate}] (c11) -- node [right=4pt] {}(c21);\n\\draw[postaction={decorate}] (c14) -- node [right=4pt] {}(c24);\n\\end{scope}\n\\begin{scope}[decoration={\n\t\tmarkings,\n\t\tmark=at position 0.9 with {\\arrow[>=Stealth]{>}}}] \n\\draw[postaction={decorate}] (c11) -- node [right=4pt] {}(c21);\n\\draw[postaction={decorate}] (c14) -- node [right=4pt] {}(c24);\n\\end{scope}\n\\begin{scope}[decoration={\n\t\tmarkings,\n\t\tmark=at position 0.2 with {\\arrow[>=Stealth]{>}}}] \n\\draw[postaction={decorate}] (c12) -- node [right=4pt] {}(c22);\n\\draw[postaction={decorate}] (c13) -- node [right=4pt] {}(c23);\n\\end{scope}\n\\begin{scope}[decoration={\n\t\tmarkings,\n\t\tmark=at position 0.9 with {\\arrow[>=Stealth]{>}}}] \n\\draw[postaction={decorate}] (c12) -- node [right=4pt] {}(c22);\n\\draw[postaction={decorate}] (c13) -- node [right=4pt] {}(c23);\n\\end{scope}\n\\end{feynman}\n\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[utf8x]{inputenc}\n\\usepackage[T1]{fontenc}\n\\usepackage{amsmath}\n\\usepackage{amssymb}\n\\usepackage{color}\n\\usepackage[]{xcolor}\n\\usepackage{tikz}\n\\usepackage{tikz}\n\\usepackage{tikz-feynman}\n\\tikzfeynmanset{warn luatex=false}\n\n\\begin{document}\n\n\\begin{tikzpicture}[thick, transform shape]\n\\begin{feynman}\n\\vertex(ce);\n\\vertex [below = 0.1 of ce] (ce01){\\((b)\\)};\n\\vertex [left = 0.5 of ce] (l01);\n\\vertex [right = 0.5 of ce] (r01);\n\\vertex [above = 1 of ce] (c02);\n\\vertex [left = 1 of ce] (c12){\\(k\\)};\n\\vertex [right = 1 of ce] (c22){\\(k\\)};\n\\vertex [above left = 1 of ce] (c32){\\(p_1\\)};\n\\vertex [above right = 1 of ce] (c42){\\(p_2\\)};\n\n\\vertex[left = 3 of ce](ce2);\n\\vertex [below = 0.1 of ce2] (ce02){\\((a)\\)};\n\\vertex [above = 1 of ce2] (c01);\n\\vertex [left = 1 of ce2] (c11){\\(k\\)};\n\\vertex [right = 1 of ce2] (c21){\\(k\\)};\n\\vertex [above left = 1 of ce2] (c31){\\(p_1\\)};\n\\vertex [above right = 1 of ce2] (c41){\\(p_2\\)};\n\n\\vertex[below = 2 of ce2](ce3);\n\\vertex [below = 0.1 of ce3] (ce03){\\((c)\\)};\n\\vertex [left = 0.5 of ce3] (l02);\n\\vertex [right = 0.5 of ce3] (r02);\n\n\\vertex [above = 1 of ce3] (c03);\n\\vertex [left = 1 of ce3] (c13){\\(k\\)};\n\\vertex [right = 1 of ce3] (c23){\\(k\\)};\n\\vertex [above left = 1 of ce3] (c33){\\(p_1\\)};\n\\vertex [above right = 1 of ce3] (c43){\\(p_2\\)};\n\n\\vertex[below = 2 of ce](ce4);\n\\vertex [below = 0.1 of ce4] (ce04){\\((d)\\)};\n\\vertex[above = 0.5 of ce4](ce5);\n\n\\vertex [above = 1 of ce4] (c04);\n\\vertex [left = 1 of ce4] (c14){\\(k\\)};\n\\vertex [right = 1 of ce4] (c24){\\(k\\)};\n\\vertex [above left = 1 of ce4] (c34){\\(p_1\\)};\n\\vertex [above right = 1 of ce4] (c44){\\(p_2\\)};\n\n\\diagram* {\n(c12)--(c22),\n(c11) --(c21),\n(c13) --(c23),\n(c14) --(c24),\n(ce2) - - [boson, edge label'=\\(\\)](c31),\n(ce2) - - [boson, edge label'=\\(\\)](c41),\n(l01)- - [boson, edge label'=\\(\\)](c32),\n(r01)- - [boson, edge label'=\\(\\)](c42),\n(l02)- - [boson, edge label'=\\(\\)](c43),\n(r02)- - [boson, edge label'=\\(\\)](c33),\n(ce5)- - [boson, edge label'=\\(\\)](ce4),\n(ce5)- - [boson, edge label'=\\(\\)](c34),\n(ce5)- - [boson, edge label'=\\(\\)](c44),\n};\n\\begin{scope}[decoration={\n\t\tmarkings,\n\t\tmark=at position 0.6 with {\\arrow[>=Stealth]{>}}}] \n\\draw[postaction={decorate}] (c12) -- node [right=4pt] {}(c22);\n\\draw[postaction={decorate}] (c13) -- node [right=4pt] {}(c23);\n\\end{scope}\n\\begin{scope}[decoration={\n\t\tmarkings,\n\t\tmark=at position 0.3 with {\\arrow[>=Stealth]{>}}}] \n\\draw[postaction={decorate}] (c11) -- node [right=4pt] {}(c21);\n\\draw[postaction={decorate}] (c14) -- node [right=4pt] {}(c24);\n\\end{scope}\n\\begin{scope}[decoration={\n\t\tmarkings,\n\t\tmark=at position 0.9 with {\\arrow[>=Stealth]{>}}}] \n\\draw[postaction={decorate}] (c11) -- node [right=4pt] {}(c21);\n\\draw[postaction={decorate}] (c14) -- node [right=4pt] {}(c24);\n\\end{scope}\n\\begin{scope}[decoration={\n\t\tmarkings,\n\t\tmark=at position 0.2 with {\\arrow[>=Stealth]{>}}}] \n\\draw[postaction={decorate}] (c12) -- node [right=4pt] {}(c22);\n\\draw[postaction={decorate}] (c13) -- node [right=4pt] {}(c23);\n\\end{scope}\n\\begin{scope}[decoration={\n\t\tmarkings,\n\t\tmark=at position 0.9 with {\\arrow[>=Stealth]{>}}}] \n\\draw[postaction={decorate}] (c12) -- node [right=4pt] {}(c22);\n\\draw[postaction={decorate}] (c13) -- node [right=4pt] {}(c23);\n\\end{scope}\n\\end{feynman}\n\\end{tikzpicture}\n\n\\end{document}" ]
[ 23 ]
box_other_measure
\documentclass[tikz,border=5]{standalone} \usepackage{amsmath, amsthm, amssymb,enumerate} \usepackage{tikz} \usetikzlibrary{shapes,arrows,fit,calc,positioning,patterns} \usepackage{xcolor} \usepackage{tikz} \usepackage{pgfplots,amsmath} \usetikzlibrary{shapes,arrows,fit,calc,positioning,patterns,decorations.pathmorphing,decorations.pathreplacing} \tikzset{ brokenrect/.style={ append after command={ \pgfextra{ \path[draw,#1] decorate[decoration={zigzag,segment length=0.3em, amplitude=.7mm}] {(\tikzlastnode.north east)--(\tikzlastnode.south east)} -- (\tikzlastnode.south west)|-cycle; }}}} \tikzset{ brokenrect2/.style={ append after command={ \pgfextra{ \path[draw,#1] decorate[decoration={zigzag,segment length=0.3em, amplitude=.7mm}] {(\tikzlastnode.north west)--(\tikzlastnode.south west)} -- (\tikzlastnode.south east)|-cycle; }}}} \tikzset{cross/.style={cross out, draw=black, minimum size=2*(#1-\pgflinewidth), inner sep=0pt, outer sep=0pt}, cross/.default={1pt}} \begin{document} \begin{tikzpicture} \def\ox{0} \def\oy{0} \coordinate(o) at (\ox,\oy); \def\tl{10.0} \draw [-latex](\ox,\oy) node[above left]{} -- (\ox+\tl,\oy) node[above,font=\small]{$t$}; \def\pi{0.5} \tikzstyle{mystyle}=[draw, minimum height=0.5cm,rectangle, inner sep=0pt,font=\scriptsize] \tikzstyle{mystyle2}=[draw = none, minimum height=0.25cm,rectangle, inner sep=0pt,font=\scriptsize] \draw (0,0) -- (0,-0.2) node[below] {\tiny $S_1$}; \draw (\pi,0) -- (\pi,-0.2) node[below] {\tiny $S_2$}; \draw (2.5,0) -- (2.5,-0.2) node[below] {\tiny $S_3$}; \draw (7.5,0) -- (7.5,-0.2) node[below] {\tiny $C_1$}; \draw (4.75,0) -- (4.75,-0.2) node[below] {\tiny $C_2$}; \draw (9.5,0) -- (9.5,-0.2) node[below] {\tiny $C_3$}; \draw [<->] (\pi,0.65)--node[above]{\small $L_1$}(\pi+5,0.65); \node(b1) [above right=-0.01cm and -0.01cm of o,mystyle, minimum width=\pi cm,pattern=north west lines, pattern color=red]{}; \node(b1_t) [mystyle2, fill = white] at (b1.center) {$a_1$}; \node(b2) [right=5cm of b1,mystyle, minimum width=2 cm,pattern=north west lines, pattern color=red]{}; \node(b2_t) [mystyle2, fill = white] at (b2.center) {$b_1$}; \node(b3) [right=0cm of b1,mystyle, minimum width=1.5 cm,pattern=north east lines, pattern color=green]{}; \node(b3_t) [mystyle2, fill = white] at (b3.center) {$a_2$}; \node(b4) [right=2cm of b3,mystyle, minimum width=0.75 cm,pattern=north east lines, pattern color=green]{}; \node(b4_t) [mystyle2, fill = white] at (b4.center) {$b_2$}; \node(b5) [right=0.5cm of b3,mystyle, minimum width=1 cm,pattern=vertical lines, pattern color=yellow]{}; \node(b5_t) [mystyle2, fill = white] at (b5.center) {$a_3$}; \node(b6) [right=1cm of b2,mystyle, minimum width=1 cm,pattern=vertical lines, pattern color=yellow]{}; \node(b6_t) [mystyle2, fill = white] at (b6.center) {$b_3$}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{amsmath, amsthm, amssymb,enumerate} \usepackage{tikz} \usetikzlibrary{shapes,arrows,fit,calc,positioning,patterns} \usepackage{xcolor} \usepackage{tikz} \usepackage{pgfplots,amsmath} \usetikzlibrary{shapes,arrows,fit,calc,positioning,patterns,decorations.pathmorphing,decorations.pathreplacing} \tikzset{ brokenrect/.style={ append after command={ \pgfextra{ \path[draw,#1] decorate[decoration={zigzag,segment length=0.3em, amplitude=.7mm}] {(\tikzlastnode.north east)--(\tikzlastnode.south east)} -- (\tikzlastnode.south west)|-cycle; }}}} \tikzset{ brokenrect2/.style={ append after command={ \pgfextra{ \path[draw,#1] decorate[decoration={zigzag,segment length=0.3em, amplitude=.7mm}] {(\tikzlastnode.north west)--(\tikzlastnode.south west)} -- (\tikzlastnode.south east)|-cycle; }}}} \tikzset{cross/.style={cross out, draw=black, minimum size=2*(#1-\pgflinewidth), inner sep=0pt, outer sep=0pt}, %default radius will be 1pt. cross/.default={1pt}} \begin{document} \begin{tikzpicture} \def\ox{0} \def\oy{0} \coordinate(o) at (\ox,\oy); %axis \def\tl{10.0} \draw [-latex](\ox,\oy) node[above left]{} -- (\ox+\tl,\oy) node[above,font=\small]{$t$}; %definitions for jobs \def\pi{0.5} \tikzstyle{mystyle}=[draw, minimum height=0.5cm,rectangle, inner sep=0pt,font=\scriptsize] \tikzstyle{mystyle2}=[draw = none, minimum height=0.25cm,rectangle, inner sep=0pt,font=\scriptsize] \draw (0,0) -- (0,-0.2) node[below] {\tiny $S_1$}; \draw (\pi,0) -- (\pi,-0.2) node[below] {\tiny $S_2$}; \draw (2.5,0) -- (2.5,-0.2) node[below] {\tiny $S_3$}; \draw (7.5,0) -- (7.5,-0.2) node[below] {\tiny $C_1$}; \draw (4.75,0) -- (4.75,-0.2) node[below] {\tiny $C_2$}; \draw (9.5,0) -- (9.5,-0.2) node[below] {\tiny $C_3$}; \draw [<->] (\pi,0.65)--node[above]{\small $L_1$}(\pi+5,0.65); %jobs \node(b1) [above right=-0.01cm and -0.01cm of o,mystyle, minimum width=\pi cm,pattern=north west lines, pattern color=red]{}; \node(b1_t) [mystyle2, fill = white] at (b1.center) {$a_1$}; \node(b2) [right=5cm of b1,mystyle, minimum width=2 cm,pattern=north west lines, pattern color=red]{}; \node(b2_t) [mystyle2, fill = white] at (b2.center) {$b_1$}; \node(b3) [right=0cm of b1,mystyle, minimum width=1.5 cm,pattern=north east lines, pattern color=green]{}; \node(b3_t) [mystyle2, fill = white] at (b3.center) {$a_2$}; \node(b4) [right=2cm of b3,mystyle, minimum width=0.75 cm,pattern=north east lines, pattern color=green]{}; \node(b4_t) [mystyle2, fill = white] at (b4.center) {$b_2$}; \node(b5) [right=0.5cm of b3,mystyle, minimum width=1 cm,pattern=vertical lines, pattern color=yellow]{}; \node(b5_t) [mystyle2, fill = white] at (b5.center) {$a_3$}; \node(b6) [right=1cm of b2,mystyle, minimum width=1 cm,pattern=vertical lines, pattern color=yellow]{}; \node(b6_t) [mystyle2, fill = white] at (b6.center) {$b_3$}; \end{tikzpicture} \end{document}
Add another interval L2, going from the end of b1 to the end of b3.
colored Boxes placed on a t axis, with a L2 measure on the top right.
easy
add
scientific
[ "@@ -43,0 +44 @@\n\n+\\draw [<->] (7.5,0.65)--node[above]{\\small $L_2$}(9.5,0.65);" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath, amsthm, amssymb,enumerate}\n\\usepackage{tikz}\n\\usetikzlibrary{shapes,arrows,fit,calc,positioning,patterns}\n\\usepackage{xcolor}\n\\usepackage{tikz}\n\\usepackage{pgfplots,amsmath}\n\\usetikzlibrary{shapes,arrows,fit,calc,positioning,patterns,decorations.pathmorphing,decorations.pathreplacing}\n\\tikzset{ brokenrect/.style={\n\n append after command={\n\n \\pgfextra{\n\n \\path[draw,#1]\n\n decorate[decoration={zigzag,segment length=0.3em, amplitude=.7mm}]\n\n {(\\tikzlastnode.north east)--(\\tikzlastnode.south east)} \n\n -- (\\tikzlastnode.south west)|-cycle;\n\n }}}}\n\\tikzset{ brokenrect2/.style={\n\n append after command={\n\n \\pgfextra{\n\n \\path[draw,#1]\n\n decorate[decoration={zigzag,segment length=0.3em, amplitude=.7mm}]\n\n {(\\tikzlastnode.north west)--(\\tikzlastnode.south west)} \n\n -- (\\tikzlastnode.south east)|-cycle;\n\n }}}}\n\\tikzset{cross/.style={cross out, draw=black, minimum size=2*(#1-\\pgflinewidth), inner sep=0pt, outer sep=0pt},\ncross/.default={1pt}}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n\n\\def\\ox{0} \n\\def\\oy{0} \n\\coordinate(o) at (\\ox,\\oy);\n\n\\def\\tl{10.0}\n\\draw [-latex](\\ox,\\oy) node[above left]{} -- (\\ox+\\tl,\\oy) node[above,font=\\small]{$t$};\n\n\n\n\\def\\pi{0.5}\n\\tikzstyle{mystyle}=[draw, minimum height=0.5cm,rectangle, inner sep=0pt,font=\\scriptsize]\n\\tikzstyle{mystyle2}=[draw = none, minimum height=0.25cm,rectangle, inner sep=0pt,font=\\scriptsize]\n\n\n\\draw (0,0) -- (0,-0.2) node[below] {\\tiny $S_1$};\n\\draw (\\pi,0) -- (\\pi,-0.2) node[below] {\\tiny $S_2$};\n\\draw (2.5,0) -- (2.5,-0.2) node[below] {\\tiny $S_3$};\n\\draw (7.5,0) -- (7.5,-0.2) node[below] {\\tiny $C_1$};\n\\draw (4.75,0) -- (4.75,-0.2) node[below] {\\tiny $C_2$};\n\\draw (9.5,0) -- (9.5,-0.2) node[below] {\\tiny $C_3$};\n\n\\draw [<->] (\\pi,0.65)--node[above]{\\small $L_1$}(\\pi+5,0.65);\n\\draw [<->] (7.5,0.65)--node[above]{\\small $L_2$}(9.5,0.65);\n\n\\node(b1) [above right=-0.01cm and -0.01cm of o,mystyle, minimum width=\\pi cm,pattern=north west lines, pattern color=red]{};\n\\node(b1_t) [mystyle2, fill = white] at (b1.center) {$a_1$};\n\\node(b2) [right=5cm of b1,mystyle, minimum width=2 cm,pattern=north west lines, pattern color=red]{};\n\\node(b2_t) [mystyle2, fill = white] at (b2.center) {$b_1$};\n\\node(b3) [right=0cm of b1,mystyle, minimum width=1.5 cm,pattern=north east lines, pattern color=green]{};\n\\node(b3_t) [mystyle2, fill = white] at (b3.center) {$a_2$};\n\\node(b4) [right=2cm of b3,mystyle, minimum width=0.75 cm,pattern=north east lines, pattern color=green]{};\n\\node(b4_t) [mystyle2, fill = white] at (b4.center) {$b_2$};\n\\node(b5) [right=0.5cm of b3,mystyle, minimum width=1 cm,pattern=vertical lines, pattern color=yellow]{};\n\\node(b5_t) [mystyle2, fill = white] at (b5.center) {$a_3$};\n\\node(b6) [right=1cm of b2,mystyle, minimum width=1 cm,pattern=vertical lines, pattern color=yellow]{};\n\\node(b6_t) [mystyle2, fill = white] at (b6.center) {$b_3$};\n\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath, amsthm, amssymb,enumerate}\n\\usepackage{tikz}\n\\usetikzlibrary{shapes,arrows,fit,calc,positioning,patterns}\n\\usepackage{xcolor}\n\\usepackage{tikz}\n\\usepackage{pgfplots,amsmath}\n\\usetikzlibrary{shapes,arrows,fit,calc,positioning,patterns,decorations.pathmorphing,decorations.pathreplacing}\n\\tikzset{ brokenrect/.style={\n\n append after command={\n\n \\pgfextra{\n\n \\path[draw,#1]\n\n decorate[decoration={zigzag,segment length=0.3em, amplitude=.7mm}]\n\n {(\\tikzlastnode.north east)--(\\tikzlastnode.south east)} \n\n -- (\\tikzlastnode.south west)|-cycle;\n\n }}}}\n\\tikzset{ brokenrect2/.style={\n\n append after command={\n\n \\pgfextra{\n\n \\path[draw,#1]\n\n decorate[decoration={zigzag,segment length=0.3em, amplitude=.7mm}]\n\n {(\\tikzlastnode.north west)--(\\tikzlastnode.south west)} \n\n -- (\\tikzlastnode.south east)|-cycle;\n\n }}}}\n\\tikzset{cross/.style={cross out, draw=black, minimum size=2*(#1-\\pgflinewidth), inner sep=0pt, outer sep=0pt},\ncross/.default={1pt}}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n\n\\def\\ox{0} \n\\def\\oy{0} \n\\coordinate(o) at (\\ox,\\oy);\n\n\\def\\tl{10.0}\n\\draw [-latex](\\ox,\\oy) node[above left]{} -- (\\ox+\\tl,\\oy) node[above,font=\\small]{$t$};\n\n\n\n\\def\\pi{0.5}\n\\tikzstyle{mystyle}=[draw, minimum height=0.5cm,rectangle, inner sep=0pt,font=\\scriptsize]\n\\tikzstyle{mystyle2}=[draw = none, minimum height=0.25cm,rectangle, inner sep=0pt,font=\\scriptsize]\n\n\n\\draw (0,0) -- (0,-0.2) node[below] {\\tiny $S_1$};\n\\draw (\\pi,0) -- (\\pi,-0.2) node[below] {\\tiny $S_2$};\n\\draw (2.5,0) -- (2.5,-0.2) node[below] {\\tiny $S_3$};\n\\draw (7.5,0) -- (7.5,-0.2) node[below] {\\tiny $C_1$};\n\\draw (4.75,0) -- (4.75,-0.2) node[below] {\\tiny $C_2$};\n\\draw (9.5,0) -- (9.5,-0.2) node[below] {\\tiny $C_3$};\n\n\\draw [<->] (\\pi,0.65)--node[above]{\\small $L_1$}(\\pi+5,0.65);\n\\draw [<->] (7.5,0.65)--node[above]{\\small $L_2$}(9.5,0.65);\n\n\\node(b1) [above right=-0.01cm and -0.01cm of o,mystyle, minimum width=\\pi cm,pattern=north west lines, pattern color=red]{};\n\\node(b1_t) [mystyle2, fill = white] at (b1.center) {$a_1$};\n\\node(b2) [right=5cm of b1,mystyle, minimum width=2 cm,pattern=north west lines, pattern color=red]{};\n\\node(b2_t) [mystyle2, fill = white] at (b2.center) {$b_1$};\n\\node(b3) [right=0cm of b1,mystyle, minimum width=1.5 cm,pattern=north east lines, pattern color=green]{};\n\\node(b3_t) [mystyle2, fill = white] at (b3.center) {$a_2$};\n\\node(b4) [right=2cm of b3,mystyle, minimum width=0.75 cm,pattern=north east lines, pattern color=green]{};\n\\node(b4_t) [mystyle2, fill = white] at (b4.center) {$b_2$};\n\\node(b5) [right=0.5cm of b3,mystyle, minimum width=1 cm,pattern=vertical lines, pattern color=yellow]{};\n\\node(b5_t) [mystyle2, fill = white] at (b5.center) {$a_3$};\n\\node(b6) [right=1cm of b2,mystyle, minimum width=1 cm,pattern=vertical lines, pattern color=yellow]{};\n\\node(b6_t) [mystyle2, fill = white] at (b6.center) {$b_3$};\n\\end{tikzpicture}\n\n\\end{document}" ]
[ 12 ]
cardiac_right_align
\documentclass[tikz,border=5]{standalone} \usepackage{amsmath} \usepackage{tikz} \usepgfmodule{nonlineartransformations} \usetikzlibrary{curvilinear,patterns,decorations.pathreplacing,spy,calc} \usepackage{pgfplots} \usepackage{pgfplotstable} \usepgfplotslibrary{groupplots} \pgfplotsset{/pgfplots/table/search path={dat}} \begin{document} \begin{tikzpicture}[xscale=1.3,yscale=1.2] \def\block(#1,#2,#3,#4){\node[draw=black,thick,rounded corners=2,inner sep=8,fill=white] (#1) at (#2,#3) [anchor=center] {#4};} \begin{scope}[shift={(0,8)}] \draw[thick,blue](-1,-0.75) rectangle (4,3.25); \node at (0.5,2.75) {\bf{OpenCL Program}}; \block(A, 0.0, 0, Block 6) \block(B, 1.5, 0, Block 7) \block(C, 3.0, 0, Block 8) \block(E, 0.0, 1, Block 3) \block(F, 1.5, 1, Block 4) \block(G, 3.0, 1, Block 5) \block(E, 0.0, 2, Block 0) \block(F, 1.5, 2, Block 1) \block(G, 3.0, 2, Block 2) \end{scope} \begin{scope}[shift={(2,1.25)}] \draw[->,thick,blue] (0.0,4) to (0.0,-0.75); \draw[->,thick,blue] (1.5,4) to (1.5,0.25); \draw[->,thick,blue] (3.0,4) to (3.0,0.25); \draw[->,thick,blue] (4.5,4) to (4.5,0.25); \end{scope} \begin{scope}[shift={(2,5)}] \draw[thick,black](-1,-0.75) rectangle (5.5,1.25); \draw[pattern=north east lines,pattern color=lightgray](-1,-0.75) rectangle (5.5,1.25); \node at (0.5,0.75) {\bf{GPU with 4 Cores}}; \block(A, 0.0, 0, Core 0) \block(B, 1.5, 0, Core 1) \block(C, 3.0, 0, Core 2) \block(E, 4.5, 0, Core 3) \end{scope} \begin{scope}[shift={(2,1.25)}] \draw[thick,black](-1,-1) rectangle (5.5,2.75); \block(A, 0.0, 2, Block 0) \block(B, 1.5, 2, Block 1) \block(C, 3.0, 2, Block 2) \block(E, 4.5, 2, Block 3) \block(A, 0.0, 1, Block 4) \block(B, 1.5, 1, Block 5) \block(C, 3.0, 1, Block 6) \block(E, 4.5, 1, Block 7) \block(A, 0.0, 0, Block 8) \end{scope} \draw[->,black,thick,out=0,in=90] (4.25,9) to node [midway,above,black,anchor=west] {\bf{Compile}} (6,6.5) ; \draw[->,black,thick] (0.5,5) to node [midway,above,black,anchor=east] {\bf{Execute}} (0.5,0.5) ; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{amsmath} \usepackage{tikz} \usepgfmodule{nonlineartransformations} \usetikzlibrary{curvilinear,patterns,decorations.pathreplacing,spy,calc} \usepackage{pgfplots} \usepackage{pgfplotstable} \usepgfplotslibrary{groupplots} \pgfplotsset{/pgfplots/table/search path={dat}} \begin{document} \begin{tikzpicture}[xscale=1.3,yscale=1.2] \def\block(#1,#2,#3,#4){\node[draw=black,thick,rounded corners=2,inner sep=8,fill=white] (#1) at (#2,#3) [anchor=center] {#4};} % blocks1 \begin{scope}[shift={(0,8)}] \draw[thick,blue](-1,-0.75) rectangle (4,3.25); \node at (0.5,2.75) {\bf{OpenCL Program}}; \block(A, 0.0, 0, Block 6) \block(B, 1.5, 0, Block 7) \block(C, 3.0, 0, Block 8) \block(E, 0.0, 1, Block 3) \block(F, 1.5, 1, Block 4) \block(G, 3.0, 1, Block 5) \block(E, 0.0, 2, Block 0) \block(F, 1.5, 2, Block 1) \block(G, 3.0, 2, Block 2) \end{scope} %arrows \begin{scope}[shift={(2,1.25)}] \draw[->,thick,blue] (0.0,4) to (0.0,-0.75); \draw[->,thick,blue] (1.5,4) to (1.5,0.25); \draw[->,thick,blue] (3.0,4) to (3.0,0.25); \draw[->,thick,blue] (4.5,4) to (4.5,0.25); \end{scope} % gpu \begin{scope}[shift={(2,5)}] \draw[thick,black](-1,-0.75) rectangle (5.5,1.25); \draw[pattern=north east lines,pattern color=lightgray](-1,-0.75) rectangle (5.5,1.25); \node at (0.5,0.75) {\bf{GPU with 4 Cores}}; \block(A, 0.0, 0, Core 0) \block(B, 1.5, 0, Core 1) \block(C, 3.0, 0, Core 2) \block(E, 4.5, 0, Core 3) \end{scope} % blocks2 \begin{scope}[shift={(2,1.25)}] \draw[thick,black](-1,-1) rectangle (5.5,2.75); \block(A, 0.0, 2, Block 0) \block(B, 1.5, 2, Block 1) \block(C, 3.0, 2, Block 2) \block(E, 4.5, 2, Block 3) \block(A, 0.0, 1, Block 4) \block(B, 1.5, 1, Block 5) \block(C, 3.0, 1, Block 6) \block(E, 4.5, 1, Block 7) \block(A, 0.0, 0, Block 8) \end{scope} %arrows \draw[->,black,thick,out=0,in=90] (4.25,9) to node [midway,above,black,anchor=west] {\bf{Compile}} (6,6.5) ; \draw[->,black,thick] (0.5,5) to node [midway,above,black,anchor=east] {\bf{Execute}} (0.5,0.5) ; \end{tikzpicture} \end{document}
Move the gpu and the section under it(all the bottom content) to the right of the OpenCL Program. Put the "Execute" arrow to the right so that it does not interfere with the compile arrow.
Diagram of the execution of a openCL program, with the GPU diagram placed on the right.
hard
update
scientific
[ "@@ -26 +26 @@\n\n-\\begin{scope}[shift={(2,1.25)}]\n+\\begin{scope}[shift={(7.5,8.25)}]\n@@ -28,3 +28,3 @@\n\n-\\draw[->,thick,blue] (1.5,4) to (1.5,0.25);\n-\\draw[->,thick,blue] (3.0,4) to (3.0,0.25);\n-\\draw[->,thick,blue] (4.5,4) to (4.5,0.25);\n+\\draw[->,thick,blue] (1.5,4) to (1.5,+0.25);\n+\\draw[->,thick,blue] (3.0,4) to (3.0,+0.25);\n+\\draw[->,thick,blue] (4.5,4) to (4.5,+0.25);\n@@ -32 +32 @@\n\n-\\begin{scope}[shift={(2,5)}]\n+\\begin{scope}[shift={(7.5,12)}]\n@@ -41 +41 @@\n\n-\\begin{scope}[shift={(2,1.25)}]\n+\\begin{scope}[shift={(7.5,8.25)}]\n@@ -53,2 +53,2 @@\n\n-\\draw[->,black,thick,out=0,in=90] (4.25,9) to node [midway,above,black,anchor=west] {\\bf{Compile}} (6,6.5) ;\n-\\draw[->,black,thick] (0.5,5) to node [midway,above,black,anchor=east] {\\bf{Execute}} (0.5,0.5) ;\n+\\draw[->,black,thick] (4.25,9) to node [midway,above,black] {\\bf{Compile}} (6,9) ;\n+\\draw[->,black,thick] (14,12) to node [midway,above,black,anchor=west] {\\bf{Execute}} (14,7.5) ;" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath}\n\\usepackage{tikz}\n\\usepgfmodule{nonlineartransformations}\n\\usetikzlibrary{curvilinear,patterns,decorations.pathreplacing,spy,calc}\n\\usepackage{pgfplots}\n\\usepackage{pgfplotstable}\n\\usepgfplotslibrary{groupplots}\n\\pgfplotsset{/pgfplots/table/search path={dat}}\n\n\\begin{document}\n\n\\begin{tikzpicture}[xscale=1.3,yscale=1.2]\n\\def\\block(#1,#2,#3,#4){\\node[draw=black,thick,rounded corners=2,inner sep=8,fill=white] (#1) at (#2,#3) [anchor=center] {#4};}\n\n\n\\begin{scope}[shift={(0,8)}]\n\\draw[thick,blue](-1,-0.75) rectangle (4,3.25);\n\\node at (0.5,2.75) {\\bf{OpenCL Program}};\n\\block(A, 0.0, 0, Block 6)\n\\block(B, 1.5, 0, Block 7)\n\\block(C, 3.0, 0, Block 8)\n\\block(E, 0.0, 1, Block 3)\n\\block(F, 1.5, 1, Block 4)\n\\block(G, 3.0, 1, Block 5)\n\\block(E, 0.0, 2, Block 0)\n\\block(F, 1.5, 2, Block 1)\n\\block(G, 3.0, 2, Block 2)\n\\end{scope}\n\n\\begin{scope}[shift={(§rangei(7.5,0.5),§rangei(8.25,1))}]\n\\draw[->,thick,blue] (0.0,4) to (0.0,-0.75);\n\\draw[->,thick,blue] (1.5,4) to (1.5,+0.25); \n\\draw[->,thick,blue] (3.0,4) to (3.0,+0.25); \n\\draw[->,thick,blue] (4.5,4) to (4.5,+0.25); \n\\end{scope}\n\n\\begin{scope}[shift={(§rangei(7.5,0.5),§rangei(12,1))}]\n\\draw[thick,black](-1,-0.75) rectangle (5.5,1.25);\n\\draw[pattern=north east lines,pattern color=lightgray](-1,-0.75) rectangle (5.5,1.25);\n\\node at (0.5,0.75) {\\bf{GPU with 4 Cores}};\n\\block(A, 0.0, 0, Core 0)\n\\block(B, 1.5, 0, Core 1)\n\\block(C, 3.0, 0, Core 2)\n\\block(E, 4.5, 0, Core 3)\n\\end{scope}\n\n\\begin{scope}[shift={(§rangei(7.5,0.5),§rangei(8.25,1))}]\n\\draw[thick,black](-1,-1) rectangle (5.5,2.75);\n\\block(A, 0.0, 2, Block 0)\n\\block(B, 1.5, 2, Block 1)\n\\block(C, 3.0, 2, Block 2)\n\\block(E, 4.5, 2, Block 3)\n\\block(A, 0.0, 1, Block 4)\n\\block(B, 1.5, 1, Block 5)\n\\block(C, 3.0, 1, Block 6)\n\\block(E, 4.5, 1, Block 7)\n\\block(A, 0.0, 0, Block 8)\n\\end{scope}\n\n\\draw[->,black,thick] (4.25,9) to node [midway,above,black] {\\bf{Compile}} (§rangei(6,0.5),9) ;\n\\draw[->,black,thick] (§rangei(14,0.75),§rangei(12,1)) to node [midway,above,black,anchor=west] {\\bf{Execute}} (§rangei(14,0.75),§rangei(7.5,1)) ;\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath}\n\\usepackage{tikz}\n\\usepgfmodule{nonlineartransformations}\n\\usetikzlibrary{curvilinear,patterns,decorations.pathreplacing,spy,calc}\n\\usepackage{pgfplots}\n\\usepackage{pgfplotstable}\n\\usepgfplotslibrary{groupplots}\n\\pgfplotsset{/pgfplots/table/search path={dat}}\n\n\\begin{document}\n\n\\begin{tikzpicture}[xscale=1.3,yscale=1.2]\n\\def\\block(#1,#2,#3,#4){\\node[draw=black,thick,rounded corners=2,inner sep=8,fill=white] (#1) at (#2,#3) [anchor=center] {#4};}\n\n\n\\begin{scope}[shift={(0,8)}]\n\\draw[thick,blue](-1,-0.75) rectangle (4,3.25);\n\\node at (0.5,2.75) {\\bf{OpenCL Program}};\n\\block(A, 0.0, 0, Block 6)\n\\block(B, 1.5, 0, Block 7)\n\\block(C, 3.0, 0, Block 8)\n\\block(E, 0.0, 1, Block 3)\n\\block(F, 1.5, 1, Block 4)\n\\block(G, 3.0, 1, Block 5)\n\\block(E, 0.0, 2, Block 0)\n\\block(F, 1.5, 2, Block 1)\n\\block(G, 3.0, 2, Block 2)\n\\end{scope}\n\n\\begin{scope}[shift={(7.5,8.25)}]\n\\draw[->,thick,blue] (0.0,4) to (0.0,-0.75);\n\\draw[->,thick,blue] (1.5,4) to (1.5,+0.25); \n\\draw[->,thick,blue] (3.0,4) to (3.0,+0.25); \n\\draw[->,thick,blue] (4.5,4) to (4.5,+0.25); \n\\end{scope}\n\n\\begin{scope}[shift={(7.5,12)}]\n\\draw[thick,black](-1,-0.75) rectangle (5.5,1.25);\n\\draw[pattern=north east lines,pattern color=lightgray](-1,-0.75) rectangle (5.5,1.25);\n\\node at (0.5,0.75) {\\bf{GPU with 4 Cores}};\n\\block(A, 0.0, 0, Core 0)\n\\block(B, 1.5, 0, Core 1)\n\\block(C, 3.0, 0, Core 2)\n\\block(E, 4.5, 0, Core 3)\n\\end{scope}\n\n\\begin{scope}[shift={(7.5,8.25)}]\n\\draw[thick,black](-1,-1) rectangle (5.5,2.75);\n\\block(A, 0.0, 2, Block 0)\n\\block(B, 1.5, 2, Block 1)\n\\block(C, 3.0, 2, Block 2)\n\\block(E, 4.5, 2, Block 3)\n\\block(A, 0.0, 1, Block 4)\n\\block(B, 1.5, 1, Block 5)\n\\block(C, 3.0, 1, Block 6)\n\\block(E, 4.5, 1, Block 7)\n\\block(A, 0.0, 0, Block 8)\n\\end{scope}\n\n\\draw[->,black,thick] (4.25,9) to node [midway,above,black] {\\bf{Compile}} (6,9) ;\n\\draw[->,black,thick] (14,12) to node [midway,above,black,anchor=west] {\\bf{Execute}} (14,7.5) ;\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ 31 ]
cardiac_rm_blocks
\documentclass[tikz,border=5]{standalone} \usepackage{amsmath} \usepackage{tikz} \usepgfmodule{nonlineartransformations} \usetikzlibrary{curvilinear,patterns,decorations.pathreplacing,spy,calc} \usepackage{pgfplots} \usepackage{pgfplotstable} \usepgfplotslibrary{groupplots} \pgfplotsset{/pgfplots/table/search path={dat}} \begin{document} \begin{tikzpicture}[xscale=1.3,yscale=1.2] \def\block(#1,#2,#3,#4){\node[draw=black,thick,rounded corners=2,inner sep=8,fill=white] (#1) at (#2,#3) [anchor=center] {#4};} \begin{scope}[shift={(0,8)}] \draw[thick,blue](-1,-0.75) rectangle (4,3.25); \node at (0.5,2.75) {\bf{OpenCL Program}}; \block(A, 0.0, 0, Block 6) \block(B, 1.5, 0, Block 7) \block(C, 3.0, 0, Block 8) \block(E, 0.0, 1, Block 3) \block(F, 1.5, 1, Block 4) \block(G, 3.0, 1, Block 5) \block(E, 0.0, 2, Block 0) \block(F, 1.5, 2, Block 1) \block(G, 3.0, 2, Block 2) \end{scope} \begin{scope}[shift={(2,1.25)}] \draw[->,thick,blue] (0.0,4) to (0.0,-0.75); \draw[->,thick,blue] (1.5,4) to (1.5,0.25); \draw[->,thick,blue] (3.0,4) to (3.0,0.25); \draw[->,thick,blue] (4.5,4) to (4.5,0.25); \end{scope} \begin{scope}[shift={(2,5)}] \draw[thick,black](-1,-0.75) rectangle (5.5,1.25); \draw[pattern=north east lines,pattern color=lightgray](-1,-0.75) rectangle (5.5,1.25); \node at (0.5,0.75) {\bf{GPU with 4 Cores}}; \block(A, 0.0, 0, Core 0) \block(B, 1.5, 0, Core 1) \block(C, 3.0, 0, Core 2) \block(E, 4.5, 0, Core 3) \end{scope} \begin{scope}[shift={(2,1.25)}] \draw[thick,black](-1,-1) rectangle (5.5,2.75); \block(A, 0.0, 2, Block 0) \block(B, 1.5, 2, Block 1) \block(C, 3.0, 2, Block 2) \block(E, 4.5, 2, Block 3) \block(A, 0.0, 1, Block 4) \block(B, 1.5, 1, Block 5) \block(C, 3.0, 1, Block 6) \block(E, 4.5, 1, Block 7) \block(A, 0.0, 0, Block 8) \end{scope} \draw[->,black,thick,out=0,in=90] (4.25,9) to node [midway,above,black,anchor=west] {\bf{Compile}} (6,6.5) ; \draw[->,black,thick] (0.5,5) to node [midway,above,black,anchor=east] {\bf{Execute}} (0.5,0.5) ; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{amsmath} \usepackage{tikz} \usepgfmodule{nonlineartransformations} \usetikzlibrary{curvilinear,patterns,decorations.pathreplacing,spy,calc} \usepackage{pgfplots} \usepackage{pgfplotstable} \usepgfplotslibrary{groupplots} \pgfplotsset{/pgfplots/table/search path={dat}} \begin{document} \begin{tikzpicture}[xscale=1.3,yscale=1.2] \def\block(#1,#2,#3,#4){\node[draw=black,thick,rounded corners=2,inner sep=8,fill=white] (#1) at (#2,#3) [anchor=center] {#4};} % blocks1 \begin{scope}[shift={(0,8)}] \draw[thick,blue](-1,-0.75) rectangle (4,3.25); \node at (0.5,2.75) {\bf{OpenCL Program}}; \block(A, 0.0, 0, Block 6) \block(B, 1.5, 0, Block 7) \block(C, 3.0, 0, Block 8) \block(E, 0.0, 1, Block 3) \block(F, 1.5, 1, Block 4) \block(G, 3.0, 1, Block 5) \block(E, 0.0, 2, Block 0) \block(F, 1.5, 2, Block 1) \block(G, 3.0, 2, Block 2) \end{scope} %arrows \begin{scope}[shift={(2,1.25)}] \draw[->,thick,blue] (0.0,4) to (0.0,-0.75); \draw[->,thick,blue] (1.5,4) to (1.5,0.25); \draw[->,thick,blue] (3.0,4) to (3.0,0.25); \draw[->,thick,blue] (4.5,4) to (4.5,0.25); \end{scope} % gpu \begin{scope}[shift={(2,5)}] \draw[thick,black](-1,-0.75) rectangle (5.5,1.25); \draw[pattern=north east lines,pattern color=lightgray](-1,-0.75) rectangle (5.5,1.25); \node at (0.5,0.75) {\bf{GPU with 4 Cores}}; \block(A, 0.0, 0, Core 0) \block(B, 1.5, 0, Core 1) \block(C, 3.0, 0, Core 2) \block(E, 4.5, 0, Core 3) \end{scope} % blocks2 \begin{scope}[shift={(2,1.25)}] \draw[thick,black](-1,-1) rectangle (5.5,2.75); \block(A, 0.0, 2, Block 0) \block(B, 1.5, 2, Block 1) \block(C, 3.0, 2, Block 2) \block(E, 4.5, 2, Block 3) \block(A, 0.0, 1, Block 4) \block(B, 1.5, 1, Block 5) \block(C, 3.0, 1, Block 6) \block(E, 4.5, 1, Block 7) \block(A, 0.0, 0, Block 8) \end{scope} %arrows \draw[->,black,thick,out=0,in=90] (4.25,9) to node [midway,above,black,anchor=west] {\bf{Compile}} (6,6.5) ; \draw[->,black,thick] (0.5,5) to node [midway,above,black,anchor=east] {\bf{Execute}} (0.5,0.5) ; \end{tikzpicture} \end{document}
Delete the Blocks 6, 7 and 8. update the size and positions of the boxes and arrows accordingly.
Diagram of the execution of a openCL program, containing 5 blocks
medium
remove
scientific
[ "@@ -13,2 +13,2 @@\n\n-\\begin{scope}[shift={(0,8)}]\n-\\draw[thick,blue](-1,-0.75) rectangle (4,3.25);\n+\\begin{scope}[shift={(0,7.25)}]\n+\\draw[thick,blue](-1,0) rectangle (4,3.25);\n@@ -16,3 +15,0 @@\n\n-\\block(A, 0.0, 0, Block 6)\n-\\block(B, 1.5, 0, Block 7)\n-\\block(C, 3.0, 0, Block 8)\n@@ -27 +24 @@\n\n-\\draw[->,thick,blue] (0.0,4) to (0.0,-0.75);\n+\\draw[->,thick,blue] (0.0,4) to (0.0,0.25);\n@@ -29,2 +26,2 @@\n\n-\\draw[->,thick,blue] (3.0,4) to (3.0,0.25);\n-\\draw[->,thick,blue] (4.5,4) to (4.5,0.25);\n+\\draw[->,thick,blue] (3.0,4) to (3.0,1.25);\n+\\draw[->,thick,blue] (4.5,4) to (4.5,1.25);\n@@ -42 +39 @@\n\n-\\draw[thick,black](-1,-1) rectangle (5.5,2.75);\n+\\draw[thick,black](-1,0) rectangle (5.5,2.75);\n@@ -49,3 +45,0 @@\n\n-\\block(C, 3.0, 1, Block 6)\n-\\block(E, 4.5, 1, Block 7)\n-\\block(A, 0.0, 0, Block 8)\n@@ -54 +48 @@\n\n-\\draw[->,black,thick] (0.5,5) to node [midway,above,black,anchor=east] {\\bf{Execute}} (0.5,0.5) ;\n+\\draw[->,black,thick] (0.5,5) to node [midway,above,black,anchor=east] {\\bf{Execute}} (0.5,1.5) ;" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath}\n\\usepackage{tikz}\n\\usepgfmodule{nonlineartransformations}\n\\usetikzlibrary{curvilinear,patterns,decorations.pathreplacing,spy,calc}\n\\usepackage{pgfplots}\n\\usepackage{pgfplotstable}\n\\usepgfplotslibrary{groupplots}\n\\pgfplotsset{/pgfplots/table/search path={dat}}\n\n\\begin{document}\n\n\\begin{tikzpicture}[xscale=1.3,yscale=1.2]\n\\def\\block(#1,#2,#3,#4){\\node[draw=black,thick,rounded corners=2,inner sep=8,fill=white] (#1) at (#2,#3) [anchor=center] {#4};}\n\n\n\\begin{scope}[shift={(0,§rangei(7.25,0.75))}]\n\\draw[thick,blue](-1,§rangei(0,0.5)) rectangle (4,3.25);\n\\node at (0.5,2.75) {\\bf{OpenCL Program}};\n\\block(E, 0.0, 1, Block 3)\n\\block(F, 1.5, 1, Block 4)\n\\block(G, 3.0, 1, Block 5)\n\\block(E, 0.0, 2, Block 0)\n\\block(F, 1.5, 2, Block 1)\n\\block(G, 3.0, 2, Block 2)\n\\end{scope}\n\n\\begin{scope}[shift={(2,1.25)}]\n\\draw[->,thick,blue] (0.0,4) to (0.0,§rangei(0.25,0.25));\n\\draw[->,thick,blue] (1.5,4) to (1.5,0.25); \n\\draw[->,thick,blue] (3.0,4) to (3.0,§rangei(1.25,0.25)); \n\\draw[->,thick,blue] (4.5,4) to (4.5,§rangei(1.25,0.25)); \n\\end{scope}\n\n\\begin{scope}[shift={(2,5)}]\n\\draw[thick,black](-1,-0.75) rectangle (5.5,1.25);\n\\draw[pattern=north east lines,pattern color=lightgray](-1,-0.75) rectangle (5.5,1.25);\n\\node at (0.5,0.75) {\\bf{GPU with 4 Cores}};\n\\block(A, 0.0, 0, Core 0)\n\\block(B, 1.5, 0, Core 1)\n\\block(C, 3.0, 0, Core 2)\n\\block(E, 4.5, 0, Core 3)\n\\end{scope}\n\n\\begin{scope}[shift={(2,1.25)}]\n\\draw[thick,black](-1,§range(0,-1,0)) rectangle (5.5,2.75);\n\\block(A, 0.0, 2, Block 0)\n\\block(B, 1.5, 2, Block 1)\n\\block(C, 3.0, 2, Block 2)\n\\block(E, 4.5, 2, Block 3)\n\\block(A, 0.0, 1, Block 4)\n\\block(B, 1.5, 1, Block 5)\n\\end{scope}\n\n\\draw[->,black,thick,out=0,in=90] (4.25,9) to node [midway,above,black,anchor=west] {\\bf{Compile}} (6,6.5) ;\n\\draw[->,black,thick] (0.5,5) to node [midway,above,black,anchor=east] {\\bf{Execute}} (0.5,§range(0.5,1.5,1.5)) ;\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath}\n\\usepackage{tikz}\n\\usepgfmodule{nonlineartransformations}\n\\usetikzlibrary{curvilinear,patterns,decorations.pathreplacing,spy,calc}\n\\usepackage{pgfplots}\n\\usepackage{pgfplotstable}\n\\usepgfplotslibrary{groupplots}\n\\pgfplotsset{/pgfplots/table/search path={dat}}\n\n\\begin{document}\n\n\\begin{tikzpicture}[xscale=1.3,yscale=1.2]\n\\def\\block(#1,#2,#3,#4){\\node[draw=black,thick,rounded corners=2,inner sep=8,fill=white] (#1) at (#2,#3) [anchor=center] {#4};}\n\n\n\\begin{scope}[shift={(0,7.25)}]\n\\draw[thick,blue](-1,0) rectangle (4,3.25);\n\\node at (0.5,2.75) {\\bf{OpenCL Program}};\n\\block(E, 0.0, 1, Block 3)\n\\block(F, 1.5, 1, Block 4)\n\\block(G, 3.0, 1, Block 5)\n\\block(E, 0.0, 2, Block 0)\n\\block(F, 1.5, 2, Block 1)\n\\block(G, 3.0, 2, Block 2)\n\\end{scope}\n\n\\begin{scope}[shift={(2,1.25)}]\n\\draw[->,thick,blue] (0.0,4) to (0.0,0.25);\n\\draw[->,thick,blue] (1.5,4) to (1.5,0.25); \n\\draw[->,thick,blue] (3.0,4) to (3.0,1.25); \n\\draw[->,thick,blue] (4.5,4) to (4.5,1.25); \n\\end{scope}\n\n\\begin{scope}[shift={(2,5)}]\n\\draw[thick,black](-1,-0.75) rectangle (5.5,1.25);\n\\draw[pattern=north east lines,pattern color=lightgray](-1,-0.75) rectangle (5.5,1.25);\n\\node at (0.5,0.75) {\\bf{GPU with 4 Cores}};\n\\block(A, 0.0, 0, Core 0)\n\\block(B, 1.5, 0, Core 1)\n\\block(C, 3.0, 0, Core 2)\n\\block(E, 4.5, 0, Core 3)\n\\end{scope}\n\n\\begin{scope}[shift={(2,1.25)}]\n\\draw[thick,black](-1,0) rectangle (5.5,2.75);\n\\block(A, 0.0, 2, Block 0)\n\\block(B, 1.5, 2, Block 1)\n\\block(C, 3.0, 2, Block 2)\n\\block(E, 4.5, 2, Block 3)\n\\block(A, 0.0, 1, Block 4)\n\\block(B, 1.5, 1, Block 5)\n\\end{scope}\n\n\\draw[->,black,thick,out=0,in=90] (4.25,9) to node [midway,above,black,anchor=west] {\\bf{Compile}} (6,6.5) ;\n\\draw[->,black,thick] (0.5,5) to node [midway,above,black,anchor=east] {\\bf{Execute}} (0.5,1.5) ;\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ 8 ]
cat_big
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ cat/.pic={ \tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}} \useasboundingbox (-1,-1) (1,2); \fill [BlueGrey900] (0,-2) .. controls ++(180:3) and ++(0:5/4) .. (-2,0) arc (270:90:1/5) .. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5); \foreach \i in {-1,1} \scoped[shift={(1/2*\i,9/4)}, rotate=45*\i]{ \clip [overlay] (0, 5/9) ellipse [radius=8/9]; \clip [overlay] (0,-5/9) ellipse [radius=8/9]; \fill [BlueGrey900] ellipse [radius=1]; \clip [overlay] (0, 7/9) ellipse [radius=10/11]; \clip [overlay] (0,-7/9) ellipse [radius=10/11]; \fill [Purple100] ellipse [radius=1]; }; \fill [BlueGrey900] ellipse [x radius=3/4, y radius=2]; \fill [BlueGrey100] ellipse [x radius=1/3, y radius=1]; \fill [BlueGrey900] (0,15/8) ellipse [x radius=1, y radius=5/6] (0, 8/6) ellipse [x radius=1/2, y radius=1/2] {[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]} {[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]}; \fill [BlueGrey500] (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5] ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5]; \fill [Purple100] (0,12/8) ellipse [x radius=1/10, y radius=1/5] (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10]; \foreach \i in {-1,1} \scoped[shift={(1/2*\i,2)}, rotate=35*\i]{ \clip [overlay] (0, 1/7) ellipse [radius=2/7]; \clip [overlay] (0,-1/7) ellipse [radius=2/7]; \fill [Yellow50] ellipse [radius=1]; }; \scoped{ \clip (-1,-2) rectangle ++(2,1); \fill [BlueGrey900] (0,-2) ellipse [radius=1/2]; \fill [Grey100] (-1/2,-2) ellipse [x radius=1/3, y radius=1/4] ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4]; }; \foreach \i in {-1,1} \foreach \j in {-1,0,1} \fill [Grey100, shift={(0,11/8)}, xscale=\i, rotate=\j*15, shift=(0:1/2)] ellipse [x radius=1/3, y radius=1/64]; } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {cat}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ cat/.pic={ \tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}} \useasboundingbox (-1,-1) (1,2); \fill [BlueGrey900] (0,-2) .. controls ++(180:3) and ++(0:5/4) .. (-2,0) arc (270:90:1/5) .. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5); \foreach \i in {-1,1} \scoped[shift={(1/2*\i,9/4)}, rotate=45*\i]{ \clip [overlay] (0, 5/9) ellipse [radius=8/9]; \clip [overlay] (0,-5/9) ellipse [radius=8/9]; \fill [BlueGrey900] ellipse [radius=1]; \clip [overlay] (0, 7/9) ellipse [radius=10/11]; \clip [overlay] (0,-7/9) ellipse [radius=10/11]; \fill [Purple100] ellipse [radius=1]; }; \fill [BlueGrey900] ellipse [x radius=3/4, y radius=2]; \fill [BlueGrey100] ellipse [x radius=1/3, y radius=1]; \fill [BlueGrey900] (0,15/8) ellipse [x radius=1, y radius=5/6] (0, 8/6) ellipse [x radius=1/2, y radius=1/2] {[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]} {[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]}; \fill [BlueGrey500] (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5] ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5]; \fill [Purple100] (0,12/8) ellipse [x radius=1/10, y radius=1/5] (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10]; \foreach \i in {-1,1} \scoped[shift={(1/2*\i,2)}, rotate=35*\i]{ \clip [overlay] (0, 1/7) ellipse [radius=2/7]; \clip [overlay] (0,-1/7) ellipse [radius=2/7]; \fill [Yellow50] ellipse [radius=1]; }; \scoped{ \clip (-1,-2) rectangle ++(2,1); \fill [BlueGrey900] (0,-2) ellipse [radius=1/2]; \fill [Grey100] (-1/2,-2) ellipse [x radius=1/3, y radius=1/4] ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4]; }; \foreach \i in {-1,1} \foreach \j in {-1,0,1} \fill [Grey100, shift={(0,11/8)}, xscale=\i, rotate=\j*15, shift=(0:1/2)] ellipse [x radius=1/3, y radius=1/64]; } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {cat}; \end{tikzpicture} \end{document}
Make the cat wider
A very wide cat
medium
update
animal
[ "@@ -20,2 +20,2 @@\n\n-\\fill [BlueGrey900] ellipse [x radius=3/4, y radius=2];\n-\\fill [BlueGrey100] ellipse [x radius=1/3, y radius=1];\n+\\fill [BlueGrey900] ellipse [x radius=1.25, y radius=2];\n+\\fill [BlueGrey100] ellipse [x radius=0.65, y radius=1];\n@@ -23,4 +23,4 @@\n\n-(0,15/8) ellipse [x radius=1, y radius=5/6]\n-(0, 8/6) ellipse [x radius=1/2, y radius=1/2]\n-{[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]}\n-{[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]};\n+(0,15/8) ellipse [x radius=1.1, y radius=5/6]\n+(0, 8/6) ellipse [x radius=0.75, y radius=1/2]\n+{[shift={(-0.6,-2)}, rotate= 10] ellipse [x radius=0.5, y radius=5/4]}\n+{[shift={(0.6,-2)}, rotate=-10] ellipse [x radius=0.5, y radius=5/4]};" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\ncat/.pic={\n\\tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}}\n\\useasboundingbox (-1,-1) (1,2);\n\\fill [BlueGrey900] (0,-2)\n .. controls ++(180:3) and ++(0:5/4) .. (-2,0)\n arc (270:90:1/5)\n .. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5);\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,9/4)}, rotate=45*\\i]{\n \\clip [overlay] (0, 5/9) ellipse [radius=8/9];\n \\clip [overlay] (0,-5/9) ellipse [radius=8/9];\n \\fill [BlueGrey900] ellipse [radius=1];\n \\clip [overlay] (0, 7/9) ellipse [radius=10/11];\n \\clip [overlay] (0,-7/9) ellipse [radius=10/11];\n \\fill [Purple100] ellipse [radius=1];\n };\n\\fill [BlueGrey900] ellipse [x radius=§rangei(1.25,0.25), y radius=2];\n\\fill [BlueGrey100] ellipse [x radius=§rangei(0.65,0.2), y radius=1];\n\\fill [BlueGrey900]\n (0,15/8) ellipse [x radius=§rangei(1.1,0.05), y radius=5/6]\n (0, 8/6) ellipse [x radius=§rangei(0.75,0.2), y radius=1/2]\n {[shift={(§rangei(-0.6,0.1),-2)}, rotate= 10] ellipse [x radius=§rangei(0.5,0.1), y radius=5/4]}\n {[shift={(§rangei(0.6,0.1),-2)}, rotate=-10] ellipse [x radius=§rangei(0.5,0.1), y radius=5/4]};\n\\fill [BlueGrey500]\n (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5]\n ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5];\n\\fill [Purple100]\n (0,12/8) ellipse [x radius=1/10, y radius=1/5]\n (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10];\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,2)}, rotate=35*\\i]{\n \\clip [overlay] (0, 1/7) ellipse [radius=2/7];\n \\clip [overlay] (0,-1/7) ellipse [radius=2/7];\n \\fill [Yellow50] ellipse [radius=1];\n };\n\\scoped{\n \\clip (-1,-2) rectangle ++(2,1);\n \\fill [BlueGrey900] (0,-2) ellipse [radius=1/2];\n \\fill [Grey100]\n (-1/2,-2) ellipse [x radius=1/3, y radius=1/4]\n ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4];\n};\n\\foreach \\i in {-1,1}\n \\foreach \\j in {-1,0,1}\n \\fill [Grey100, shift={(0,11/8)}, xscale=\\i, rotate=\\j*15,\n shift=(0:1/2)]\n ellipse [x radius=1/3, y radius=1/64];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cat};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\ncat/.pic={\n\\tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}}\n\\useasboundingbox (-1,-1) (1,2);\n\\fill [BlueGrey900] (0,-2)\n .. controls ++(180:3) and ++(0:5/4) .. (-2,0)\n arc (270:90:1/5)\n .. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5);\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,9/4)}, rotate=45*\\i]{\n \\clip [overlay] (0, 5/9) ellipse [radius=8/9];\n \\clip [overlay] (0,-5/9) ellipse [radius=8/9];\n \\fill [BlueGrey900] ellipse [radius=1];\n \\clip [overlay] (0, 7/9) ellipse [radius=10/11];\n \\clip [overlay] (0,-7/9) ellipse [radius=10/11];\n \\fill [Purple100] ellipse [radius=1];\n };\n\\fill [BlueGrey900] ellipse [x radius=1.25, y radius=2];\n\\fill [BlueGrey100] ellipse [x radius=0.65, y radius=1];\n\\fill [BlueGrey900]\n (0,15/8) ellipse [x radius=1.1, y radius=5/6]\n (0, 8/6) ellipse [x radius=0.75, y radius=1/2]\n {[shift={(-0.6,-2)}, rotate= 10] ellipse [x radius=0.5, y radius=5/4]}\n {[shift={(0.6,-2)}, rotate=-10] ellipse [x radius=0.5, y radius=5/4]};\n\\fill [BlueGrey500]\n (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5]\n ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5];\n\\fill [Purple100]\n (0,12/8) ellipse [x radius=1/10, y radius=1/5]\n (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10];\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,2)}, rotate=35*\\i]{\n \\clip [overlay] (0, 1/7) ellipse [radius=2/7];\n \\clip [overlay] (0,-1/7) ellipse [radius=2/7];\n \\fill [Yellow50] ellipse [radius=1];\n };\n\\scoped{\n \\clip (-1,-2) rectangle ++(2,1);\n \\fill [BlueGrey900] (0,-2) ellipse [radius=1/2];\n \\fill [Grey100]\n (-1/2,-2) ellipse [x radius=1/3, y radius=1/4]\n ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4];\n};\n\\foreach \\i in {-1,1}\n \\foreach \\j in {-1,0,1}\n \\fill [Grey100, shift={(0,11/8)}, xscale=\\i, rotate=\\j*15,\n shift=(0:1/2)]\n ellipse [x radius=1/3, y radius=1/64];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cat};\n\\end{tikzpicture}\n\\end{document}" ]
[ 1, 1, 1 ]
cat_blue_nose
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ cat/.pic={ \tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}} \useasboundingbox (-1,-1) (1,2); \fill [BlueGrey900] (0,-2) .. controls ++(180:3) and ++(0:5/4) .. (-2,0) arc (270:90:1/5) .. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5); \foreach \i in {-1,1} \scoped[shift={(1/2*\i,9/4)}, rotate=45*\i]{ \clip [overlay] (0, 5/9) ellipse [radius=8/9]; \clip [overlay] (0,-5/9) ellipse [radius=8/9]; \fill [BlueGrey900] ellipse [radius=1]; \clip [overlay] (0, 7/9) ellipse [radius=10/11]; \clip [overlay] (0,-7/9) ellipse [radius=10/11]; \fill [Purple100] ellipse [radius=1]; }; \fill [BlueGrey900] ellipse [x radius=3/4, y radius=2]; \fill [BlueGrey100] ellipse [x radius=1/3, y radius=1]; \fill [BlueGrey900] (0,15/8) ellipse [x radius=1, y radius=5/6] (0, 8/6) ellipse [x radius=1/2, y radius=1/2] {[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]} {[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]}; \fill [BlueGrey500] (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5] ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5]; \fill [Purple100] (0,12/8) ellipse [x radius=1/10, y radius=1/5] (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10]; \foreach \i in {-1,1} \scoped[shift={(1/2*\i,2)}, rotate=35*\i]{ \clip [overlay] (0, 1/7) ellipse [radius=2/7]; \clip [overlay] (0,-1/7) ellipse [radius=2/7]; \fill [Yellow50] ellipse [radius=1]; }; \scoped{ \clip (-1,-2) rectangle ++(2,1); \fill [BlueGrey900] (0,-2) ellipse [radius=1/2]; \fill [Grey100] (-1/2,-2) ellipse [x radius=1/3, y radius=1/4] ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4]; }; \foreach \i in {-1,1} \foreach \j in {-1,0,1} \fill [Grey100, shift={(0,11/8)}, xscale=\i, rotate=\j*15, shift=(0:1/2)] ellipse [x radius=1/3, y radius=1/64]; } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {cat}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ cat/.pic={ \tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}} \useasboundingbox (-1,-1) (1,2); \fill [BlueGrey900] (0,-2) .. controls ++(180:3) and ++(0:5/4) .. (-2,0) arc (270:90:1/5) .. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5); \foreach \i in {-1,1} \scoped[shift={(1/2*\i,9/4)}, rotate=45*\i]{ \clip [overlay] (0, 5/9) ellipse [radius=8/9]; \clip [overlay] (0,-5/9) ellipse [radius=8/9]; \fill [BlueGrey900] ellipse [radius=1]; \clip [overlay] (0, 7/9) ellipse [radius=10/11]; \clip [overlay] (0,-7/9) ellipse [radius=10/11]; \fill [Purple100] ellipse [radius=1]; }; \fill [BlueGrey900] ellipse [x radius=3/4, y radius=2]; \fill [BlueGrey100] ellipse [x radius=1/3, y radius=1]; \fill [BlueGrey900] (0,15/8) ellipse [x radius=1, y radius=5/6] (0, 8/6) ellipse [x radius=1/2, y radius=1/2] {[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]} {[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]}; \fill [BlueGrey500] (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5] ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5]; \fill [Purple100] (0,12/8) ellipse [x radius=1/10, y radius=1/5] (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10]; \foreach \i in {-1,1} \scoped[shift={(1/2*\i,2)}, rotate=35*\i]{ \clip [overlay] (0, 1/7) ellipse [radius=2/7]; \clip [overlay] (0,-1/7) ellipse [radius=2/7]; \fill [Yellow50] ellipse [radius=1]; }; \scoped{ \clip (-1,-2) rectangle ++(2,1); \fill [BlueGrey900] (0,-2) ellipse [radius=1/2]; \fill [Grey100] (-1/2,-2) ellipse [x radius=1/3, y radius=1/4] ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4]; }; \foreach \i in {-1,1} \foreach \j in {-1,0,1} \fill [Grey100, shift={(0,11/8)}, xscale=\i, rotate=\j*15, shift=(0:1/2)] ellipse [x radius=1/3, y radius=1/64]; } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {cat}; \end{tikzpicture} \end{document}
Make the nose of the cat blue
A cat with a blue nose
easy
update
animal
[ "@@ -30 +30 @@\n\n-\\fill [Purple100]\n+\\fill [Blue]", "@@ -30 +30 @@\n\n-\\fill [Purple100]\n+\\fill [Blue500]", "@@ -30 +30 @@\n\n-\\fill [Purple100]\n+\\fill [LightBlue500]" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\ncat/.pic={\n\\tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}}\n\\useasboundingbox (-1,-1) (1,2);\n\\fill [BlueGrey900] (0,-2)\n .. controls ++(180:3) and ++(0:5/4) .. (-2,0)\n arc (270:90:1/5)\n .. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5);\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,9/4)}, rotate=45*\\i]{\n \\clip [overlay] (0, 5/9) ellipse [radius=8/9];\n \\clip [overlay] (0,-5/9) ellipse [radius=8/9];\n \\fill [BlueGrey900] ellipse [radius=1];\n \\clip [overlay] (0, 7/9) ellipse [radius=10/11];\n \\clip [overlay] (0,-7/9) ellipse [radius=10/11];\n \\fill [Purple100] ellipse [radius=1];\n };\n\\fill [BlueGrey900] ellipse [x radius=3/4, y radius=2];\n\\fill [BlueGrey100] ellipse [x radius=1/3, y radius=1];\n\\fill [BlueGrey900]\n (0,15/8) ellipse [x radius=1, y radius=5/6]\n (0, 8/6) ellipse [x radius=1/2, y radius=1/2]\n {[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]}\n {[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]};\n\\fill [BlueGrey500]\n (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5]\n ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5];\n\\fill [Blue]\n (0,12/8) ellipse [x radius=1/10, y radius=1/5]\n (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10];\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,2)}, rotate=35*\\i]{\n \\clip [overlay] (0, 1/7) ellipse [radius=2/7];\n \\clip [overlay] (0,-1/7) ellipse [radius=2/7];\n \\fill [Yellow50] ellipse [radius=1];\n };\n\\scoped{\n \\clip (-1,-2) rectangle ++(2,1);\n \\fill [BlueGrey900] (0,-2) ellipse [radius=1/2];\n \\fill [Grey100]\n (-1/2,-2) ellipse [x radius=1/3, y radius=1/4]\n ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4];\n};\n\\foreach \\i in {-1,1}\n \\foreach \\j in {-1,0,1}\n \\fill [Grey100, shift={(0,11/8)}, xscale=\\i, rotate=\\j*15,\n shift=(0:1/2)]\n ellipse [x radius=1/3, y radius=1/64];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cat};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\ncat/.pic={\n\\tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}}\n\\useasboundingbox (-1,-1) (1,2);\n\\fill [BlueGrey900] (0,-2)\n .. controls ++(180:3) and ++(0:5/4) .. (-2,0)\n arc (270:90:1/5)\n .. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5);\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,9/4)}, rotate=45*\\i]{\n \\clip [overlay] (0, 5/9) ellipse [radius=8/9];\n \\clip [overlay] (0,-5/9) ellipse [radius=8/9];\n \\fill [BlueGrey900] ellipse [radius=1];\n \\clip [overlay] (0, 7/9) ellipse [radius=10/11];\n \\clip [overlay] (0,-7/9) ellipse [radius=10/11];\n \\fill [Purple100] ellipse [radius=1];\n };\n\\fill [BlueGrey900] ellipse [x radius=3/4, y radius=2];\n\\fill [BlueGrey100] ellipse [x radius=1/3, y radius=1];\n\\fill [BlueGrey900]\n (0,15/8) ellipse [x radius=1, y radius=5/6]\n (0, 8/6) ellipse [x radius=1/2, y radius=1/2]\n {[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]}\n {[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]};\n\\fill [BlueGrey500]\n (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5]\n ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5];\n\\fill [Blue§choice([200,300,400,500,600,700,800,900],500)]\n (0,12/8) ellipse [x radius=1/10, y radius=1/5]\n (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10];\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,2)}, rotate=35*\\i]{\n \\clip [overlay] (0, 1/7) ellipse [radius=2/7];\n \\clip [overlay] (0,-1/7) ellipse [radius=2/7];\n \\fill [Yellow50] ellipse [radius=1];\n };\n\\scoped{\n \\clip (-1,-2) rectangle ++(2,1);\n \\fill [BlueGrey900] (0,-2) ellipse [radius=1/2];\n \\fill [Grey100]\n (-1/2,-2) ellipse [x radius=1/3, y radius=1/4]\n ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4];\n};\n\\foreach \\i in {-1,1}\n \\foreach \\j in {-1,0,1}\n \\fill [Grey100, shift={(0,11/8)}, xscale=\\i, rotate=\\j*15,\n shift=(0:1/2)]\n ellipse [x radius=1/3, y radius=1/64];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cat};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\ncat/.pic={\n\\tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}}\n\\useasboundingbox (-1,-1) (1,2);\n\\fill [BlueGrey900] (0,-2)\n .. controls ++(180:3) and ++(0:5/4) .. (-2,0)\n arc (270:90:1/5)\n .. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5);\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,9/4)}, rotate=45*\\i]{\n \\clip [overlay] (0, 5/9) ellipse [radius=8/9];\n \\clip [overlay] (0,-5/9) ellipse [radius=8/9];\n \\fill [BlueGrey900] ellipse [radius=1];\n \\clip [overlay] (0, 7/9) ellipse [radius=10/11];\n \\clip [overlay] (0,-7/9) ellipse [radius=10/11];\n \\fill [Purple100] ellipse [radius=1];\n };\n\\fill [BlueGrey900] ellipse [x radius=3/4, y radius=2];\n\\fill [BlueGrey100] ellipse [x radius=1/3, y radius=1];\n\\fill [BlueGrey900]\n (0,15/8) ellipse [x radius=1, y radius=5/6]\n (0, 8/6) ellipse [x radius=1/2, y radius=1/2]\n {[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]}\n {[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]};\n\\fill [BlueGrey500]\n (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5]\n ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5];\n\\fill [LightBlue§choice([200,300,400,500,600,700,800,900],500)]\n (0,12/8) ellipse [x radius=1/10, y radius=1/5]\n (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10];\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,2)}, rotate=35*\\i]{\n \\clip [overlay] (0, 1/7) ellipse [radius=2/7];\n \\clip [overlay] (0,-1/7) ellipse [radius=2/7];\n \\fill [Yellow50] ellipse [radius=1];\n };\n\\scoped{\n \\clip (-1,-2) rectangle ++(2,1);\n \\fill [BlueGrey900] (0,-2) ellipse [radius=1/2];\n \\fill [Grey100]\n (-1/2,-2) ellipse [x radius=1/3, y radius=1/4]\n ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4];\n};\n\\foreach \\i in {-1,1}\n \\foreach \\j in {-1,0,1}\n \\fill [Grey100, shift={(0,11/8)}, xscale=\\i, rotate=\\j*15,\n shift=(0:1/2)]\n ellipse [x radius=1/3, y radius=1/64];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cat};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\ncat/.pic={\n\\tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}}\n\\useasboundingbox (-1,-1) (1,2);\n\\fill [BlueGrey900] (0,-2)\n .. controls ++(180:3) and ++(0:5/4) .. (-2,0)\n arc (270:90:1/5)\n .. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5);\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,9/4)}, rotate=45*\\i]{\n \\clip [overlay] (0, 5/9) ellipse [radius=8/9];\n \\clip [overlay] (0,-5/9) ellipse [radius=8/9];\n \\fill [BlueGrey900] ellipse [radius=1];\n \\clip [overlay] (0, 7/9) ellipse [radius=10/11];\n \\clip [overlay] (0,-7/9) ellipse [radius=10/11];\n \\fill [Purple100] ellipse [radius=1];\n };\n\\fill [BlueGrey900] ellipse [x radius=3/4, y radius=2];\n\\fill [BlueGrey100] ellipse [x radius=1/3, y radius=1];\n\\fill [BlueGrey900]\n (0,15/8) ellipse [x radius=1, y radius=5/6]\n (0, 8/6) ellipse [x radius=1/2, y radius=1/2]\n {[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]}\n {[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]};\n\\fill [BlueGrey500]\n (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5]\n ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5];\n\\fill [Blue]\n (0,12/8) ellipse [x radius=1/10, y radius=1/5]\n (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10];\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,2)}, rotate=35*\\i]{\n \\clip [overlay] (0, 1/7) ellipse [radius=2/7];\n \\clip [overlay] (0,-1/7) ellipse [radius=2/7];\n \\fill [Yellow50] ellipse [radius=1];\n };\n\\scoped{\n \\clip (-1,-2) rectangle ++(2,1);\n \\fill [BlueGrey900] (0,-2) ellipse [radius=1/2];\n \\fill [Grey100]\n (-1/2,-2) ellipse [x radius=1/3, y radius=1/4]\n ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4];\n};\n\\foreach \\i in {-1,1}\n \\foreach \\j in {-1,0,1}\n \\fill [Grey100, shift={(0,11/8)}, xscale=\\i, rotate=\\j*15,\n shift=(0:1/2)]\n ellipse [x radius=1/3, y radius=1/64];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cat};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\ncat/.pic={\n\\tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}}\n\\useasboundingbox (-1,-1) (1,2);\n\\fill [BlueGrey900] (0,-2)\n .. controls ++(180:3) and ++(0:5/4) .. (-2,0)\n arc (270:90:1/5)\n .. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5);\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,9/4)}, rotate=45*\\i]{\n \\clip [overlay] (0, 5/9) ellipse [radius=8/9];\n \\clip [overlay] (0,-5/9) ellipse [radius=8/9];\n \\fill [BlueGrey900] ellipse [radius=1];\n \\clip [overlay] (0, 7/9) ellipse [radius=10/11];\n \\clip [overlay] (0,-7/9) ellipse [radius=10/11];\n \\fill [Purple100] ellipse [radius=1];\n };\n\\fill [BlueGrey900] ellipse [x radius=3/4, y radius=2];\n\\fill [BlueGrey100] ellipse [x radius=1/3, y radius=1];\n\\fill [BlueGrey900]\n (0,15/8) ellipse [x radius=1, y radius=5/6]\n (0, 8/6) ellipse [x radius=1/2, y radius=1/2]\n {[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]}\n {[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]};\n\\fill [BlueGrey500]\n (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5]\n ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5];\n\\fill [Blue500]\n (0,12/8) ellipse [x radius=1/10, y radius=1/5]\n (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10];\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,2)}, rotate=35*\\i]{\n \\clip [overlay] (0, 1/7) ellipse [radius=2/7];\n \\clip [overlay] (0,-1/7) ellipse [radius=2/7];\n \\fill [Yellow50] ellipse [radius=1];\n };\n\\scoped{\n \\clip (-1,-2) rectangle ++(2,1);\n \\fill [BlueGrey900] (0,-2) ellipse [radius=1/2];\n \\fill [Grey100]\n (-1/2,-2) ellipse [x radius=1/3, y radius=1/4]\n ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4];\n};\n\\foreach \\i in {-1,1}\n \\foreach \\j in {-1,0,1}\n \\fill [Grey100, shift={(0,11/8)}, xscale=\\i, rotate=\\j*15,\n shift=(0:1/2)]\n ellipse [x radius=1/3, y radius=1/64];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cat};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\ncat/.pic={\n\\tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}}\n\\useasboundingbox (-1,-1) (1,2);\n\\fill [BlueGrey900] (0,-2)\n .. controls ++(180:3) and ++(0:5/4) .. (-2,0)\n arc (270:90:1/5)\n .. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5);\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,9/4)}, rotate=45*\\i]{\n \\clip [overlay] (0, 5/9) ellipse [radius=8/9];\n \\clip [overlay] (0,-5/9) ellipse [radius=8/9];\n \\fill [BlueGrey900] ellipse [radius=1];\n \\clip [overlay] (0, 7/9) ellipse [radius=10/11];\n \\clip [overlay] (0,-7/9) ellipse [radius=10/11];\n \\fill [Purple100] ellipse [radius=1];\n };\n\\fill [BlueGrey900] ellipse [x radius=3/4, y radius=2];\n\\fill [BlueGrey100] ellipse [x radius=1/3, y radius=1];\n\\fill [BlueGrey900]\n (0,15/8) ellipse [x radius=1, y radius=5/6]\n (0, 8/6) ellipse [x radius=1/2, y radius=1/2]\n {[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]}\n {[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]};\n\\fill [BlueGrey500]\n (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5]\n ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5];\n\\fill [LightBlue500]\n (0,12/8) ellipse [x radius=1/10, y radius=1/5]\n (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10];\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,2)}, rotate=35*\\i]{\n \\clip [overlay] (0, 1/7) ellipse [radius=2/7];\n \\clip [overlay] (0,-1/7) ellipse [radius=2/7];\n \\fill [Yellow50] ellipse [radius=1];\n };\n\\scoped{\n \\clip (-1,-2) rectangle ++(2,1);\n \\fill [BlueGrey900] (0,-2) ellipse [radius=1/2];\n \\fill [Grey100]\n (-1/2,-2) ellipse [x radius=1/3, y radius=1/4]\n ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4];\n};\n\\foreach \\i in {-1,1}\n \\foreach \\j in {-1,0,1}\n \\fill [Grey100, shift={(0,11/8)}, xscale=\\i, rotate=\\j*15,\n shift=(0:1/2)]\n ellipse [x radius=1/3, y radius=1/64];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cat};\n\\end{tikzpicture}\n\\end{document}" ]
[ 2 ]
cat_longer_mustache
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ cat/.pic={ \tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}} \useasboundingbox (-1,-1) (1,2); \fill [BlueGrey900] (0,-2) .. controls ++(180:3) and ++(0:5/4) .. (-2,0) arc (270:90:1/5) .. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5); \foreach \i in {-1,1} \scoped[shift={(1/2*\i,9/4)}, rotate=45*\i]{ \clip [overlay] (0, 5/9) ellipse [radius=8/9]; \clip [overlay] (0,-5/9) ellipse [radius=8/9]; \fill [BlueGrey900] ellipse [radius=1]; \clip [overlay] (0, 7/9) ellipse [radius=10/11]; \clip [overlay] (0,-7/9) ellipse [radius=10/11]; \fill [Purple100] ellipse [radius=1]; }; \fill [BlueGrey900] ellipse [x radius=3/4, y radius=2]; \fill [BlueGrey100] ellipse [x radius=1/3, y radius=1]; \fill [BlueGrey900] (0,15/8) ellipse [x radius=1, y radius=5/6] (0, 8/6) ellipse [x radius=1/2, y radius=1/2] {[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]} {[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]}; \fill [BlueGrey500] (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5] ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5]; \fill [Purple100] (0,12/8) ellipse [x radius=1/10, y radius=1/5] (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10]; \foreach \i in {-1,1} \scoped[shift={(1/2*\i,2)}, rotate=35*\i]{ \clip [overlay] (0, 1/7) ellipse [radius=2/7]; \clip [overlay] (0,-1/7) ellipse [radius=2/7]; \fill [Yellow50] ellipse [radius=1]; }; \scoped{ \clip (-1,-2) rectangle ++(2,1); \fill [BlueGrey900] (0,-2) ellipse [radius=1/2]; \fill [Grey100] (-1/2,-2) ellipse [x radius=1/3, y radius=1/4] ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4]; }; \foreach \i in {-1,1} \foreach \j in {-1,0,1} \fill [Grey100, shift={(0,11/8)}, xscale=\i, rotate=\j*15, shift=(0:1/2)] ellipse [x radius=1/3, y radius=1/64]; } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {cat}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ cat/.pic={ \tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}} \useasboundingbox (-1,-1) (1,2); \fill [BlueGrey900] (0,-2) .. controls ++(180:3) and ++(0:5/4) .. (-2,0) arc (270:90:1/5) .. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5); \foreach \i in {-1,1} \scoped[shift={(1/2*\i,9/4)}, rotate=45*\i]{ \clip [overlay] (0, 5/9) ellipse [radius=8/9]; \clip [overlay] (0,-5/9) ellipse [radius=8/9]; \fill [BlueGrey900] ellipse [radius=1]; \clip [overlay] (0, 7/9) ellipse [radius=10/11]; \clip [overlay] (0,-7/9) ellipse [radius=10/11]; \fill [Purple100] ellipse [radius=1]; }; \fill [BlueGrey900] ellipse [x radius=3/4, y radius=2]; \fill [BlueGrey100] ellipse [x radius=1/3, y radius=1]; \fill [BlueGrey900] (0,15/8) ellipse [x radius=1, y radius=5/6] (0, 8/6) ellipse [x radius=1/2, y radius=1/2] {[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]} {[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]}; \fill [BlueGrey500] (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5] ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5]; \fill [Purple100] (0,12/8) ellipse [x radius=1/10, y radius=1/5] (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10]; \foreach \i in {-1,1} \scoped[shift={(1/2*\i,2)}, rotate=35*\i]{ \clip [overlay] (0, 1/7) ellipse [radius=2/7]; \clip [overlay] (0,-1/7) ellipse [radius=2/7]; \fill [Yellow50] ellipse [radius=1]; }; \scoped{ \clip (-1,-2) rectangle ++(2,1); \fill [BlueGrey900] (0,-2) ellipse [radius=1/2]; \fill [Grey100] (-1/2,-2) ellipse [x radius=1/3, y radius=1/4] ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4]; }; \foreach \i in {-1,1} \foreach \j in {-1,0,1} \fill [Grey100, shift={(0,11/8)}, xscale=\i, rotate=\j*15, shift=(0:1/2)] ellipse [x radius=1/3, y radius=1/64]; } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {cat}; \end{tikzpicture} \end{document}
Make the mustache of the cat much longer
A cat, with vey long mustaches
easy
update
animal
[ "@@ -49,2 +49,2 @@\n\n-shift=(0:1/2)]\n-ellipse [x radius=1/3, y radius=1/64];\n+shift=(0:1)]\n+ellipse [x radius=1, y radius=1/64];" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\ncat/.pic={\n\\tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}}\n\\useasboundingbox (-1,-1) (1,2);\n\\fill [BlueGrey900] (0,-2)\n .. controls ++(180:3) and ++(0:5/4) .. (-2,0)\n arc (270:90:1/5)\n .. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5);\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,9/4)}, rotate=45*\\i]{\n \\clip [overlay] (0, 5/9) ellipse [radius=8/9];\n \\clip [overlay] (0,-5/9) ellipse [radius=8/9];\n \\fill [BlueGrey900] ellipse [radius=1];\n \\clip [overlay] (0, 7/9) ellipse [radius=10/11];\n \\clip [overlay] (0,-7/9) ellipse [radius=10/11];\n \\fill [Purple100] ellipse [radius=1];\n };\n\\fill [BlueGrey900] ellipse [x radius=3/4, y radius=2];\n\\fill [BlueGrey100] ellipse [x radius=1/3, y radius=1];\n\\fill [BlueGrey900]\n (0,15/8) ellipse [x radius=1, y radius=5/6]\n (0, 8/6) ellipse [x radius=1/2, y radius=1/2]\n {[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]}\n {[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]};\n\\fill [BlueGrey500]\n (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5]\n ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5];\n\\fill [Purple100]\n (0,12/8) ellipse [x radius=1/10, y radius=1/5]\n (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10];\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,2)}, rotate=35*\\i]{\n \\clip [overlay] (0, 1/7) ellipse [radius=2/7];\n \\clip [overlay] (0,-1/7) ellipse [radius=2/7];\n \\fill [Yellow50] ellipse [radius=1];\n };\n\\scoped{\n \\clip (-1,-2) rectangle ++(2,1);\n \\fill [BlueGrey900] (0,-2) ellipse [radius=1/2];\n \\fill [Grey100]\n (-1/2,-2) ellipse [x radius=1/3, y radius=1/4]\n ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4];\n};\n\\foreach \\i in {-1,1}\n \\foreach \\j in {-1,0,1}\n \\fill [Grey100, shift={(0,11/8)}, xscale=\\i, rotate=\\j*15,\n shift=(0:§rangei(1,0.5))]\n ellipse [x radius=§rangei(1,0.5), y radius=1/64];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cat};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\ncat/.pic={\n\\tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}}\n\\useasboundingbox (-1,-1) (1,2);\n\\fill [BlueGrey900] (0,-2)\n .. controls ++(180:3) and ++(0:5/4) .. (-2,0)\n arc (270:90:1/5)\n .. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5);\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,9/4)}, rotate=45*\\i]{\n \\clip [overlay] (0, 5/9) ellipse [radius=8/9];\n \\clip [overlay] (0,-5/9) ellipse [radius=8/9];\n \\fill [BlueGrey900] ellipse [radius=1];\n \\clip [overlay] (0, 7/9) ellipse [radius=10/11];\n \\clip [overlay] (0,-7/9) ellipse [radius=10/11];\n \\fill [Purple100] ellipse [radius=1];\n };\n\\fill [BlueGrey900] ellipse [x radius=3/4, y radius=2];\n\\fill [BlueGrey100] ellipse [x radius=1/3, y radius=1];\n\\fill [BlueGrey900]\n (0,15/8) ellipse [x radius=1, y radius=5/6]\n (0, 8/6) ellipse [x radius=1/2, y radius=1/2]\n {[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]}\n {[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]};\n\\fill [BlueGrey500]\n (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5]\n ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5];\n\\fill [Purple100]\n (0,12/8) ellipse [x radius=1/10, y radius=1/5]\n (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10];\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,2)}, rotate=35*\\i]{\n \\clip [overlay] (0, 1/7) ellipse [radius=2/7];\n \\clip [overlay] (0,-1/7) ellipse [radius=2/7];\n \\fill [Yellow50] ellipse [radius=1];\n };\n\\scoped{\n \\clip (-1,-2) rectangle ++(2,1);\n \\fill [BlueGrey900] (0,-2) ellipse [radius=1/2];\n \\fill [Grey100]\n (-1/2,-2) ellipse [x radius=1/3, y radius=1/4]\n ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4];\n};\n\\foreach \\i in {-1,1}\n \\foreach \\j in {-1,0,1}\n \\fill [Grey100, shift={(0,11/8)}, xscale=\\i, rotate=\\j*15,\n shift=(0:1)]\n ellipse [x radius=1, y radius=1/64];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cat};\n\\end{tikzpicture}\n\\end{document}" ]
[ 1 ]
cat_tail_other_side
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ cat/.pic={ \tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}} \useasboundingbox (-1,-1) (1,2); \fill [BlueGrey900] (0,-2) .. controls ++(180:3) and ++(0:5/4) .. (-2,0) arc (270:90:1/5) .. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5); \foreach \i in {-1,1} \scoped[shift={(1/2*\i,9/4)}, rotate=45*\i]{ \clip [overlay] (0, 5/9) ellipse [radius=8/9]; \clip [overlay] (0,-5/9) ellipse [radius=8/9]; \fill [BlueGrey900] ellipse [radius=1]; \clip [overlay] (0, 7/9) ellipse [radius=10/11]; \clip [overlay] (0,-7/9) ellipse [radius=10/11]; \fill [Purple100] ellipse [radius=1]; }; \fill [BlueGrey900] ellipse [x radius=3/4, y radius=2]; \fill [BlueGrey100] ellipse [x radius=1/3, y radius=1]; \fill [BlueGrey900] (0,15/8) ellipse [x radius=1, y radius=5/6] (0, 8/6) ellipse [x radius=1/2, y radius=1/2] {[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]} {[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]}; \fill [BlueGrey500] (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5] ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5]; \fill [Purple100] (0,12/8) ellipse [x radius=1/10, y radius=1/5] (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10]; \foreach \i in {-1,1} \scoped[shift={(1/2*\i,2)}, rotate=35*\i]{ \clip [overlay] (0, 1/7) ellipse [radius=2/7]; \clip [overlay] (0,-1/7) ellipse [radius=2/7]; \fill [Yellow50] ellipse [radius=1]; }; \scoped{ \clip (-1,-2) rectangle ++(2,1); \fill [BlueGrey900] (0,-2) ellipse [radius=1/2]; \fill [Grey100] (-1/2,-2) ellipse [x radius=1/3, y radius=1/4] ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4]; }; \foreach \i in {-1,1} \foreach \j in {-1,0,1} \fill [Grey100, shift={(0,11/8)}, xscale=\i, rotate=\j*15, shift=(0:1/2)] ellipse [x radius=1/3, y radius=1/64]; } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {cat}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ cat/.pic={ \tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}} \useasboundingbox (-1,-1) (1,2); \fill [BlueGrey900] (0,-2) .. controls ++(180:3) and ++(0:5/4) .. (-2,0) arc (270:90:1/5) .. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5); \foreach \i in {-1,1} \scoped[shift={(1/2*\i,9/4)}, rotate=45*\i]{ \clip [overlay] (0, 5/9) ellipse [radius=8/9]; \clip [overlay] (0,-5/9) ellipse [radius=8/9]; \fill [BlueGrey900] ellipse [radius=1]; \clip [overlay] (0, 7/9) ellipse [radius=10/11]; \clip [overlay] (0,-7/9) ellipse [radius=10/11]; \fill [Purple100] ellipse [radius=1]; }; \fill [BlueGrey900] ellipse [x radius=3/4, y radius=2]; \fill [BlueGrey100] ellipse [x radius=1/3, y radius=1]; \fill [BlueGrey900] (0,15/8) ellipse [x radius=1, y radius=5/6] (0, 8/6) ellipse [x radius=1/2, y radius=1/2] {[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]} {[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]}; \fill [BlueGrey500] (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5] ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5]; \fill [Purple100] (0,12/8) ellipse [x radius=1/10, y radius=1/5] (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10]; \foreach \i in {-1,1} \scoped[shift={(1/2*\i,2)}, rotate=35*\i]{ \clip [overlay] (0, 1/7) ellipse [radius=2/7]; \clip [overlay] (0,-1/7) ellipse [radius=2/7]; \fill [Yellow50] ellipse [radius=1]; }; \scoped{ \clip (-1,-2) rectangle ++(2,1); \fill [BlueGrey900] (0,-2) ellipse [radius=1/2]; \fill [Grey100] (-1/2,-2) ellipse [x radius=1/3, y radius=1/4] ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4]; }; \foreach \i in {-1,1} \foreach \j in {-1,0,1} \fill [Grey100, shift={(0,11/8)}, xscale=\i, rotate=\j*15, shift=(0:1/2)] ellipse [x radius=1/3, y radius=1/64]; } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {cat}; \end{tikzpicture} \end{document}
Change the position of the tail to the other side of the cat
A cat, with its tail on the right
hard
update
animal
[ "@@ -8,3 +8,3 @@\n\n-.. controls ++(180:3) and ++(0:5/4) .. (-2,0)\n-arc (270:90:1/5)\n-.. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5);\n+.. controls ++(0:3) and ++(180:5/4) .. (2,0)\n+arc (90:270:-1/5)\n+.. controls ++(180:2) and ++(0:11/4) .. (0,-2+2/5);" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\ncat/.pic={\n\\tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}}\n\\useasboundingbox (-1,-1) (1,2);\n\\fill [BlueGrey900] (0,-2)\n .. controls ++(0:3) and ++(180:5/4) .. (2,0)\n arc (90:270:-1/5)\n .. controls ++(180:2) and ++(0:11/4) .. (0,-2+2/5);\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,9/4)}, rotate=45*\\i]{\n \\clip [overlay] (0, 5/9) ellipse [radius=8/9];\n \\clip [overlay] (0,-5/9) ellipse [radius=8/9];\n \\fill [BlueGrey900] ellipse [radius=1];\n \\clip [overlay] (0, 7/9) ellipse [radius=10/11];\n \\clip [overlay] (0,-7/9) ellipse [radius=10/11];\n \\fill [Purple100] ellipse [radius=1];\n };\n\\fill [BlueGrey900] ellipse [x radius=3/4, y radius=2];\n\\fill [BlueGrey100] ellipse [x radius=1/3, y radius=1];\n\\fill [BlueGrey900]\n (0,15/8) ellipse [x radius=1, y radius=5/6]\n (0, 8/6) ellipse [x radius=1/2, y radius=1/2]\n {[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]}\n {[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]};\n\\fill [BlueGrey500]\n (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5]\n ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5];\n\\fill [Purple100]\n (0,12/8) ellipse [x radius=1/10, y radius=1/5]\n (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10];\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,2)}, rotate=35*\\i]{\n \\clip [overlay] (0, 1/7) ellipse [radius=2/7];\n \\clip [overlay] (0,-1/7) ellipse [radius=2/7];\n \\fill [Yellow50] ellipse [radius=1];\n };\n\\scoped{\n \\clip (-1,-2) rectangle ++(2,1);\n \\fill [BlueGrey900] (0,-2) ellipse [radius=1/2];\n \\fill [Grey100]\n (-1/2,-2) ellipse [x radius=1/3, y radius=1/4]\n ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4];\n};\n\\foreach \\i in {-1,1}\n \\foreach \\j in {-1,0,1}\n \\fill [Grey100, shift={(0,11/8)}, xscale=\\i, rotate=\\j*15,\n shift=(0:1/2)]\n ellipse [x radius=1/3, y radius=1/64];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cat};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\ncat/.pic={\n\\tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}}\n\\useasboundingbox (-1,-1) (1,2);\n\\fill [BlueGrey900] (0,-2)\n .. controls ++(0:3) and ++(180:5/4) .. (2,0)\n arc (90:270:-1/5)\n .. controls ++(180:2) and ++(0:11/4) .. (0,-2+2/5);\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,9/4)}, rotate=45*\\i]{\n \\clip [overlay] (0, 5/9) ellipse [radius=8/9];\n \\clip [overlay] (0,-5/9) ellipse [radius=8/9];\n \\fill [BlueGrey900] ellipse [radius=1];\n \\clip [overlay] (0, 7/9) ellipse [radius=10/11];\n \\clip [overlay] (0,-7/9) ellipse [radius=10/11];\n \\fill [Purple100] ellipse [radius=1];\n };\n\\fill [BlueGrey900] ellipse [x radius=3/4, y radius=2];\n\\fill [BlueGrey100] ellipse [x radius=1/3, y radius=1];\n\\fill [BlueGrey900]\n (0,15/8) ellipse [x radius=1, y radius=5/6]\n (0, 8/6) ellipse [x radius=1/2, y radius=1/2]\n {[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]}\n {[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]};\n\\fill [BlueGrey500]\n (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5]\n ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5];\n\\fill [Purple100]\n (0,12/8) ellipse [x radius=1/10, y radius=1/5]\n (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10];\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,2)}, rotate=35*\\i]{\n \\clip [overlay] (0, 1/7) ellipse [radius=2/7];\n \\clip [overlay] (0,-1/7) ellipse [radius=2/7];\n \\fill [Yellow50] ellipse [radius=1];\n };\n\\scoped{\n \\clip (-1,-2) rectangle ++(2,1);\n \\fill [BlueGrey900] (0,-2) ellipse [radius=1/2];\n \\fill [Grey100]\n (-1/2,-2) ellipse [x radius=1/3, y radius=1/4]\n ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4];\n};\n\\foreach \\i in {-1,1}\n \\foreach \\j in {-1,0,1}\n \\fill [Grey100, shift={(0,11/8)}, xscale=\\i, rotate=\\j*15,\n shift=(0:1/2)]\n ellipse [x radius=1/3, y radius=1/64];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cat};\n\\end{tikzpicture}\n\\end{document}" ]
[ 14, 14, 14 ]
cat_with_brown_pupils
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ cat/.pic={ \tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}} \useasboundingbox (-1,-1) (1,2); \fill [BlueGrey900] (0,-2) .. controls ++(180:3) and ++(0:5/4) .. (-2,0) arc (270:90:1/5) .. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5); \foreach \i in {-1,1} \scoped[shift={(1/2*\i,9/4)}, rotate=45*\i]{ \clip [overlay] (0, 5/9) ellipse [radius=8/9]; \clip [overlay] (0,-5/9) ellipse [radius=8/9]; \fill [BlueGrey900] ellipse [radius=1]; \clip [overlay] (0, 7/9) ellipse [radius=10/11]; \clip [overlay] (0,-7/9) ellipse [radius=10/11]; \fill [Purple100] ellipse [radius=1]; }; \fill [BlueGrey900] ellipse [x radius=3/4, y radius=2]; \fill [BlueGrey100] ellipse [x radius=1/3, y radius=1]; \fill [BlueGrey900] (0,15/8) ellipse [x radius=1, y radius=5/6] (0, 8/6) ellipse [x radius=1/2, y radius=1/2] {[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]} {[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]}; \fill [BlueGrey500] (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5] ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5]; \fill [Purple100] (0,12/8) ellipse [x radius=1/10, y radius=1/5] (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10]; \foreach \i in {-1,1} \scoped[shift={(1/2*\i,2)}, rotate=35*\i]{ \clip [overlay] (0, 1/7) ellipse [radius=2/7]; \clip [overlay] (0,-1/7) ellipse [radius=2/7]; \fill [Yellow50] ellipse [radius=1]; }; \scoped{ \clip (-1,-2) rectangle ++(2,1); \fill [BlueGrey900] (0,-2) ellipse [radius=1/2]; \fill [Grey100] (-1/2,-2) ellipse [x radius=1/3, y radius=1/4] ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4]; }; \foreach \i in {-1,1} \foreach \j in {-1,0,1} \fill [Grey100, shift={(0,11/8)}, xscale=\i, rotate=\j*15, shift=(0:1/2)] ellipse [x radius=1/3, y radius=1/64]; } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {cat}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ cat/.pic={ \tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}} \useasboundingbox (-1,-1) (1,2); \fill [BlueGrey900] (0,-2) .. controls ++(180:3) and ++(0:5/4) .. (-2,0) arc (270:90:1/5) .. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5); \foreach \i in {-1,1} \scoped[shift={(1/2*\i,9/4)}, rotate=45*\i]{ \clip [overlay] (0, 5/9) ellipse [radius=8/9]; \clip [overlay] (0,-5/9) ellipse [radius=8/9]; \fill [BlueGrey900] ellipse [radius=1]; \clip [overlay] (0, 7/9) ellipse [radius=10/11]; \clip [overlay] (0,-7/9) ellipse [radius=10/11]; \fill [Purple100] ellipse [radius=1]; }; \fill [BlueGrey900] ellipse [x radius=3/4, y radius=2]; \fill [BlueGrey100] ellipse [x radius=1/3, y radius=1]; \fill [BlueGrey900] (0,15/8) ellipse [x radius=1, y radius=5/6] (0, 8/6) ellipse [x radius=1/2, y radius=1/2] {[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]} {[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]}; \fill [BlueGrey500] (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5] ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5]; \fill [Purple100] (0,12/8) ellipse [x radius=1/10, y radius=1/5] (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10]; \foreach \i in {-1,1} \scoped[shift={(1/2*\i,2)}, rotate=35*\i]{ \clip [overlay] (0, 1/7) ellipse [radius=2/7]; \clip [overlay] (0,-1/7) ellipse [radius=2/7]; \fill [Yellow50] ellipse [radius=1]; }; \scoped{ \clip (-1,-2) rectangle ++(2,1); \fill [BlueGrey900] (0,-2) ellipse [radius=1/2]; \fill [Grey100] (-1/2,-2) ellipse [x radius=1/3, y radius=1/4] ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4]; }; \foreach \i in {-1,1} \foreach \j in {-1,0,1} \fill [Grey100, shift={(0,11/8)}, xscale=\i, rotate=\j*15, shift=(0:1/2)] ellipse [x radius=1/3, y radius=1/64]; } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {cat}; \end{tikzpicture} \end{document}
Add brown pupils to the cat
A cat with brown pupils
medium
update
animal
[ "@@ -37,0 +38 @@\n\n+\\fill [Brown] (0, 0) circle [radius=0.140];", "@@ -37,0 +38 @@\n\n+\\fill [Brown500] (0, 0) circle [radius=0.140];", "@@ -37,0 +38 @@\n\n+\\fill [Brown500] (0, 0) ellipse [x radius=0.140, y radius=0.150];" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\ncat/.pic={\n\\tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}}\n\\useasboundingbox (-1,-1) (1,2);\n\\fill [BlueGrey900] (0,-2)\n .. controls ++(180:3) and ++(0:5/4) .. (-2,0)\n arc (270:90:1/5)\n .. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5);\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,9/4)}, rotate=45*\\i]{\n \\clip [overlay] (0, 5/9) ellipse [radius=8/9];\n \\clip [overlay] (0,-5/9) ellipse [radius=8/9];\n \\fill [BlueGrey900] ellipse [radius=1];\n \\clip [overlay] (0, 7/9) ellipse [radius=10/11];\n \\clip [overlay] (0,-7/9) ellipse [radius=10/11];\n \\fill [Purple100] ellipse [radius=1];\n };\n\\fill [BlueGrey900] ellipse [x radius=3/4, y radius=2];\n\\fill [BlueGrey100] ellipse [x radius=1/3, y radius=1];\n\\fill [BlueGrey900]\n (0,15/8) ellipse [x radius=1, y radius=5/6]\n (0, 8/6) ellipse [x radius=1/2, y radius=1/2]\n {[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]}\n {[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]};\n\\fill [BlueGrey500]\n (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5]\n ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5];\n\\fill [Purple100]\n (0,12/8) ellipse [x radius=1/10, y radius=1/5]\n (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10];\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,2)}, rotate=35*\\i]{\n \\clip [overlay] (0, 1/7) ellipse [radius=2/7];\n \\clip [overlay] (0,-1/7) ellipse [radius=2/7];\n \\fill [Yellow50] ellipse [radius=1];\n \\fill [Brown] (0, 0) circle [radius=§rangei(0.140, 0.06)];\n };\n\\scoped{\n \\clip (-1,-2) rectangle ++(2,1);\n \\fill [BlueGrey900] (0,-2) ellipse [radius=1/2];\n \\fill [Grey100]\n (-1/2,-2) ellipse [x radius=1/3, y radius=1/4]\n ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4];\n};\n\\foreach \\i in {-1,1}\n \\foreach \\j in {-1,0,1}\n \\fill [Grey100, shift={(0,11/8)}, xscale=\\i, rotate=\\j*15,\n shift=(0:1/2)]\n ellipse [x radius=1/3, y radius=1/64];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cat};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\ncat/.pic={\n\\tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}}\n\\useasboundingbox (-1,-1) (1,2);\n\\fill [BlueGrey900] (0,-2)\n .. controls ++(180:3) and ++(0:5/4) .. (-2,0)\n arc (270:90:1/5)\n .. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5);\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,9/4)}, rotate=45*\\i]{\n \\clip [overlay] (0, 5/9) ellipse [radius=8/9];\n \\clip [overlay] (0,-5/9) ellipse [radius=8/9];\n \\fill [BlueGrey900] ellipse [radius=1];\n \\clip [overlay] (0, 7/9) ellipse [radius=10/11];\n \\clip [overlay] (0,-7/9) ellipse [radius=10/11];\n \\fill [Purple100] ellipse [radius=1];\n };\n\\fill [BlueGrey900] ellipse [x radius=3/4, y radius=2];\n\\fill [BlueGrey100] ellipse [x radius=1/3, y radius=1];\n\\fill [BlueGrey900]\n (0,15/8) ellipse [x radius=1, y radius=5/6]\n (0, 8/6) ellipse [x radius=1/2, y radius=1/2]\n {[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]}\n {[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]};\n\\fill [BlueGrey500]\n (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5]\n ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5];\n\\fill [Purple100]\n (0,12/8) ellipse [x radius=1/10, y radius=1/5]\n (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10];\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,2)}, rotate=35*\\i]{\n \\clip [overlay] (0, 1/7) ellipse [radius=2/7];\n \\clip [overlay] (0,-1/7) ellipse [radius=2/7];\n \\fill [Yellow50] ellipse [radius=1];\n \\fill [Brown§choice([300,400,500,600,700,800,900],500)] (0, 0) circle [radius=§rangei(0.140, 0.06)];\n };\n\\scoped{\n \\clip (-1,-2) rectangle ++(2,1);\n \\fill [BlueGrey900] (0,-2) ellipse [radius=1/2];\n \\fill [Grey100]\n (-1/2,-2) ellipse [x radius=1/3, y radius=1/4]\n ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4];\n};\n\\foreach \\i in {-1,1}\n \\foreach \\j in {-1,0,1}\n \\fill [Grey100, shift={(0,11/8)}, xscale=\\i, rotate=\\j*15,\n shift=(0:1/2)]\n ellipse [x radius=1/3, y radius=1/64];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cat};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\ncat/.pic={\n\\tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}}\n\\useasboundingbox (-1,-1) (1,2);\n\\fill [BlueGrey900] (0,-2)\n .. controls ++(180:3) and ++(0:5/4) .. (-2,0)\n arc (270:90:1/5)\n .. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5);\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,9/4)}, rotate=45*\\i]{\n \\clip [overlay] (0, 5/9) ellipse [radius=8/9];\n \\clip [overlay] (0,-5/9) ellipse [radius=8/9];\n \\fill [BlueGrey900] ellipse [radius=1];\n \\clip [overlay] (0, 7/9) ellipse [radius=10/11];\n \\clip [overlay] (0,-7/9) ellipse [radius=10/11];\n \\fill [Purple100] ellipse [radius=1];\n };\n\\fill [BlueGrey900] ellipse [x radius=3/4, y radius=2];\n\\fill [BlueGrey100] ellipse [x radius=1/3, y radius=1];\n\\fill [BlueGrey900]\n (0,15/8) ellipse [x radius=1, y radius=5/6]\n (0, 8/6) ellipse [x radius=1/2, y radius=1/2]\n {[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]}\n {[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]};\n\\fill [BlueGrey500]\n (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5]\n ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5];\n\\fill [Purple100]\n (0,12/8) ellipse [x radius=1/10, y radius=1/5]\n (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10];\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,2)}, rotate=35*\\i]{\n \\clip [overlay] (0, 1/7) ellipse [radius=2/7];\n \\clip [overlay] (0,-1/7) ellipse [radius=2/7];\n \\fill [Yellow50] ellipse [radius=1];\n \\fill [Brown§choice([300,400,500,600,700,800,900],500)] (0, 0) ellipse [x radius=§rangei(0.140, 0.06), y radius=§rangei(0.150, 0.06)];\n };\n\\scoped{\n \\clip (-1,-2) rectangle ++(2,1);\n \\fill [BlueGrey900] (0,-2) ellipse [radius=1/2];\n \\fill [Grey100]\n (-1/2,-2) ellipse [x radius=1/3, y radius=1/4]\n ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4];\n};\n\\foreach \\i in {-1,1}\n \\foreach \\j in {-1,0,1}\n \\fill [Grey100, shift={(0,11/8)}, xscale=\\i, rotate=\\j*15,\n shift=(0:1/2)]\n ellipse [x radius=1/3, y radius=1/64];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cat};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\ncat/.pic={\n\\tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}}\n\\useasboundingbox (-1,-1) (1,2);\n\\fill [BlueGrey900] (0,-2)\n .. controls ++(180:3) and ++(0:5/4) .. (-2,0)\n arc (270:90:1/5)\n .. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5);\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,9/4)}, rotate=45*\\i]{\n \\clip [overlay] (0, 5/9) ellipse [radius=8/9];\n \\clip [overlay] (0,-5/9) ellipse [radius=8/9];\n \\fill [BlueGrey900] ellipse [radius=1];\n \\clip [overlay] (0, 7/9) ellipse [radius=10/11];\n \\clip [overlay] (0,-7/9) ellipse [radius=10/11];\n \\fill [Purple100] ellipse [radius=1];\n };\n\\fill [BlueGrey900] ellipse [x radius=3/4, y radius=2];\n\\fill [BlueGrey100] ellipse [x radius=1/3, y radius=1];\n\\fill [BlueGrey900]\n (0,15/8) ellipse [x radius=1, y radius=5/6]\n (0, 8/6) ellipse [x radius=1/2, y radius=1/2]\n {[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]}\n {[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]};\n\\fill [BlueGrey500]\n (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5]\n ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5];\n\\fill [Purple100]\n (0,12/8) ellipse [x radius=1/10, y radius=1/5]\n (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10];\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,2)}, rotate=35*\\i]{\n \\clip [overlay] (0, 1/7) ellipse [radius=2/7];\n \\clip [overlay] (0,-1/7) ellipse [radius=2/7];\n \\fill [Yellow50] ellipse [radius=1];\n \\fill [Brown] (0, 0) circle [radius=0.140];\n };\n\\scoped{\n \\clip (-1,-2) rectangle ++(2,1);\n \\fill [BlueGrey900] (0,-2) ellipse [radius=1/2];\n \\fill [Grey100]\n (-1/2,-2) ellipse [x radius=1/3, y radius=1/4]\n ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4];\n};\n\\foreach \\i in {-1,1}\n \\foreach \\j in {-1,0,1}\n \\fill [Grey100, shift={(0,11/8)}, xscale=\\i, rotate=\\j*15,\n shift=(0:1/2)]\n ellipse [x radius=1/3, y radius=1/64];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cat};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\ncat/.pic={\n\\tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}}\n\\useasboundingbox (-1,-1) (1,2);\n\\fill [BlueGrey900] (0,-2)\n .. controls ++(180:3) and ++(0:5/4) .. (-2,0)\n arc (270:90:1/5)\n .. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5);\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,9/4)}, rotate=45*\\i]{\n \\clip [overlay] (0, 5/9) ellipse [radius=8/9];\n \\clip [overlay] (0,-5/9) ellipse [radius=8/9];\n \\fill [BlueGrey900] ellipse [radius=1];\n \\clip [overlay] (0, 7/9) ellipse [radius=10/11];\n \\clip [overlay] (0,-7/9) ellipse [radius=10/11];\n \\fill [Purple100] ellipse [radius=1];\n };\n\\fill [BlueGrey900] ellipse [x radius=3/4, y radius=2];\n\\fill [BlueGrey100] ellipse [x radius=1/3, y radius=1];\n\\fill [BlueGrey900]\n (0,15/8) ellipse [x radius=1, y radius=5/6]\n (0, 8/6) ellipse [x radius=1/2, y radius=1/2]\n {[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]}\n {[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]};\n\\fill [BlueGrey500]\n (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5]\n ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5];\n\\fill [Purple100]\n (0,12/8) ellipse [x radius=1/10, y radius=1/5]\n (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10];\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,2)}, rotate=35*\\i]{\n \\clip [overlay] (0, 1/7) ellipse [radius=2/7];\n \\clip [overlay] (0,-1/7) ellipse [radius=2/7];\n \\fill [Yellow50] ellipse [radius=1];\n \\fill [Brown500] (0, 0) circle [radius=0.140];\n };\n\\scoped{\n \\clip (-1,-2) rectangle ++(2,1);\n \\fill [BlueGrey900] (0,-2) ellipse [radius=1/2];\n \\fill [Grey100]\n (-1/2,-2) ellipse [x radius=1/3, y radius=1/4]\n ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4];\n};\n\\foreach \\i in {-1,1}\n \\foreach \\j in {-1,0,1}\n \\fill [Grey100, shift={(0,11/8)}, xscale=\\i, rotate=\\j*15,\n shift=(0:1/2)]\n ellipse [x radius=1/3, y radius=1/64];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cat};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\ncat/.pic={\n\\tikzset{x=3cm/5,y=3cm/5,shift={(0,-1/3)}}\n\\useasboundingbox (-1,-1) (1,2);\n\\fill [BlueGrey900] (0,-2)\n .. controls ++(180:3) and ++(0:5/4) .. (-2,0)\n arc (270:90:1/5)\n .. controls ++(0:2) and ++(180:11/4) .. (0,-2+2/5);\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,9/4)}, rotate=45*\\i]{\n \\clip [overlay] (0, 5/9) ellipse [radius=8/9];\n \\clip [overlay] (0,-5/9) ellipse [radius=8/9];\n \\fill [BlueGrey900] ellipse [radius=1];\n \\clip [overlay] (0, 7/9) ellipse [radius=10/11];\n \\clip [overlay] (0,-7/9) ellipse [radius=10/11];\n \\fill [Purple100] ellipse [radius=1];\n };\n\\fill [BlueGrey900] ellipse [x radius=3/4, y radius=2];\n\\fill [BlueGrey100] ellipse [x radius=1/3, y radius=1];\n\\fill [BlueGrey900]\n (0,15/8) ellipse [x radius=1, y radius=5/6]\n (0, 8/6) ellipse [x radius=1/2, y radius=1/2]\n {[shift={(-1/2,-2)}, rotate= 10] ellipse [x radius=1/3, y radius=5/4]}\n {[shift={( 1/2,-2)}, rotate=-10] ellipse [x radius=1/3, y radius=5/4]};\n\\fill [BlueGrey500]\n (-1/9,11/8) ellipse [x radius=1/5, y radius=1/5]\n ( 1/9,11/8) ellipse [x radius=1/5, y radius=1/5];\n\\fill [Purple100]\n (0,12/8) ellipse [x radius=1/10, y radius=1/5]\n (0,12/8+1/9) ellipse [x radius=1/5 , y radius=1/10];\n\\foreach \\i in {-1,1}\n \\scoped[shift={(1/2*\\i,2)}, rotate=35*\\i]{\n \\clip [overlay] (0, 1/7) ellipse [radius=2/7];\n \\clip [overlay] (0,-1/7) ellipse [radius=2/7];\n \\fill [Yellow50] ellipse [radius=1];\n \\fill [Brown500] (0, 0) ellipse [x radius=0.140, y radius=0.150];\n };\n\\scoped{\n \\clip (-1,-2) rectangle ++(2,1);\n \\fill [BlueGrey900] (0,-2) ellipse [radius=1/2];\n \\fill [Grey100]\n (-1/2,-2) ellipse [x radius=1/3, y radius=1/4]\n ( 1/2,-2) ellipse [x radius=1/3, y radius=1/4];\n};\n\\foreach \\i in {-1,1}\n \\foreach \\j in {-1,0,1}\n \\fill [Grey100, shift={(0,11/8)}, xscale=\\i, rotate=\\j*15,\n shift=(0:1/2)]\n ellipse [x radius=1/3, y radius=1/64];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cat};\n\\end{tikzpicture}\n\\end{document}" ]
[ 4 ]
chimpanzee_blue_fur
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ chimpanzee/.pic={ \tikzset{x=3cm/3.5,y=3cm/3.5, shift={(0,1/4)}} \fill [BlueGrey700] (165:5/4 and 1) ellipse [radius=1/2]; \fill [Pink100] (165:5/4 and 1) ellipse [radius=1/3]; \fill [BlueGrey700] (0,-1/2) ellipse [x radius=1, y radius=4/3] (0, 0) ellipse [x radius=4/3, y radius=1]; \scoped{ \clip(0,-2) rectangle(9/5,1); \fill [BlueGrey900] (15:5/4 and 1) ellipse [radius=1/2]; \fill [Pink200] (15:5/4 and 1) ellipse [radius=1/3]; \fill [BlueGrey900] (0,-1/2) ellipse [x radius=1, y radius=4/3] (0, 0) ellipse [x radius=4/3, y radius=1]; } \fill [Pink100] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1]; \fill [Pink100, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \fill [Pink100, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \scoped{ \clip(0,-2) rectangle(9/5,1); \fill [Pink200] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1]; \fill [Pink200, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \fill [Pink200, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; } \foreach \i in {-1,1} \fill [BlueGrey900, xscale=\i] (1/2,0) ellipse [radius=1/4]; \fill [Pink300] (-1/7,-2/3) ellipse [radius=1/9] ( 1/7,-2/3) ellipse [radius=1/9]; \fill [Pink300] (-1/2,-1) arc (180:360:1/2 and 1/8) arc (360:180:1/2 and 1/4); } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {chimpanzee}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ chimpanzee/.pic={ \tikzset{x=3cm/3.5,y=3cm/3.5, shift={(0,1/4)}} \fill [BlueGrey700] (165:5/4 and 1) ellipse [radius=1/2]; \fill [Pink100] (165:5/4 and 1) ellipse [radius=1/3]; \fill [BlueGrey700] (0,-1/2) ellipse [x radius=1, y radius=4/3] (0, 0) ellipse [x radius=4/3, y radius=1]; \scoped{ \clip(0,-2) rectangle(9/5,1); \fill [BlueGrey900] (15:5/4 and 1) ellipse [radius=1/2]; \fill [Pink200] (15:5/4 and 1) ellipse [radius=1/3]; \fill [BlueGrey900] (0,-1/2) ellipse [x radius=1, y radius=4/3] (0, 0) ellipse [x radius=4/3, y radius=1]; } \fill [Pink100] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1]; \fill [Pink100, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \fill [Pink100, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \scoped{ \clip(0,-2) rectangle(9/5,1); \fill [Pink200] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1]; \fill [Pink200, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \fill [Pink200, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; } \foreach \i in {-1,1} \fill [BlueGrey900, xscale=\i] (1/2,0) ellipse [radius=1/4]; \fill [Pink300] (-1/7,-2/3) ellipse [radius=1/9] ( 1/7,-2/3) ellipse [radius=1/9]; \fill [Pink300] (-1/2,-1) arc (180:360:1/2 and 1/8) arc (360:180:1/2 and 1/4); } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {chimpanzee}; \end{tikzpicture} \end{document}
Change the color of the chimpanzee's fur to blue
A chimpanzee with blue fur
easy
update
animal
[ "@@ -6 +6 @@\n\n-\\fill [BlueGrey700] (165:5/4 and 1) ellipse [radius=1/2];\n+\\fill [Blue700] (165:5/4 and 1) ellipse [radius=1/2];\n@@ -8 +8 @@\n\n-\\fill [BlueGrey700]\n+\\fill [Blue700]\n@@ -13 +13 @@\n\n-\\fill [BlueGrey900] (15:5/4 and 1) ellipse [radius=1/2];\n+\\fill [Blue900] (15:5/4 and 1) ellipse [radius=1/2];\n@@ -15 +15 @@\n\n-\\fill [BlueGrey900]\n+\\fill [Blue900]" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\nchimpanzee/.pic={\n\\tikzset{x=3cm/3.5,y=3cm/3.5, shift={(0,1/4)}}\n\\fill [Blue§range(300,900,700)] (165:5/4 and 1) ellipse [radius=1/2];\n\\fill [Pink100] (165:5/4 and 1) ellipse [radius=1/3];\n\\fill [Blue§range(300,900,700)]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [Blue§range(500,900,900)] (15:5/4 and 1) ellipse [radius=1/2];\n \\fill [Pink200] (15:5/4 and 1) ellipse [radius=1/3];\n \\fill [Blue§range(500,900,900)]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n}\n\\fill [Pink100] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n\\fill [Pink100, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\fill [Pink100, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [Pink200] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n \\fill [Pink200, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n \\fill [Pink200, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n}\n\\foreach \\i in {-1,1}\n \\fill [BlueGrey900, xscale=\\i] (1/2,0) ellipse [radius=1/4];\n\\fill [Pink300]\n (-1/7,-2/3) ellipse [radius=1/9]\n ( 1/7,-2/3) ellipse [radius=1/9];\n\\fill [Pink300]\n (-1/2,-1) arc (180:360:1/2 and 1/8) arc (360:180:1/2 and 1/4);\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {chimpanzee};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\nchimpanzee/.pic={\n\\tikzset{x=3cm/3.5,y=3cm/3.5, shift={(0,1/4)}}\n\\fill [Blue700] (165:5/4 and 1) ellipse [radius=1/2];\n\\fill [Pink100] (165:5/4 and 1) ellipse [radius=1/3];\n\\fill [Blue700]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [Blue900] (15:5/4 and 1) ellipse [radius=1/2];\n \\fill [Pink200] (15:5/4 and 1) ellipse [radius=1/3];\n \\fill [Blue900]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n}\n\\fill [Pink100] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n\\fill [Pink100, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\fill [Pink100, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [Pink200] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n \\fill [Pink200, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n \\fill [Pink200, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n}\n\\foreach \\i in {-1,1}\n \\fill [BlueGrey900, xscale=\\i] (1/2,0) ellipse [radius=1/4];\n\\fill [Pink300]\n (-1/7,-2/3) ellipse [radius=1/9]\n ( 1/7,-2/3) ellipse [radius=1/9];\n\\fill [Pink300]\n (-1/2,-1) arc (180:360:1/2 and 1/8) arc (360:180:1/2 and 1/4);\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {chimpanzee};\n\\end{tikzpicture}\n\\end{document}" ]
[ 1 ]
chimpanzee_elipse_eyes
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ chimpanzee/.pic={ \tikzset{x=3cm/3.5,y=3cm/3.5, shift={(0,1/4)}} \fill [BlueGrey700] (165:5/4 and 1) ellipse [radius=1/2]; \fill [Pink100] (165:5/4 and 1) ellipse [radius=1/3]; \fill [BlueGrey700] (0,-1/2) ellipse [x radius=1, y radius=4/3] (0, 0) ellipse [x radius=4/3, y radius=1]; \scoped{ \clip(0,-2) rectangle(9/5,1); \fill [BlueGrey900] (15:5/4 and 1) ellipse [radius=1/2]; \fill [Pink200] (15:5/4 and 1) ellipse [radius=1/3]; \fill [BlueGrey900] (0,-1/2) ellipse [x radius=1, y radius=4/3] (0, 0) ellipse [x radius=4/3, y radius=1]; } \fill [Pink100] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1]; \fill [Pink100, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \fill [Pink100, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \scoped{ \clip(0,-2) rectangle(9/5,1); \fill [Pink200] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1]; \fill [Pink200, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \fill [Pink200, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; } \foreach \i in {-1,1} \fill [BlueGrey900, xscale=\i] (1/2,0) ellipse [radius=1/4]; \fill [Pink300] (-1/7,-2/3) ellipse [radius=1/9] ( 1/7,-2/3) ellipse [radius=1/9]; \fill [Pink300] (-1/2,-1) arc (180:360:1/2 and 1/8) arc (360:180:1/2 and 1/4); } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {chimpanzee}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ chimpanzee/.pic={ \tikzset{x=3cm/3.5,y=3cm/3.5, shift={(0,1/4)}} \fill [BlueGrey700] (165:5/4 and 1) ellipse [radius=1/2]; \fill [Pink100] (165:5/4 and 1) ellipse [radius=1/3]; \fill [BlueGrey700] (0,-1/2) ellipse [x radius=1, y radius=4/3] (0, 0) ellipse [x radius=4/3, y radius=1]; \scoped{ \clip(0,-2) rectangle(9/5,1); \fill [BlueGrey900] (15:5/4 and 1) ellipse [radius=1/2]; \fill [Pink200] (15:5/4 and 1) ellipse [radius=1/3]; \fill [BlueGrey900] (0,-1/2) ellipse [x radius=1, y radius=4/3] (0, 0) ellipse [x radius=4/3, y radius=1]; } \fill [Pink100] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1]; \fill [Pink100, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \fill [Pink100, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \scoped{ \clip(0,-2) rectangle(9/5,1); \fill [Pink200] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1]; \fill [Pink200, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \fill [Pink200, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; } \foreach \i in {-1,1} \fill [BlueGrey900, xscale=\i] (1/2,0) ellipse [radius=1/4]; \fill [Pink300] (-1/7,-2/3) ellipse [radius=1/9] ( 1/7,-2/3) ellipse [radius=1/9]; \fill [Pink300] (-1/2,-1) arc (180:360:1/2 and 1/8) arc (360:180:1/2 and 1/4); } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {chimpanzee}; \end{tikzpicture} \end{document}
Make the eyes of the chimpanzee wider, in the shape of an ellipse
A chimpanzee with wide, ellipse-shaped eyes
medium
update
animal
[ "@@ -29 +29 @@\n\n-\\fill [BlueGrey900, xscale=\\i] (1/2,0) ellipse [radius=1/4];\n+\\fill [BlueGrey900, xscale=\\i] (1/2,0) ellipse [x radius=0.25,y radius=0.15];" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\nchimpanzee/.pic={\n\\tikzset{x=3cm/3.5,y=3cm/3.5, shift={(0,1/4)}}\n\\fill [BlueGrey700] (165:5/4 and 1) ellipse [radius=1/2];\n\\fill [Pink100] (165:5/4 and 1) ellipse [radius=1/3];\n\\fill [BlueGrey700]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [BlueGrey900] (15:5/4 and 1) ellipse [radius=1/2];\n \\fill [Pink200] (15:5/4 and 1) ellipse [radius=1/3];\n \\fill [BlueGrey900]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n}\n\\fill [Pink100] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n\\fill [Pink100, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\fill [Pink100, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [Pink200] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n \\fill [Pink200, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n \\fill [Pink200, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n}\n\\foreach \\i in {-1,1}\n \\fill [BlueGrey900, xscale=\\i] (1/2,0) ellipse [x radius=§rangei(0.25,0.125),y radius=§rangei(0.15,0.1)];\n\\fill [Pink300]\n (-1/7,-2/3) ellipse [radius=1/9]\n ( 1/7,-2/3) ellipse [radius=1/9];\n\\fill [Pink300]\n (-1/2,-1) arc (180:360:1/2 and 1/8) arc (360:180:1/2 and 1/4);\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {chimpanzee};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\nchimpanzee/.pic={\n\\tikzset{x=3cm/3.5,y=3cm/3.5, shift={(0,1/4)}}\n\\fill [BlueGrey700] (165:5/4 and 1) ellipse [radius=1/2];\n\\fill [Pink100] (165:5/4 and 1) ellipse [radius=1/3];\n\\fill [BlueGrey700]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [BlueGrey900] (15:5/4 and 1) ellipse [radius=1/2];\n \\fill [Pink200] (15:5/4 and 1) ellipse [radius=1/3];\n \\fill [BlueGrey900]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n}\n\\fill [Pink100] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n\\fill [Pink100, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\fill [Pink100, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [Pink200] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n \\fill [Pink200, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n \\fill [Pink200, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n}\n\\foreach \\i in {-1,1}\n \\fill [BlueGrey900, xscale=\\i] (1/2,0) ellipse [x radius=0.25,y radius=0.15];\n\\fill [Pink300]\n (-1/7,-2/3) ellipse [radius=1/9]\n ( 1/7,-2/3) ellipse [radius=1/9];\n\\fill [Pink300]\n (-1/2,-1) arc (180:360:1/2 and 1/8) arc (360:180:1/2 and 1/4);\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {chimpanzee};\n\\end{tikzpicture}\n\\end{document}" ]
[ 1 ]
chimpanzee_open_mouth
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ chimpanzee/.pic={ \tikzset{x=3cm/3.5,y=3cm/3.5, shift={(0,1/4)}} \fill [BlueGrey700] (165:5/4 and 1) ellipse [radius=1/2]; \fill [Pink100] (165:5/4 and 1) ellipse [radius=1/3]; \fill [BlueGrey700] (0,-1/2) ellipse [x radius=1, y radius=4/3] (0, 0) ellipse [x radius=4/3, y radius=1]; \scoped{ \clip(0,-2) rectangle(9/5,1); \fill [BlueGrey900] (15:5/4 and 1) ellipse [radius=1/2]; \fill [Pink200] (15:5/4 and 1) ellipse [radius=1/3]; \fill [BlueGrey900] (0,-1/2) ellipse [x radius=1, y radius=4/3] (0, 0) ellipse [x radius=4/3, y radius=1]; } \fill [Pink100] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1]; \fill [Pink100, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \fill [Pink100, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \scoped{ \clip(0,-2) rectangle(9/5,1); \fill [Pink200] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1]; \fill [Pink200, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \fill [Pink200, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; } \foreach \i in {-1,1} \fill [BlueGrey900, xscale=\i] (1/2,0) ellipse [radius=1/4]; \fill [Pink300] (-1/7,-2/3) ellipse [radius=1/9] ( 1/7,-2/3) ellipse [radius=1/9]; \fill [Pink300] (-1/2,-1) arc (180:360:1/2 and 1/8) arc (360:180:1/2 and 1/4); } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {chimpanzee}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ chimpanzee/.pic={ \tikzset{x=3cm/3.5,y=3cm/3.5, shift={(0,1/4)}} \fill [BlueGrey700] (165:5/4 and 1) ellipse [radius=1/2]; \fill [Pink100] (165:5/4 and 1) ellipse [radius=1/3]; \fill [BlueGrey700] (0,-1/2) ellipse [x radius=1, y radius=4/3] (0, 0) ellipse [x radius=4/3, y radius=1]; \scoped{ \clip(0,-2) rectangle(9/5,1); \fill [BlueGrey900] (15:5/4 and 1) ellipse [radius=1/2]; \fill [Pink200] (15:5/4 and 1) ellipse [radius=1/3]; \fill [BlueGrey900] (0,-1/2) ellipse [x radius=1, y radius=4/3] (0, 0) ellipse [x radius=4/3, y radius=1]; } \fill [Pink100] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1]; \fill [Pink100, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \fill [Pink100, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \scoped{ \clip(0,-2) rectangle(9/5,1); \fill [Pink200] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1]; \fill [Pink200, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \fill [Pink200, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; } \foreach \i in {-1,1} \fill [BlueGrey900, xscale=\i] (1/2,0) ellipse [radius=1/4]; \fill [Pink300] (-1/7,-2/3) ellipse [radius=1/9] ( 1/7,-2/3) ellipse [radius=1/9]; \fill [Pink300] (-1/2,-1) arc (180:360:1/2 and 1/8) arc (360:180:1/2 and 1/4); } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {chimpanzee}; \end{tikzpicture} \end{document}
Increase the size of the chimpanzee's mouth, making its smile bigger
A chimpanzee with a big smile
easy
update
animal
[ "@@ -34 +34 @@\n\n-(-1/2,-1) arc (180:360:1/2 and 1/8) arc (360:180:1/2 and 1/4);\n+(-0.6,-1) arc (180:360:0.6 and 0.175) arc (360:180:0.6 and 0.5);" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\nchimpanzee/.pic={\n\\tikzset{x=3cm/3.5,y=3cm/3.5, shift={(0,1/4)}}\n\\fill [BlueGrey700] (165:5/4 and 1) ellipse [radius=1/2];\n\\fill [Pink100] (165:5/4 and 1) ellipse [radius=1/3];\n\\fill [BlueGrey700]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [BlueGrey900] (15:5/4 and 1) ellipse [radius=1/2];\n \\fill [Pink200] (15:5/4 and 1) ellipse [radius=1/3];\n \\fill [BlueGrey900]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n}\n\\fill [Pink100] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n\\fill [Pink100, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\fill [Pink100, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [Pink200] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n \\fill [Pink200, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n \\fill [Pink200, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n}\n\\foreach \\i in {-1,1}\n \\fill [BlueGrey900, xscale=\\i] (1/2,0) ellipse [radius=1/4];\n\\fill [Pink300]\n (-1/7,-2/3) ellipse [radius=1/9]\n ( 1/7,-2/3) ellipse [radius=1/9];\n\\fill [Pink300]\n (§rangei(-0.6,0.1),§rangei(-1,0.2)) arc (180:360:§rangei(0.6,0.1) and §rangei(0.175,0.125)) arc (360:180:§rangei(0.6,0.1) and §rangei(0.5,0.1));\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {chimpanzee};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\nchimpanzee/.pic={\n\\tikzset{x=3cm/3.5,y=3cm/3.5, shift={(0,1/4)}}\n\\fill [BlueGrey700] (165:5/4 and 1) ellipse [radius=1/2];\n\\fill [Pink100] (165:5/4 and 1) ellipse [radius=1/3];\n\\fill [BlueGrey700]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [BlueGrey900] (15:5/4 and 1) ellipse [radius=1/2];\n \\fill [Pink200] (15:5/4 and 1) ellipse [radius=1/3];\n \\fill [BlueGrey900]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n}\n\\fill [Pink100] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n\\fill [Pink100, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\fill [Pink100, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [Pink200] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n \\fill [Pink200, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n \\fill [Pink200, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n}\n\\foreach \\i in {-1,1}\n \\fill [BlueGrey900, xscale=\\i] (1/2,0) ellipse [radius=1/4];\n\\fill [Pink300]\n (-1/7,-2/3) ellipse [radius=1/9]\n ( 1/7,-2/3) ellipse [radius=1/9];\n\\fill [Pink300]\n (-0.6,-1) arc (180:360:0.6 and 0.175) arc (360:180:0.6 and 0.5);\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {chimpanzee};\n\\end{tikzpicture}\n\\end{document}" ]
[ 7, 13 ]
chimpanzee_shoulder_torso
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ chimpanzee/.pic={ \tikzset{x=3cm/3.5,y=3cm/3.5, shift={(0,1/4)}} \fill [BlueGrey700] (165:5/4 and 1) ellipse [radius=1/2]; \fill [Pink100] (165:5/4 and 1) ellipse [radius=1/3]; \fill [BlueGrey700] (0,-1/2) ellipse [x radius=1, y radius=4/3] (0, 0) ellipse [x radius=4/3, y radius=1]; \scoped{ \clip(0,-2) rectangle(9/5,1); \fill [BlueGrey900] (15:5/4 and 1) ellipse [radius=1/2]; \fill [Pink200] (15:5/4 and 1) ellipse [radius=1/3]; \fill [BlueGrey900] (0,-1/2) ellipse [x radius=1, y radius=4/3] (0, 0) ellipse [x radius=4/3, y radius=1]; } \fill [Pink100] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1]; \fill [Pink100, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \fill [Pink100, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \scoped{ \clip(0,-2) rectangle(9/5,1); \fill [Pink200] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1]; \fill [Pink200, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \fill [Pink200, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; } \foreach \i in {-1,1} \fill [BlueGrey900, xscale=\i] (1/2,0) ellipse [radius=1/4]; \fill [Pink300] (-1/7,-2/3) ellipse [radius=1/9] ( 1/7,-2/3) ellipse [radius=1/9]; \fill [Pink300] (-1/2,-1) arc (180:360:1/2 and 1/8) arc (360:180:1/2 and 1/4); } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {chimpanzee}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ chimpanzee/.pic={ \tikzset{x=3cm/3.5,y=3cm/3.5, shift={(0,1/4)}} \fill [BlueGrey700] (165:5/4 and 1) ellipse [radius=1/2]; \fill [Pink100] (165:5/4 and 1) ellipse [radius=1/3]; \fill [BlueGrey700] (0,-1/2) ellipse [x radius=1, y radius=4/3] (0, 0) ellipse [x radius=4/3, y radius=1]; \scoped{ \clip(0,-2) rectangle(9/5,1); \fill [BlueGrey900] (15:5/4 and 1) ellipse [radius=1/2]; \fill [Pink200] (15:5/4 and 1) ellipse [radius=1/3]; \fill [BlueGrey900] (0,-1/2) ellipse [x radius=1, y radius=4/3] (0, 0) ellipse [x radius=4/3, y radius=1]; } \fill [Pink100] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1]; \fill [Pink100, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \fill [Pink100, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \scoped{ \clip(0,-2) rectangle(9/5,1); \fill [Pink200] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1]; \fill [Pink200, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \fill [Pink200, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; } \foreach \i in {-1,1} \fill [BlueGrey900, xscale=\i] (1/2,0) ellipse [radius=1/4]; \fill [Pink300] (-1/7,-2/3) ellipse [radius=1/9] ( 1/7,-2/3) ellipse [radius=1/9]; \fill [Pink300] (-1/2,-1) arc (180:360:1/2 and 1/8) arc (360:180:1/2 and 1/4); } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {chimpanzee}; \end{tikzpicture} \end{document}
Add a torso to the chimpanzee, in the shape of an ellipse
A chimpanzee with a torso the shape of an ellipse
hard
add
animal
[ "@@ -5,0 +6 @@\n\n+\\fill [BlueGrey700] (0,-2) ellipse (1.65 and 0.5);", "@@ -5,0 +6,2 @@\n\n+\\fill [BlueGrey900] (-50:0 and 3.3) arc (270:90:-1.5 and 0.5);\n+\\fill [BlueGrey700] (-50:0 and 3.3) arc (270:90:1.5 and 0.5);" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\nchimpanzee/.pic={\n\\tikzset{x=3cm/3.5,y=3cm/3.5, shift={(0,1/4)}}\n\\fill [BlueGrey§choice([900,800,700],700)] (0,-2) ellipse (§rangei(1.65,0.1) and §rangei(0.5,0.1));\n\\fill [BlueGrey700] (165:5/4 and 1) ellipse [radius=1/2];\n\\fill [Pink100] (165:5/4 and 1) ellipse [radius=1/3];\n\\fill [BlueGrey700]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [BlueGrey900] (15:5/4 and 1) ellipse [radius=1/2];\n \\fill [Pink200] (15:5/4 and 1) ellipse [radius=1/3];\n \\fill [BlueGrey900]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n}\n\\fill [Pink100] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n\\fill [Pink100, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\fill [Pink100, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [Pink200] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n \\fill [Pink200, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n \\fill [Pink200, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n}\n\\foreach \\i in {-1,1}\n \\fill [BlueGrey900, xscale=\\i] (1/2,0) ellipse [radius=1/4];\n\\fill [Pink300]\n (-1/7,-2/3) ellipse [radius=1/9]\n ( 1/7,-2/3) ellipse [radius=1/9];\n\\fill [Pink300]\n (-1/2,-1) arc (180:360:1/2 and 1/8) arc (360:180:1/2 and 1/4);\n\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {chimpanzee};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\nchimpanzee/.pic={\n\\tikzset{x=3cm/3.5,y=3cm/3.5, shift={(0,1/4)}}\n\\fill [BlueGrey900] (-50:0 and §rangei(3.3,0.1)) arc (270:90:§rangei(-1.5,0.2) and §rangei(0.5,0.3));\n\\fill [BlueGrey700] (-50:0 and §rangei(3.3,0.1)) arc (270:90:§rangei(1.5,0.2) and §rangei(0.5,0.3));\n\\fill [BlueGrey700] (165:5/4 and 1) ellipse [radius=1/2];\n\\fill [Pink100] (165:5/4 and 1) ellipse [radius=1/3];\n\\fill [BlueGrey700]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [BlueGrey900] (15:5/4 and 1) ellipse [radius=1/2];\n \\fill [Pink200] (15:5/4 and 1) ellipse [radius=1/3];\n \\fill [BlueGrey900]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n}\n\\fill [Pink100] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n\\fill [Pink100, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\fill [Pink100, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [Pink200] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n \\fill [Pink200, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n \\fill [Pink200, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n}\n\\foreach \\i in {-1,1}\n \\fill [BlueGrey900, xscale=\\i] (1/2,0) ellipse [radius=1/4];\n\\fill [Pink300]\n (-1/7,-2/3) ellipse [radius=1/9]\n ( 1/7,-2/3) ellipse [radius=1/9];\n\\fill [Pink300]\n (-1/2,-1) arc (180:360:1/2 and 1/8) arc (360:180:1/2 and 1/4);\n\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {chimpanzee};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\nchimpanzee/.pic={\n\\tikzset{x=3cm/3.5,y=3cm/3.5, shift={(0,1/4)}}\n\\fill [BlueGrey700] (0,-2) ellipse (1.65 and 0.5);\n\\fill [BlueGrey700] (165:5/4 and 1) ellipse [radius=1/2];\n\\fill [Pink100] (165:5/4 and 1) ellipse [radius=1/3];\n\\fill [BlueGrey700]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [BlueGrey900] (15:5/4 and 1) ellipse [radius=1/2];\n \\fill [Pink200] (15:5/4 and 1) ellipse [radius=1/3];\n \\fill [BlueGrey900]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n}\n\\fill [Pink100] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n\\fill [Pink100, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\fill [Pink100, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [Pink200] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n \\fill [Pink200, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n \\fill [Pink200, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n}\n\\foreach \\i in {-1,1}\n \\fill [BlueGrey900, xscale=\\i] (1/2,0) ellipse [radius=1/4];\n\\fill [Pink300]\n (-1/7,-2/3) ellipse [radius=1/9]\n ( 1/7,-2/3) ellipse [radius=1/9];\n\\fill [Pink300]\n (-1/2,-1) arc (180:360:1/2 and 1/8) arc (360:180:1/2 and 1/4);\n\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {chimpanzee};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\nchimpanzee/.pic={\n\\tikzset{x=3cm/3.5,y=3cm/3.5, shift={(0,1/4)}}\n\\fill [BlueGrey900] (-50:0 and 3.3) arc (270:90:-1.5 and 0.5);\n\\fill [BlueGrey700] (-50:0 and 3.3) arc (270:90:1.5 and 0.5);\n\\fill [BlueGrey700] (165:5/4 and 1) ellipse [radius=1/2];\n\\fill [Pink100] (165:5/4 and 1) ellipse [radius=1/3];\n\\fill [BlueGrey700]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [BlueGrey900] (15:5/4 and 1) ellipse [radius=1/2];\n \\fill [Pink200] (15:5/4 and 1) ellipse [radius=1/3];\n \\fill [BlueGrey900]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n}\n\\fill [Pink100] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n\\fill [Pink100, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\fill [Pink100, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [Pink200] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n \\fill [Pink200, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n \\fill [Pink200, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n}\n\\foreach \\i in {-1,1}\n \\fill [BlueGrey900, xscale=\\i] (1/2,0) ellipse [radius=1/4];\n\\fill [Pink300]\n (-1/7,-2/3) ellipse [radius=1/9]\n ( 1/7,-2/3) ellipse [radius=1/9];\n\\fill [Pink300]\n (-1/2,-1) arc (180:360:1/2 and 1/8) arc (360:180:1/2 and 1/4);\n\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {chimpanzee};\n\\end{tikzpicture}\n\\end{document}" ]
[ 32, 20 ]
chimpanzee_squint_crosseyes
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ chimpanzee/.pic={ \tikzset{x=3cm/3.5,y=3cm/3.5, shift={(0,1/4)}} \fill [BlueGrey700] (165:5/4 and 1) ellipse [radius=1/2]; \fill [Pink100] (165:5/4 and 1) ellipse [radius=1/3]; \fill [BlueGrey700] (0,-1/2) ellipse [x radius=1, y radius=4/3] (0, 0) ellipse [x radius=4/3, y radius=1]; \scoped{ \clip(0,-2) rectangle(9/5,1); \fill [BlueGrey900] (15:5/4 and 1) ellipse [radius=1/2]; \fill [Pink200] (15:5/4 and 1) ellipse [radius=1/3]; \fill [BlueGrey900] (0,-1/2) ellipse [x radius=1, y radius=4/3] (0, 0) ellipse [x radius=4/3, y radius=1]; } \fill [Pink100] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1]; \fill [Pink100, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \fill [Pink100, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \scoped{ \clip(0,-2) rectangle(9/5,1); \fill [Pink200] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1]; \fill [Pink200, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \fill [Pink200, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; } \foreach \i in {-1,1} \fill [BlueGrey900, xscale=\i] (1/2,0) ellipse [radius=1/4]; \fill [Pink300] (-1/7,-2/3) ellipse [radius=1/9] ( 1/7,-2/3) ellipse [radius=1/9]; \fill [Pink300] (-1/2,-1) arc (180:360:1/2 and 1/8) arc (360:180:1/2 and 1/4); } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {chimpanzee}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ chimpanzee/.pic={ \tikzset{x=3cm/3.5,y=3cm/3.5, shift={(0,1/4)}} \fill [BlueGrey700] (165:5/4 and 1) ellipse [radius=1/2]; \fill [Pink100] (165:5/4 and 1) ellipse [radius=1/3]; \fill [BlueGrey700] (0,-1/2) ellipse [x radius=1, y radius=4/3] (0, 0) ellipse [x radius=4/3, y radius=1]; \scoped{ \clip(0,-2) rectangle(9/5,1); \fill [BlueGrey900] (15:5/4 and 1) ellipse [radius=1/2]; \fill [Pink200] (15:5/4 and 1) ellipse [radius=1/3]; \fill [BlueGrey900] (0,-1/2) ellipse [x radius=1, y radius=4/3] (0, 0) ellipse [x radius=4/3, y radius=1]; } \fill [Pink100] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1]; \fill [Pink100, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \fill [Pink100, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \scoped{ \clip(0,-2) rectangle(9/5,1); \fill [Pink200] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1]; \fill [Pink200, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; \fill [Pink200, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3]; } \foreach \i in {-1,1} \fill [BlueGrey900, xscale=\i] (1/2,0) ellipse [radius=1/4]; \fill [Pink300] (-1/7,-2/3) ellipse [radius=1/9] ( 1/7,-2/3) ellipse [radius=1/9]; \fill [Pink300] (-1/2,-1) arc (180:360:1/2 and 1/8) arc (360:180:1/2 and 1/4); } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {chimpanzee}; \end{tikzpicture} \end{document}
Make the eyes of the chimpanzee crossed, by making them white and adding black pupils
A crossed-eyes chimpanzee
medium
add
animal
[ "@@ -28,2 +28,6 @@\n\n-\\foreach \\i in {-1,1}\n-\\fill [BlueGrey900, xscale=\\i] (1/2,0) ellipse [radius=1/4];\n+\\foreach \\i in {-1,1}{\n+\\fill [White, xscale=\\i] (1/2,0) ellipse [radius=0.25];\n+}\n+\\foreach \\i in {-1,1}{\n+\\fill [Black, xscale=\\i] (1/3,0) ellipse [radius=0.125];\n+}", "@@ -28,2 +28,4 @@\n\n-\\foreach \\i in {-1,1}\n-\\fill [BlueGrey900, xscale=\\i] (1/2,0) ellipse [radius=1/4];\n+\\foreach \\i in {-1,1}{\n+\\fill [White, xscale=\\i] (1/2,0) ellipse [radius=0.25];\n+\\fill [Black, xscale=\\i] (3/7,0) ellipse [radius=0.125];\n+}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\nchimpanzee/.pic={\n\\tikzset{x=3cm/3.5,y=3cm/3.5, shift={(0,1/4)}}\n\\fill [BlueGrey700] (165:5/4 and 1) ellipse [radius=1/2];\n\\fill [Pink100] (165:5/4 and 1) ellipse [radius=1/3];\n\\fill [BlueGrey700]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [BlueGrey900] (15:5/4 and 1) ellipse [radius=1/2];\n \\fill [Pink200] (15:5/4 and 1) ellipse [radius=1/3];\n \\fill [BlueGrey900]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n}\n\\fill [Pink100] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n\\fill [Pink100, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\fill [Pink100, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [Pink200] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n \\fill [Pink200, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n \\fill [Pink200, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n}\n\\foreach \\i in {-1,1}{\n \\fill [White, xscale=\\i] (1/2,0) ellipse [radius=§rangei(0.25,0.1)];\n }\n\\foreach \\i in {-1,1}{\n \\fill [Black, xscale=\\i] (1/3,0) ellipse [radius=§rangei(0.125,0.05)];\n}\n \\fill [Pink300]\n (-1/7,-2/3) ellipse [radius=1/9]\n ( 1/7,-2/3) ellipse [radius=1/9];\n\\fill [Pink300]\n (-1/2,-1) arc (180:360:1/2 and 1/8) arc (360:180:1/2 and 1/4);\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {chimpanzee};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\nchimpanzee/.pic={\n\\tikzset{x=3cm/3.5,y=3cm/3.5, shift={(0,1/4)}}\n\\fill [BlueGrey700] (165:5/4 and 1) ellipse [radius=1/2];\n\\fill [Pink100] (165:5/4 and 1) ellipse [radius=1/3];\n\\fill [BlueGrey700]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [BlueGrey900] (15:5/4 and 1) ellipse [radius=1/2];\n \\fill [Pink200] (15:5/4 and 1) ellipse [radius=1/3];\n \\fill [BlueGrey900]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n}\n\\fill [Pink100] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n\\fill [Pink100, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\fill [Pink100, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [Pink200] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n \\fill [Pink200, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n \\fill [Pink200, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n}\n\\foreach \\i in {-1,1}{\n \\fill [White, xscale=\\i] (1/2,0) ellipse [radius=§rangei(0.25,0.1)];\n \\fill [Black, xscale=\\i] (3/7,0) ellipse [radius=§rangei(0.125,0.05)];\n}\n\\fill [Pink300]\n (-1/7,-2/3) ellipse [radius=1/9]\n ( 1/7,-2/3) ellipse [radius=1/9];\n\\fill [Pink300]\n (-1/2,-1) arc (180:360:1/2 and 1/8) arc (360:180:1/2 and 1/4);\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {chimpanzee};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\nchimpanzee/.pic={\n\\tikzset{x=3cm/3.5,y=3cm/3.5, shift={(0,1/4)}}\n\\fill [BlueGrey700] (165:5/4 and 1) ellipse [radius=1/2];\n\\fill [Pink100] (165:5/4 and 1) ellipse [radius=1/3];\n\\fill [BlueGrey700]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [BlueGrey900] (15:5/4 and 1) ellipse [radius=1/2];\n \\fill [Pink200] (15:5/4 and 1) ellipse [radius=1/3];\n \\fill [BlueGrey900]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n}\n\\fill [Pink100] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n\\fill [Pink100, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\fill [Pink100, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [Pink200] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n \\fill [Pink200, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n \\fill [Pink200, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n}\n\\foreach \\i in {-1,1}{\n \\fill [White, xscale=\\i] (1/2,0) ellipse [radius=0.25];\n }\n\\foreach \\i in {-1,1}{\n \\fill [Black, xscale=\\i] (1/3,0) ellipse [radius=0.125];\n}\n \\fill [Pink300]\n (-1/7,-2/3) ellipse [radius=1/9]\n ( 1/7,-2/3) ellipse [radius=1/9];\n\\fill [Pink300]\n (-1/2,-1) arc (180:360:1/2 and 1/8) arc (360:180:1/2 and 1/4);\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {chimpanzee};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\nchimpanzee/.pic={\n\\tikzset{x=3cm/3.5,y=3cm/3.5, shift={(0,1/4)}}\n\\fill [BlueGrey700] (165:5/4 and 1) ellipse [radius=1/2];\n\\fill [Pink100] (165:5/4 and 1) ellipse [radius=1/3];\n\\fill [BlueGrey700]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [BlueGrey900] (15:5/4 and 1) ellipse [radius=1/2];\n \\fill [Pink200] (15:5/4 and 1) ellipse [radius=1/3];\n \\fill [BlueGrey900]\n (0,-1/2) ellipse [x radius=1, y radius=4/3]\n (0, 0) ellipse [x radius=4/3, y radius=1];\n}\n\\fill [Pink100] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n\\fill [Pink100, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\fill [Pink100, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n\\scoped{\n \\clip(0,-2) rectangle(9/5,1);\n \\fill [Pink200] ( 0,-2/3) ellipse [x radius=5/6, y radius= 1];\n \\fill [Pink200, xscale=-1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n \\fill [Pink200, xscale= 1] (1/2, 0) ellipse [x radius=3/5, y radius=2/3];\n}\n\\foreach \\i in {-1,1}{\n \\fill [White, xscale=\\i] (1/2,0) ellipse [radius=0.25];\n \\fill [Black, xscale=\\i] (3/7,0) ellipse [radius=0.125];\n}\n\\fill [Pink300]\n (-1/7,-2/3) ellipse [radius=1/9]\n ( 1/7,-2/3) ellipse [radius=1/9];\n\\fill [Pink300]\n (-1/2,-1) arc (180:360:1/2 and 1/8) arc (360:180:1/2 and 1/4);\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {chimpanzee};\n\\end{tikzpicture}\n\\end{document}" ]
[ 20 ]
cladder_left_inner
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \usepackage{eqnarray, amsmath} \usepackage{xcolor} \begin{document} \begin{tikzpicture} \draw[black, thick, domain=25:340] plot[smooth] ({0.5*cos(\x)}, {0.5*sin(\x)}); \draw[black, thick, domain=15:350] plot[smooth] ({1.5*cos(\x)}, {1.5*sin(\x)}); \filldraw[color=black, thin] (0.6,0) circle (0.65pt); \filldraw[color=black, thin] (1.0,0) circle (0.65pt); \filldraw[color=black, thin] (1.4,0) circle (0.65pt); \filldraw[color=black] (0.31,0.38) circle (2pt); \filldraw[color=black] (0.03,0.49) circle (2pt); \filldraw[color=black] (-0.26,0.42) circle (2pt); \filldraw[color=black] (-0.46,0.18) circle (2pt); \filldraw[color=black] (-0.48,-0.12) circle (2pt); \filldraw[color=black] (-0.31,-0.38) circle (2pt); \filldraw[color=black] (-0.03,-0.49) circle (2pt); \filldraw[color=black] (0.26,-0.42) circle (2pt); \filldraw[color=black] (0.95,1.15) circle (2pt); \filldraw[color=black] (0.09,1.49) circle (2pt); \filldraw[color=black] (-0.80,1.26) circle (2pt); \filldraw[color=black] (-1.39,0.55) circle (2pt); \filldraw[color=black] (-1.45,-0.37) circle (2pt); \filldraw[color=black] (-0.95,-1.15) circle (2pt); \filldraw[color=black] (-0.09,-1.49) circle (2pt); \filldraw[color=black] (0.80,-1.26) circle (2pt); \draw[black, thick] (0.31,0.38) -- (0.95,1.15); \draw[black, thick] (0.03,0.49) -- (0.09,1.49); \draw[black, thick] (-0.26,0.42) -- (-0.80,1.26); \draw[black, thick] (-0.46,0.18) -- (-1.39,0.55); \draw[black, thick] (-0.48,-0.12) -- (-1.45,-0.37); \draw[black, thick] (-0.31,-0.38) -- (-0.95,-1.15); \draw[black, thick] (-0.03,-0.49) -- (-0.09,-1.49); \draw[black, thick] (0.26,-0.42) -- (0.80,-1.26); \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \usepackage{eqnarray, amsmath} \usepackage{xcolor} \begin{document} \begin{tikzpicture} %CLOSE LADDER %two basic circles \draw[black, thick, domain=25:340] plot[smooth] ({0.5*cos(\x)}, {0.5*sin(\x)}); \draw[black, thick, domain=15:350] plot[smooth] ({1.5*cos(\x)}, {1.5*sin(\x)}); %dots \filldraw[color=black, thin] (0.6,0) circle (0.65pt); \filldraw[color=black, thin] (1.0,0) circle (0.65pt); \filldraw[color=black, thin] (1.4,0) circle (0.65pt); %points 1 circle \filldraw[color=black] (0.31,0.38) circle (2pt); \filldraw[color=black] (0.03,0.49) circle (2pt); \filldraw[color=black] (-0.26,0.42) circle (2pt); \filldraw[color=black] (-0.46,0.18) circle (2pt); \filldraw[color=black] (-0.48,-0.12) circle (2pt); \filldraw[color=black] (-0.31,-0.38) circle (2pt); \filldraw[color=black] (-0.03,-0.49) circle (2pt); \filldraw[color=black] (0.26,-0.42) circle (2pt); %points 2 circle \filldraw[color=black] (0.95,1.15) circle (2pt); \filldraw[color=black] (0.09,1.49) circle (2pt); \filldraw[color=black] (-0.80,1.26) circle (2pt); \filldraw[color=black] (-1.39,0.55) circle (2pt); \filldraw[color=black] (-1.45,-0.37) circle (2pt); \filldraw[color=black] (-0.95,-1.15) circle (2pt); \filldraw[color=black] (-0.09,-1.49) circle (2pt); \filldraw[color=black] (0.80,-1.26) circle (2pt); %connection lines \draw[black, thick] (0.31,0.38) -- (0.95,1.15); \draw[black, thick] (0.03,0.49) -- (0.09,1.49); \draw[black, thick] (-0.26,0.42) -- (-0.80,1.26); \draw[black, thick] (-0.46,0.18) -- (-1.39,0.55); \draw[black, thick] (-0.48,-0.12) -- (-1.45,-0.37); \draw[black, thick] (-0.31,-0.38) -- (-0.95,-1.15); \draw[black, thick] (-0.03,-0.49) -- (-0.09,-1.49); \draw[black, thick] (0.26,-0.42) -- (0.80,-1.26); \end{tikzpicture} \end{document}
Move the inner circle to the left so that its center is at the quarter of the diameter of the outer circle.
A closed ladder, with the inner circle shifted to the right
medium
update
scientific
[ "@@ -8 +8 @@\n\n-\\draw[black, thick, domain=25:340] plot[smooth] ({0.5*cos(\\x)}, {0.5*sin(\\x)});\n+\\draw[black, thick, domain=25:340] plot[smooth] ({-0.75 + 0.5*cos(\\x)}, {0.5*sin(\\x)});\n@@ -10,11 +10,11 @@\n\n-\\filldraw[color=black, thin] (0.6,0) circle (0.65pt);\n-\\filldraw[color=black, thin] (1.0,0) circle (0.65pt);\n-\\filldraw[color=black, thin] (1.4,0) circle (0.65pt);\n-\\filldraw[color=black] (0.31,0.38) circle (2pt);\n-\\filldraw[color=black] (0.03,0.49) circle (2pt);\n-\\filldraw[color=black] (-0.26,0.42) circle (2pt);\n-\\filldraw[color=black] (-0.46,0.18) circle (2pt);\n-\\filldraw[color=black] (-0.48,-0.12) circle (2pt);\n-\\filldraw[color=black] (-0.31,-0.38) circle (2pt);\n-\\filldraw[color=black] (-0.03,-0.49) circle (2pt);\n-\\filldraw[color=black] (0.26,-0.42) circle (2pt);\n+\\filldraw[color=black, thin] (-0.15,0) circle (0.65pt);\n+\\filldraw[color=black, thin] (0.25,0) circle (0.65pt);\n+\\filldraw[color=black, thin] (0.65,0) circle (0.65pt);\n+\\filldraw[color=black] (-0.44,0.38) circle (2pt);\n+\\filldraw[color=black] (-0.72,0.49) circle (2pt);\n+\\filldraw[color=black] (-1.01,0.42) circle (2pt);\n+\\filldraw[color=black] (-1.21,0.18) circle (2pt);\n+\\filldraw[color=black] (-1.23,-0.12) circle (2pt);\n+\\filldraw[color=black] (-1.06,-0.38) circle (2pt);\n+\\filldraw[color=black] (-0.78,-0.49) circle (2pt);\n+\\filldraw[color=black] (-0.49,-0.42) circle (2pt);\n@@ -29,8 +29,8 @@\n\n-\\draw[black, thick] (0.31,0.38) -- (0.95,1.15);\n-\\draw[black, thick] (0.03,0.49) -- (0.09,1.49);\n-\\draw[black, thick] (-0.26,0.42) -- (-0.80,1.26);\n-\\draw[black, thick] (-0.46,0.18) -- (-1.39,0.55);\n-\\draw[black, thick] (-0.48,-0.12) -- (-1.45,-0.37);\n-\\draw[black, thick] (-0.31,-0.38) -- (-0.95,-1.15);\n-\\draw[black, thick] (-0.03,-0.49) -- (-0.09,-1.49);\n-\\draw[black, thick] (0.26,-0.42) -- (0.80,-1.26);\n+\\draw[black, thick] (-0.44,0.38) -- (0.95,1.15);\n+\\draw[black, thick] (-0.72,0.49) -- (0.09,1.49);\n+\\draw[black, thick] (-1.01,0.42) -- (-0.80,1.26);\n+\\draw[black, thick] (-1.21,0.18) -- (-1.39,0.55);\n+\\draw[black, thick] (-1.23,-0.12) -- (-1.45,-0.37);\n+\\draw[black, thick] (-1.06,-0.38) -- (-0.95,-1.15);\n+\\draw[black, thick] (-0.78,-0.49) -- (-0.09,-1.49);\n+\\draw[black, thick] (-0.49,-0.42) -- (0.80,-1.26);" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{positioning}\n\\usepackage{eqnarray, amsmath}\n\\usepackage{xcolor}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n\\draw[black, thick, domain=25:340] plot[smooth] ({-0.75 + 0.5*cos(\\x)}, {0.5*sin(\\x)});\n\\draw[black, thick, domain=15:350] plot[smooth] ({1.5*cos(\\x)}, {1.5*sin(\\x)});\n\\filldraw[color=black, thin] (§rangei(-0.15,0.05),0) circle (0.65pt);\n\\filldraw[color=black, thin] (§rangei(0.25,0.05),0) circle (0.65pt);\n\\filldraw[color=black, thin] (§rangei(0.65,0.05),0) circle (0.65pt);\n\\filldraw[color=black] (§rangei(-0.44,0.05),0.38) circle (2pt);\n\\filldraw[color=black] (§rangei(-0.72,0.05),0.49) circle (2pt);\n\\filldraw[color=black] (§rangei(-1.01,0.05),0.42) circle (2pt);\n\\filldraw[color=black] (§rangei(-1.21,0.05),0.18) circle (2pt);\n\\filldraw[color=black] (§rangei(-1.23,0.05),-0.12) circle (2pt);\n\\filldraw[color=black] (§rangei(-1.06,0.05),-0.38) circle (2pt);\n\\filldraw[color=black] (§rangei(-0.78,0.05),-0.49) circle (2pt);\n\\filldraw[color=black] (§rangei(-0.49,0.05),-0.42) circle (2pt);\n\\filldraw[color=black] (0.95,1.15) circle (2pt);\n\\filldraw[color=black] (0.09,1.49) circle (2pt);\n\\filldraw[color=black] (-0.80,1.26) circle (2pt);\n\\filldraw[color=black] (-1.39,0.55) circle (2pt);\n\\filldraw[color=black] (-1.45,-0.37) circle (2pt);\n\\filldraw[color=black] (-0.95,-1.15) circle (2pt);\n\\filldraw[color=black] (-0.09,-1.49) circle (2pt);\n\\filldraw[color=black] (0.80,-1.26) circle (2pt);\n\\draw[black, thick] (§rangei(-0.44,0.05),0.38) -- (0.95,1.15);\n\\draw[black, thick] (§rangei(-0.72,0.05),0.49) -- (0.09,1.49);\n\\draw[black, thick] (§rangei(-1.01,0.05),0.42) -- (-0.80,1.26);\n\\draw[black, thick] (§rangei(-1.21,0.05),0.18) -- (-1.39,0.55);\n\\draw[black, thick] (§rangei(-1.23,0.05),-0.12) -- (-1.45,-0.37);\n\\draw[black, thick] (§rangei(-1.06,0.05),-0.38) -- (-0.95,-1.15);\n\\draw[black, thick] (§rangei(-0.78,0.05),-0.49) -- (-0.09,-1.49);\n\\draw[black, thick] (§rangei(-0.49,0.05),-0.42) -- (0.80,-1.26);\n\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{positioning}\n\\usepackage{eqnarray, amsmath}\n\\usepackage{xcolor}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n\\draw[black, thick, domain=25:340] plot[smooth] ({-0.75 + 0.5*cos(\\x)}, {0.5*sin(\\x)});\n\\draw[black, thick, domain=15:350] plot[smooth] ({1.5*cos(\\x)}, {1.5*sin(\\x)});\n\\filldraw[color=black, thin] (-0.15,0) circle (0.65pt);\n\\filldraw[color=black, thin] (0.25,0) circle (0.65pt);\n\\filldraw[color=black, thin] (0.65,0) circle (0.65pt);\n\\filldraw[color=black] (-0.44,0.38) circle (2pt);\n\\filldraw[color=black] (-0.72,0.49) circle (2pt);\n\\filldraw[color=black] (-1.01,0.42) circle (2pt);\n\\filldraw[color=black] (-1.21,0.18) circle (2pt);\n\\filldraw[color=black] (-1.23,-0.12) circle (2pt);\n\\filldraw[color=black] (-1.06,-0.38) circle (2pt);\n\\filldraw[color=black] (-0.78,-0.49) circle (2pt);\n\\filldraw[color=black] (-0.49,-0.42) circle (2pt);\n\\filldraw[color=black] (0.95,1.15) circle (2pt);\n\\filldraw[color=black] (0.09,1.49) circle (2pt);\n\\filldraw[color=black] (-0.80,1.26) circle (2pt);\n\\filldraw[color=black] (-1.39,0.55) circle (2pt);\n\\filldraw[color=black] (-1.45,-0.37) circle (2pt);\n\\filldraw[color=black] (-0.95,-1.15) circle (2pt);\n\\filldraw[color=black] (-0.09,-1.49) circle (2pt);\n\\filldraw[color=black] (0.80,-1.26) circle (2pt);\n\\draw[black, thick] (-0.44,0.38) -- (0.95,1.15);\n\\draw[black, thick] (-0.72,0.49) -- (0.09,1.49);\n\\draw[black, thick] (-1.01,0.42) -- (-0.80,1.26);\n\\draw[black, thick] (-1.21,0.18) -- (-1.39,0.55);\n\\draw[black, thick] (-1.23,-0.12) -- (-1.45,-0.37);\n\\draw[black, thick] (-1.06,-0.38) -- (-0.95,-1.15);\n\\draw[black, thick] (-0.78,-0.49) -- (-0.09,-1.49);\n\\draw[black, thick] (-0.49,-0.42) -- (0.80,-1.26);\n\\end{tikzpicture}\n\n\\end{document}" ]
[ 62 ]
colnodes_colored
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \usetikzlibrary{calc} \makeatletter \tikzset{curlybrace/.style={rounded corners=2pt,line cap=round}} \pgfkeys{ /curlybrace/.cd, tip angle/.code = \def\cb@angle{#1}, /curlybrace/.unknown/.code ={\let\searchname=\pgfkeyscurrentname \pgfkeysalso{\searchname/.try=#1, /tikz/\searchname/.retry=#1}}} \def\curlybrace{\pgfutil@ifnextchar[{\curly@brace}{\curly@brace[]}} \def\curly@brace[#1]#2#3#4{ \pgfkeys{/curlybrace/.cd, tip angle = 0.75} \pgfqkeys{/curlybrace}{#1} \ifnum 1>#4 \def\cbrd{0.05} \else \def\cbrd{0.075} \fi \draw[/curlybrace/.cd,curlybrace,#1] (#2:#4-\cbrd) -- (#2:#4) arc (#2:{(#2+#3)/2-\cb@angle}:#4) --({(#2+#3)/2}:#4+\cbrd) coordinate (curlybracetipn); \draw[/curlybrace/.cd,curlybrace,#1] ({(#2+#3)/2}:#4+\cbrd) -- ({(#2+#3)/2+\cb@angle}:#4) arc ({(#2+#3)/2+\cb@angle} :#3:#4) --(#3:#4-\cbrd); } \makeatother \begin{document} \centering \begin{tikzpicture}[scale=1.5, myline/.style={line width=1.5} ] \foreach \n in {1,...,8}{ \coordinate (P\n) at (\n*45:1); } \coordinate (P9) at ($.5*(P3)+.5*(P8)$); \coordinate (P10) at ($.5*(P4)+.5*(P7)$); \draw[myline,blue!70] (P7) -- (P8) -- (P9); \draw[myline,red!70] (P3) -- (P4) -- (P10); \draw[myline,green!70!black] (P1) -- (P9) -- (P2); \draw[myline] (P5) -- (P10); \draw[myline] (P6) -- (P7); \draw[myline] (P2) -- (P3); \draw[dashed, very thick] (0,0) circle (1.55); \curlybrace[tip angle=-2,thick]{90}{-45}{1.7} \draw[green!70!black, very thick] (45:1.25) arc (45:90:1.25) arc (90:190:.25) -- ($(P9)+(-170:.25)$) arc (-170:-55:.25) -- ($(P1)+(-55:.25)$) arc (-55:45:.25); \draw[red!70, very thick] (135:1.25) arc (135:180:1.25) arc (180:250:.25) -- ($(P10)+(250:.25)$) arc (250:380:.25) -- ($(P3)+(20:.25)$) arc (20:135:.25); \draw[blue!70, very thick] (-45:1.2) arc (-45:0:1.2) arc (0:70:.2) -- ($(P9)+(70:.2)$) arc (70:215:.2) -- ($(P7)+(215:.2)$) arc (215:315:.2); \foreach \n in {1,...,10}{ \fill (P\n) circle (.1); } \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \usetikzlibrary{calc} \makeatletter \tikzset{curlybrace/.style={rounded corners=2pt,line cap=round}}% \pgfkeys{% https://tex.stackexchange.com/a/45129/121799 /curlybrace/.cd,% tip angle/.code = \def\cb@angle{#1}, /curlybrace/.unknown/.code ={\let\searchname=\pgfkeyscurrentname \pgfkeysalso{\searchname/.try=#1, /tikz/\searchname/.retry=#1}}} \def\curlybrace{\pgfutil@ifnextchar[{\curly@brace}{\curly@brace[]}}% \def\curly@brace[#1]#2#3#4{% \pgfkeys{/curlybrace/.cd, tip angle = 0.75}% \pgfqkeys{/curlybrace}{#1}% \ifnum 1>#4 \def\cbrd{0.05} \else \def\cbrd{0.075} \fi \draw[/curlybrace/.cd,curlybrace,#1] (#2:#4-\cbrd) -- (#2:#4) arc (#2:{(#2+#3)/2-\cb@angle}:#4) --({(#2+#3)/2}:#4+\cbrd) coordinate (curlybracetipn); \draw[/curlybrace/.cd,curlybrace,#1] ({(#2+#3)/2}:#4+\cbrd) -- ({(#2+#3)/2+\cb@angle}:#4) arc ({(#2+#3)/2+\cb@angle} :#3:#4) --(#3:#4-\cbrd); } \makeatother \begin{document} \centering \begin{tikzpicture}[scale=1.5, myline/.style={line width=1.5} ] %% Setting coordinates \foreach \n in {1,...,8}{ \coordinate (P\n) at (\n*45:1); } \coordinate (P9) at ($.5*(P3)+.5*(P8)$); \coordinate (P10) at ($.5*(P4)+.5*(P7)$); %% Drawing the graph \draw[myline,blue!70] (P7) -- (P8) -- (P9); \draw[myline,red!70] (P3) -- (P4) -- (P10); \draw[myline,green!70!black] (P1) -- (P9) -- (P2); \draw[myline] (P5) -- (P10); \draw[myline] (P6) -- (P7); \draw[myline] (P2) -- (P3); %% Drawing the shapes \draw[dashed, very thick] (0,0) circle (1.55); \curlybrace[tip angle=-2,thick]{90}{-45}{1.7} \draw[green!70!black, very thick] (45:1.25) arc (45:90:1.25) arc (90:190:.25) -- ($(P9)+(-170:.25)$) arc (-170:-55:.25) -- ($(P1)+(-55:.25)$) arc (-55:45:.25); \draw[red!70, very thick] (135:1.25) arc (135:180:1.25) arc (180:250:.25) -- ($(P10)+(250:.25)$) arc (250:380:.25) -- ($(P3)+(20:.25)$) arc (20:135:.25); \draw[blue!70, very thick] (-45:1.2) arc (-45:0:1.2) arc (0:70:.2) -- ($(P9)+(70:.2)$) arc (70:215:.2) -- ($(P7)+(215:.2)$) arc (215:315:.2); %% Drawing the node \foreach \n in {1,...,10}{ \fill (P\n) circle (.1); } \end{tikzpicture} \end{document}
Color the nodes of the graph in the color of the zone it is in. If a node is contained in multiple zones, color it with the color of each zone (half of each color if in two zones, a third if in three, etc).
A graph, with nodes colored depending on the area they are in.
hard
update
scientific
[ "@@ -50,3 +50,11 @@\n\n-\\foreach \\n in {1,...,10}{\n-\\fill (P\\n) circle (.1);\n-}\n+\\fill[green!70!black] (P1) circle (.1);\n+\\fill[green!70!black] (P2) circle (.1);\n+\\fill[red!70] (P3) circle (.1);\n+\\fill[red!70] (P4) circle (.1);\n+\\fill (P5) circle (.1);\n+\\fill (P6) circle (.1);\n+\\fill[blue!70] (P7) circle (.1);\n+\\fill[blue!70] (P8) circle (.1);\n+\\fill[blue!70] (P9) circle(0.1);\n+\\fill[green!70!black] (P9) + (0.1, 0) arc[start angle=0, end angle=180, radius=0.1];\n+\\fill[red!70] (P10) circle (.1);" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\n\\usepackage{tikz}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{calc}\n\n\\makeatletter \n\n\\tikzset{curlybrace/.style={rounded corners=2pt,line cap=round}}\n\\pgfkeys{\n/curlybrace/.cd,\ntip angle/.code = \\def\\cb@angle{#1},\n/curlybrace/.unknown/.code ={\\let\\searchname=\\pgfkeyscurrentname\n \\pgfkeysalso{\\searchname/.try=#1,\n /tikz/\\searchname/.retry=#1}}} \n\\def\\curlybrace{\\pgfutil@ifnextchar[{\\curly@brace}{\\curly@brace[]}}\n\n\\def\\curly@brace[#1]#2#3#4{\n\\pgfkeys{/curlybrace/.cd,\ntip angle = 0.75}\n\\pgfqkeys{/curlybrace}{#1}\n\\ifnum 1>#4 \\def\\cbrd{0.05} \\else \\def\\cbrd{0.075} \\fi\n\\draw[/curlybrace/.cd,curlybrace,#1] (#2:#4-\\cbrd) -- (#2:#4) arc (#2:{(#2+#3)/2-\\cb@angle}:#4) --({(#2+#3)/2}:#4+\\cbrd) coordinate (curlybracetipn);\n\\draw[/curlybrace/.cd,curlybrace,#1] ({(#2+#3)/2}:#4+\\cbrd) -- ({(#2+#3)/2+\\cb@angle}:#4) arc ({(#2+#3)/2+\\cb@angle} :#3:#4) --(#3:#4-\\cbrd);\n}\n\\makeatother\n\n\\begin{document}\n\n \\centering \n \\begin{tikzpicture}[scale=1.5,\n myline/.style={line width=1.5}\n ]\n\n \\foreach \\n in {1,...,8}{\n \\coordinate (P\\n) at (\\n*45:1);\n }\n \\coordinate (P9) at ($.5*(P3)+.5*(P8)$);\n \\coordinate (P10) at ($.5*(P4)+.5*(P7)$);\n\n \\draw[myline,blue!70] (P7) -- (P8) -- (P9);\n \\draw[myline,red!70] (P3) -- (P4) -- (P10);\n \\draw[myline,green!70!black] (P1) -- (P9) -- (P2);\n \\draw[myline] (P5) -- (P10);\n \\draw[myline] (P6) -- (P7);\n \\draw[myline] (P2) -- (P3);\n\n \\draw[dashed, very thick] (0,0) circle (1.55);\n \\curlybrace[tip angle=-2,thick]{90}{-45}{1.7}\n \\draw[green!70!black, very thick] (45:1.25) arc (45:90:1.25) arc (90:190:.25)\n -- ($(P9)+(-170:.25)$) arc (-170:-55:.25)\n -- ($(P1)+(-55:.25)$) arc (-55:45:.25);\n\n \\draw[red!70, very thick] (135:1.25) arc (135:180:1.25) arc (180:250:.25)\n -- ($(P10)+(250:.25)$) arc (250:380:.25)\n -- ($(P3)+(20:.25)$) arc (20:135:.25);\n\n \\draw[blue!70, very thick] (-45:1.2) arc (-45:0:1.2) arc (0:70:.2)\n -- ($(P9)+(70:.2)$) arc (70:215:.2)\n -- ($(P7)+(215:.2)$) arc (215:315:.2);\n\n \\fill[green!70!black] (P1) circle (.1);\n \\fill[green!70!black] (P2) circle (.1);\n \\fill[red!70] (P3) circle (.1);\n \\fill[red!70] (P4) circle (.1);\n \\fill (P5) circle (.1);\n \\fill (P6) circle (.1);\n \\fill[blue!70] (P7) circle (.1);\n \\fill[blue!70] (P8) circle (.1);\n \\fill[blue!70] (P9) circle(0.1);\n \\fill[green!70!black] (P9) + (0.1, 0) arc[start angle=0, end angle=180, radius=0.1];\n \\fill[red!70] (P10) circle (.1);\n \n \\end{tikzpicture} \n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\n\\usepackage{tikz}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{calc}\n\n\\makeatletter \n\n\\tikzset{curlybrace/.style={rounded corners=2pt,line cap=round}}\n\\pgfkeys{\n/curlybrace/.cd,\ntip angle/.code = \\def\\cb@angle{#1},\n/curlybrace/.unknown/.code ={\\let\\searchname=\\pgfkeyscurrentname\n \\pgfkeysalso{\\searchname/.try=#1,\n /tikz/\\searchname/.retry=#1}}} \n\\def\\curlybrace{\\pgfutil@ifnextchar[{\\curly@brace}{\\curly@brace[]}}\n\n\\def\\curly@brace[#1]#2#3#4{\n\\pgfkeys{/curlybrace/.cd,\ntip angle = 0.75}\n\\pgfqkeys{/curlybrace}{#1}\n\\ifnum 1>#4 \\def\\cbrd{0.05} \\else \\def\\cbrd{0.075} \\fi\n\\draw[/curlybrace/.cd,curlybrace,#1] (#2:#4-\\cbrd) -- (#2:#4) arc (#2:{(#2+#3)/2-\\cb@angle}:#4) --({(#2+#3)/2}:#4+\\cbrd) coordinate (curlybracetipn);\n\\draw[/curlybrace/.cd,curlybrace,#1] ({(#2+#3)/2}:#4+\\cbrd) -- ({(#2+#3)/2+\\cb@angle}:#4) arc ({(#2+#3)/2+\\cb@angle} :#3:#4) --(#3:#4-\\cbrd);\n}\n\\makeatother\n\n\\begin{document}\n\n \\centering \n \\begin{tikzpicture}[scale=1.5,\n myline/.style={line width=1.5}\n ]\n\n \\foreach \\n in {1,...,8}{\n \\coordinate (P\\n) at (\\n*45:1);\n }\n \\coordinate (P9) at ($.5*(P3)+.5*(P8)$);\n \\coordinate (P10) at ($.5*(P4)+.5*(P7)$);\n\n \\draw[myline,blue!70] (P7) -- (P8) -- (P9);\n \\draw[myline,red!70] (P3) -- (P4) -- (P10);\n \\draw[myline,green!70!black] (P1) -- (P9) -- (P2);\n \\draw[myline] (P5) -- (P10);\n \\draw[myline] (P6) -- (P7);\n \\draw[myline] (P2) -- (P3);\n\n \\draw[dashed, very thick] (0,0) circle (1.55);\n \\curlybrace[tip angle=-2,thick]{90}{-45}{1.7}\n \\draw[green!70!black, very thick] (45:1.25) arc (45:90:1.25) arc (90:190:.25)\n -- ($(P9)+(-170:.25)$) arc (-170:-55:.25)\n -- ($(P1)+(-55:.25)$) arc (-55:45:.25);\n\n \\draw[red!70, very thick] (135:1.25) arc (135:180:1.25) arc (180:250:.25)\n -- ($(P10)+(250:.25)$) arc (250:380:.25)\n -- ($(P3)+(20:.25)$) arc (20:135:.25);\n\n \\draw[blue!70, very thick] (-45:1.2) arc (-45:0:1.2) arc (0:70:.2)\n -- ($(P9)+(70:.2)$) arc (70:215:.2)\n -- ($(P7)+(215:.2)$) arc (215:315:.2);\n\n \\fill[green!70!black] (P1) circle (.1);\n \\fill[green!70!black] (P2) circle (.1);\n \\fill[red!70] (P3) circle (.1);\n \\fill[red!70] (P4) circle (.1);\n \\fill (P5) circle (.1);\n \\fill (P6) circle (.1);\n \\fill[blue!70] (P7) circle (.1);\n \\fill[blue!70] (P8) circle (.1);\n \\fill[blue!70] (P9) circle(0.1);\n \\fill[green!70!black] (P9) + (0.1, 0) arc[start angle=0, end angle=180, radius=0.1];\n \\fill[red!70] (P10) circle (.1);\n \n \\end{tikzpicture} \n\\end{document}" ]
[ 13, 13 ]
colnodes_removed_nodes
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \usetikzlibrary{calc} \makeatletter \tikzset{curlybrace/.style={rounded corners=2pt,line cap=round}} \pgfkeys{ /curlybrace/.cd, tip angle/.code = \def\cb@angle{#1}, /curlybrace/.unknown/.code ={\let\searchname=\pgfkeyscurrentname \pgfkeysalso{\searchname/.try=#1, /tikz/\searchname/.retry=#1}}} \def\curlybrace{\pgfutil@ifnextchar[{\curly@brace}{\curly@brace[]}} \def\curly@brace[#1]#2#3#4{ \pgfkeys{/curlybrace/.cd, tip angle = 0.75} \pgfqkeys{/curlybrace}{#1} \ifnum 1>#4 \def\cbrd{0.05} \else \def\cbrd{0.075} \fi \draw[/curlybrace/.cd,curlybrace,#1] (#2:#4-\cbrd) -- (#2:#4) arc (#2:{(#2+#3)/2-\cb@angle}:#4) --({(#2+#3)/2}:#4+\cbrd) coordinate (curlybracetipn); \draw[/curlybrace/.cd,curlybrace,#1] ({(#2+#3)/2}:#4+\cbrd) -- ({(#2+#3)/2+\cb@angle}:#4) arc ({(#2+#3)/2+\cb@angle} :#3:#4) --(#3:#4-\cbrd); } \makeatother \begin{document} \centering \begin{tikzpicture}[scale=1.5, myline/.style={line width=1.5} ] \foreach \n in {1,...,8}{ \coordinate (P\n) at (\n*45:1); } \coordinate (P9) at ($.5*(P3)+.5*(P8)$); \coordinate (P10) at ($.5*(P4)+.5*(P7)$); \draw[myline,blue!70] (P7) -- (P8) -- (P9); \draw[myline,red!70] (P3) -- (P4) -- (P10); \draw[myline,green!70!black] (P1) -- (P9) -- (P2); \draw[myline] (P5) -- (P10); \draw[myline] (P6) -- (P7); \draw[myline] (P2) -- (P3); \draw[dashed, very thick] (0,0) circle (1.55); \curlybrace[tip angle=-2,thick]{90}{-45}{1.7} \draw[green!70!black, very thick] (45:1.25) arc (45:90:1.25) arc (90:190:.25) -- ($(P9)+(-170:.25)$) arc (-170:-55:.25) -- ($(P1)+(-55:.25)$) arc (-55:45:.25); \draw[red!70, very thick] (135:1.25) arc (135:180:1.25) arc (180:250:.25) -- ($(P10)+(250:.25)$) arc (250:380:.25) -- ($(P3)+(20:.25)$) arc (20:135:.25); \draw[blue!70, very thick] (-45:1.2) arc (-45:0:1.2) arc (0:70:.2) -- ($(P9)+(70:.2)$) arc (70:215:.2) -- ($(P7)+(215:.2)$) arc (215:315:.2); \foreach \n in {1,...,10}{ \fill (P\n) circle (.1); } \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \usetikzlibrary{calc} \makeatletter \tikzset{curlybrace/.style={rounded corners=2pt,line cap=round}}% \pgfkeys{% https://tex.stackexchange.com/a/45129/121799 /curlybrace/.cd,% tip angle/.code = \def\cb@angle{#1}, /curlybrace/.unknown/.code ={\let\searchname=\pgfkeyscurrentname \pgfkeysalso{\searchname/.try=#1, /tikz/\searchname/.retry=#1}}} \def\curlybrace{\pgfutil@ifnextchar[{\curly@brace}{\curly@brace[]}}% \def\curly@brace[#1]#2#3#4{% \pgfkeys{/curlybrace/.cd, tip angle = 0.75}% \pgfqkeys{/curlybrace}{#1}% \ifnum 1>#4 \def\cbrd{0.05} \else \def\cbrd{0.075} \fi \draw[/curlybrace/.cd,curlybrace,#1] (#2:#4-\cbrd) -- (#2:#4) arc (#2:{(#2+#3)/2-\cb@angle}:#4) --({(#2+#3)/2}:#4+\cbrd) coordinate (curlybracetipn); \draw[/curlybrace/.cd,curlybrace,#1] ({(#2+#3)/2}:#4+\cbrd) -- ({(#2+#3)/2+\cb@angle}:#4) arc ({(#2+#3)/2+\cb@angle} :#3:#4) --(#3:#4-\cbrd); } \makeatother \begin{document} \centering \begin{tikzpicture}[scale=1.5, myline/.style={line width=1.5} ] %% Setting coordinates \foreach \n in {1,...,8}{ \coordinate (P\n) at (\n*45:1); } \coordinate (P9) at ($.5*(P3)+.5*(P8)$); \coordinate (P10) at ($.5*(P4)+.5*(P7)$); %% Drawing the graph \draw[myline,blue!70] (P7) -- (P8) -- (P9); \draw[myline,red!70] (P3) -- (P4) -- (P10); \draw[myline,green!70!black] (P1) -- (P9) -- (P2); \draw[myline] (P5) -- (P10); \draw[myline] (P6) -- (P7); \draw[myline] (P2) -- (P3); %% Drawing the shapes \draw[dashed, very thick] (0,0) circle (1.55); \curlybrace[tip angle=-2,thick]{90}{-45}{1.7} \draw[green!70!black, very thick] (45:1.25) arc (45:90:1.25) arc (90:190:.25) -- ($(P9)+(-170:.25)$) arc (-170:-55:.25) -- ($(P1)+(-55:.25)$) arc (-55:45:.25); \draw[red!70, very thick] (135:1.25) arc (135:180:1.25) arc (180:250:.25) -- ($(P10)+(250:.25)$) arc (250:380:.25) -- ($(P3)+(20:.25)$) arc (20:135:.25); \draw[blue!70, very thick] (-45:1.2) arc (-45:0:1.2) arc (0:70:.2) -- ($(P9)+(70:.2)$) arc (70:215:.2) -- ($(P7)+(215:.2)$) arc (215:315:.2); %% Drawing the node \foreach \n in {1,...,10}{ \fill (P\n) circle (.1); } \end{tikzpicture} \end{document}
Remove from the graph the two nodes that are not in a zone. Remove their links to the other nodes as well.
A graph, with all the nodes contained in colored areas.
easy
remove
scientific
[ "@@ -36,2 +35,0 @@\n\n-\\draw[myline] (P5) -- (P10);\n-\\draw[myline] (P6) -- (P7);\n@@ -50 +48 @@\n\n-\\foreach \\n in {1,...,10}{\n+\\foreach \\n in {1,2,3,4,7,8,9,10}{", "@@ -36,2 +35,0 @@\n\n-\\draw[myline] (P5) -- (P10);\n-\\draw[myline] (P6) -- (P7);\n@@ -50 +48 @@\n\n-\\foreach \\n in {1,...,10}{\n+\\foreach \\n in {1,...,4,7,8,9,10}{" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\n\\usepackage{tikz}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{calc}\n\n\\makeatletter \n\n\\tikzset{curlybrace/.style={rounded corners=2pt,line cap=round}}\n\\pgfkeys{\n/curlybrace/.cd,\ntip angle/.code = \\def\\cb@angle{#1},\n/curlybrace/.unknown/.code ={\\let\\searchname=\\pgfkeyscurrentname\n \\pgfkeysalso{\\searchname/.try=#1,\n /tikz/\\searchname/.retry=#1}}} \n\\def\\curlybrace{\\pgfutil@ifnextchar[{\\curly@brace}{\\curly@brace[]}}\n\n\\def\\curly@brace[#1]#2#3#4{\n\\pgfkeys{/curlybrace/.cd,\ntip angle = 0.75}\n\\pgfqkeys{/curlybrace}{#1}\n\\ifnum 1>#4 \\def\\cbrd{0.05} \\else \\def\\cbrd{0.075} \\fi\n\\draw[/curlybrace/.cd,curlybrace,#1] (#2:#4-\\cbrd) -- (#2:#4) arc (#2:{(#2+#3)/2-\\cb@angle}:#4) --({(#2+#3)/2}:#4+\\cbrd) coordinate (curlybracetipn);\n\\draw[/curlybrace/.cd,curlybrace,#1] ({(#2+#3)/2}:#4+\\cbrd) -- ({(#2+#3)/2+\\cb@angle}:#4) arc ({(#2+#3)/2+\\cb@angle} :#3:#4) --(#3:#4-\\cbrd);\n}\n\\makeatother\n\n\\begin{document}\n\n \\centering \n \\begin{tikzpicture}[scale=1.5,\n myline/.style={line width=1.5}\n ]\n\n \\foreach \\n in {1,...,8}{\n \\coordinate (P\\n) at (\\n*45:1);\n }\n \\coordinate (P9) at ($.5*(P3)+.5*(P8)$);\n \\coordinate (P10) at ($.5*(P4)+.5*(P7)$);\n\n \\draw[myline,blue!70] (P7) -- (P8) -- (P9);\n \\draw[myline,red!70] (P3) -- (P4) -- (P10);\n \\draw[myline,green!70!black] (P1) -- (P9) -- (P2);\n \\draw[myline] (P2) -- (P3);\n\n \\draw[dashed, very thick] (0,0) circle (1.55);\n \\curlybrace[tip angle=-2,thick]{90}{-45}{1.7}\n \\draw[green!70!black, very thick] (45:1.25) arc (45:90:1.25) arc (90:190:.25)\n -- ($(P9)+(-170:.25)$) arc (-170:-55:.25)\n -- ($(P1)+(-55:.25)$) arc (-55:45:.25);\n\n \\draw[red!70, very thick] (135:1.25) arc (135:180:1.25) arc (180:250:.25)\n -- ($(P10)+(250:.25)$) arc (250:380:.25)\n -- ($(P3)+(20:.25)$) arc (20:135:.25);\n\n \\draw[blue!70, very thick] (-45:1.2) arc (-45:0:1.2) arc (0:70:.2)\n -- ($(P9)+(70:.2)$) arc (70:215:.2)\n -- ($(P7)+(215:.2)$) arc (215:315:.2);\n\n \\foreach \\n in {1,2,3,4,7,8,9,10}{\n \\fill (P\\n) circle (.1);\n }\n \n \\end{tikzpicture} \n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\n\\usepackage{tikz}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{calc}\n\n\\makeatletter \n\n\\tikzset{curlybrace/.style={rounded corners=2pt,line cap=round}}\n\\pgfkeys{\n/curlybrace/.cd,\ntip angle/.code = \\def\\cb@angle{#1},\n/curlybrace/.unknown/.code ={\\let\\searchname=\\pgfkeyscurrentname\n \\pgfkeysalso{\\searchname/.try=#1,\n /tikz/\\searchname/.retry=#1}}} \n\\def\\curlybrace{\\pgfutil@ifnextchar[{\\curly@brace}{\\curly@brace[]}}\n\n\\def\\curly@brace[#1]#2#3#4{\n\\pgfkeys{/curlybrace/.cd,\ntip angle = 0.75}\n\\pgfqkeys{/curlybrace}{#1}\n\\ifnum 1>#4 \\def\\cbrd{0.05} \\else \\def\\cbrd{0.075} \\fi\n\\draw[/curlybrace/.cd,curlybrace,#1] (#2:#4-\\cbrd) -- (#2:#4) arc (#2:{(#2+#3)/2-\\cb@angle}:#4) --({(#2+#3)/2}:#4+\\cbrd) coordinate (curlybracetipn);\n\\draw[/curlybrace/.cd,curlybrace,#1] ({(#2+#3)/2}:#4+\\cbrd) -- ({(#2+#3)/2+\\cb@angle}:#4) arc ({(#2+#3)/2+\\cb@angle} :#3:#4) --(#3:#4-\\cbrd);\n}\n\\makeatother\n\n\\begin{document}\n\n \\centering \n \\begin{tikzpicture}[scale=1.5,\n myline/.style={line width=1.5}\n ]\n\n \\foreach \\n in {1,...,8}{\n \\coordinate (P\\n) at (\\n*45:1);\n }\n \\coordinate (P9) at ($.5*(P3)+.5*(P8)$);\n \\coordinate (P10) at ($.5*(P4)+.5*(P7)$);\n\n \\draw[myline,blue!70] (P7) -- (P8) -- (P9);\n \\draw[myline,red!70] (P3) -- (P4) -- (P10);\n \\draw[myline,green!70!black] (P1) -- (P9) -- (P2);\n \\draw[myline] (P2) -- (P3);\n\n \\draw[dashed, very thick] (0,0) circle (1.55);\n \\curlybrace[tip angle=-2,thick]{90}{-45}{1.7}\n \\draw[green!70!black, very thick] (45:1.25) arc (45:90:1.25) arc (90:190:.25)\n -- ($(P9)+(-170:.25)$) arc (-170:-55:.25)\n -- ($(P1)+(-55:.25)$) arc (-55:45:.25);\n\n \\draw[red!70, very thick] (135:1.25) arc (135:180:1.25) arc (180:250:.25)\n -- ($(P10)+(250:.25)$) arc (250:380:.25)\n -- ($(P3)+(20:.25)$) arc (20:135:.25);\n\n \\draw[blue!70, very thick] (-45:1.2) arc (-45:0:1.2) arc (0:70:.2)\n -- ($(P9)+(70:.2)$) arc (70:215:.2)\n -- ($(P7)+(215:.2)$) arc (215:315:.2);\n\n \\foreach \\n in {1,...,4,7,8,9,10}{\n \\fill (P\\n) circle (.1);\n }\n \n \\end{tikzpicture} \n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\n\\usepackage{tikz}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{calc}\n\n\\makeatletter \n\n\\tikzset{curlybrace/.style={rounded corners=2pt,line cap=round}}\n\\pgfkeys{\n/curlybrace/.cd,\ntip angle/.code = \\def\\cb@angle{#1},\n/curlybrace/.unknown/.code ={\\let\\searchname=\\pgfkeyscurrentname\n \\pgfkeysalso{\\searchname/.try=#1,\n /tikz/\\searchname/.retry=#1}}} \n\\def\\curlybrace{\\pgfutil@ifnextchar[{\\curly@brace}{\\curly@brace[]}}\n\n\\def\\curly@brace[#1]#2#3#4{\n\\pgfkeys{/curlybrace/.cd,\ntip angle = 0.75}\n\\pgfqkeys{/curlybrace}{#1}\n\\ifnum 1>#4 \\def\\cbrd{0.05} \\else \\def\\cbrd{0.075} \\fi\n\\draw[/curlybrace/.cd,curlybrace,#1] (#2:#4-\\cbrd) -- (#2:#4) arc (#2:{(#2+#3)/2-\\cb@angle}:#4) --({(#2+#3)/2}:#4+\\cbrd) coordinate (curlybracetipn);\n\\draw[/curlybrace/.cd,curlybrace,#1] ({(#2+#3)/2}:#4+\\cbrd) -- ({(#2+#3)/2+\\cb@angle}:#4) arc ({(#2+#3)/2+\\cb@angle} :#3:#4) --(#3:#4-\\cbrd);\n}\n\\makeatother\n\n\\begin{document}\n\n \\centering \n \\begin{tikzpicture}[scale=1.5,\n myline/.style={line width=1.5}\n ]\n\n \\foreach \\n in {1,...,8}{\n \\coordinate (P\\n) at (\\n*45:1);\n }\n \\coordinate (P9) at ($.5*(P3)+.5*(P8)$);\n \\coordinate (P10) at ($.5*(P4)+.5*(P7)$);\n\n \\draw[myline,blue!70] (P7) -- (P8) -- (P9);\n \\draw[myline,red!70] (P3) -- (P4) -- (P10);\n \\draw[myline,green!70!black] (P1) -- (P9) -- (P2);\n \\draw[myline] (P2) -- (P3);\n\n \\draw[dashed, very thick] (0,0) circle (1.55);\n \\curlybrace[tip angle=-2,thick]{90}{-45}{1.7}\n \\draw[green!70!black, very thick] (45:1.25) arc (45:90:1.25) arc (90:190:.25)\n -- ($(P9)+(-170:.25)$) arc (-170:-55:.25)\n -- ($(P1)+(-55:.25)$) arc (-55:45:.25);\n\n \\draw[red!70, very thick] (135:1.25) arc (135:180:1.25) arc (180:250:.25)\n -- ($(P10)+(250:.25)$) arc (250:380:.25)\n -- ($(P3)+(20:.25)$) arc (20:135:.25);\n\n \\draw[blue!70, very thick] (-45:1.2) arc (-45:0:1.2) arc (0:70:.2)\n -- ($(P9)+(70:.2)$) arc (70:215:.2)\n -- ($(P7)+(215:.2)$) arc (215:315:.2);\n\n \\foreach \\n in {1,2,3,4,7,8,9,10}{\n \\fill (P\\n) circle (.1);\n }\n \n \\end{tikzpicture} \n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\n\\usepackage{tikz}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{calc}\n\n\\makeatletter \n\n\\tikzset{curlybrace/.style={rounded corners=2pt,line cap=round}}\n\\pgfkeys{\n/curlybrace/.cd,\ntip angle/.code = \\def\\cb@angle{#1},\n/curlybrace/.unknown/.code ={\\let\\searchname=\\pgfkeyscurrentname\n \\pgfkeysalso{\\searchname/.try=#1,\n /tikz/\\searchname/.retry=#1}}} \n\\def\\curlybrace{\\pgfutil@ifnextchar[{\\curly@brace}{\\curly@brace[]}}\n\n\\def\\curly@brace[#1]#2#3#4{\n\\pgfkeys{/curlybrace/.cd,\ntip angle = 0.75}\n\\pgfqkeys{/curlybrace}{#1}\n\\ifnum 1>#4 \\def\\cbrd{0.05} \\else \\def\\cbrd{0.075} \\fi\n\\draw[/curlybrace/.cd,curlybrace,#1] (#2:#4-\\cbrd) -- (#2:#4) arc (#2:{(#2+#3)/2-\\cb@angle}:#4) --({(#2+#3)/2}:#4+\\cbrd) coordinate (curlybracetipn);\n\\draw[/curlybrace/.cd,curlybrace,#1] ({(#2+#3)/2}:#4+\\cbrd) -- ({(#2+#3)/2+\\cb@angle}:#4) arc ({(#2+#3)/2+\\cb@angle} :#3:#4) --(#3:#4-\\cbrd);\n}\n\\makeatother\n\n\\begin{document}\n\n \\centering \n \\begin{tikzpicture}[scale=1.5,\n myline/.style={line width=1.5}\n ]\n\n \\foreach \\n in {1,...,8}{\n \\coordinate (P\\n) at (\\n*45:1);\n }\n \\coordinate (P9) at ($.5*(P3)+.5*(P8)$);\n \\coordinate (P10) at ($.5*(P4)+.5*(P7)$);\n\n \\draw[myline,blue!70] (P7) -- (P8) -- (P9);\n \\draw[myline,red!70] (P3) -- (P4) -- (P10);\n \\draw[myline,green!70!black] (P1) -- (P9) -- (P2);\n \\draw[myline] (P2) -- (P3);\n\n \\draw[dashed, very thick] (0,0) circle (1.55);\n \\curlybrace[tip angle=-2,thick]{90}{-45}{1.7}\n \\draw[green!70!black, very thick] (45:1.25) arc (45:90:1.25) arc (90:190:.25)\n -- ($(P9)+(-170:.25)$) arc (-170:-55:.25)\n -- ($(P1)+(-55:.25)$) arc (-55:45:.25);\n\n \\draw[red!70, very thick] (135:1.25) arc (135:180:1.25) arc (180:250:.25)\n -- ($(P10)+(250:.25)$) arc (250:380:.25)\n -- ($(P3)+(20:.25)$) arc (20:135:.25);\n\n \\draw[blue!70, very thick] (-45:1.2) arc (-45:0:1.2) arc (0:70:.2)\n -- ($(P9)+(70:.2)$) arc (70:215:.2)\n -- ($(P7)+(215:.2)$) arc (215:315:.2);\n\n \\foreach \\n in {1,...,4,7,8,9,10}{\n \\fill (P\\n) circle (.1);\n }\n \n \\end{tikzpicture} \n\\end{document}" ]
[ 18 ]
colnodes_yellow_zone
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \usetikzlibrary{calc} \makeatletter \tikzset{curlybrace/.style={rounded corners=2pt,line cap=round}} \pgfkeys{ /curlybrace/.cd, tip angle/.code = \def\cb@angle{#1}, /curlybrace/.unknown/.code ={\let\searchname=\pgfkeyscurrentname \pgfkeysalso{\searchname/.try=#1, /tikz/\searchname/.retry=#1}}} \def\curlybrace{\pgfutil@ifnextchar[{\curly@brace}{\curly@brace[]}} \def\curly@brace[#1]#2#3#4{ \pgfkeys{/curlybrace/.cd, tip angle = 0.75} \pgfqkeys{/curlybrace}{#1} \ifnum 1>#4 \def\cbrd{0.05} \else \def\cbrd{0.075} \fi \draw[/curlybrace/.cd,curlybrace,#1] (#2:#4-\cbrd) -- (#2:#4) arc (#2:{(#2+#3)/2-\cb@angle}:#4) --({(#2+#3)/2}:#4+\cbrd) coordinate (curlybracetipn); \draw[/curlybrace/.cd,curlybrace,#1] ({(#2+#3)/2}:#4+\cbrd) -- ({(#2+#3)/2+\cb@angle}:#4) arc ({(#2+#3)/2+\cb@angle} :#3:#4) --(#3:#4-\cbrd); } \makeatother \begin{document} \centering \begin{tikzpicture}[scale=1.5, myline/.style={line width=1.5} ] \foreach \n in {1,...,8}{ \coordinate (P\n) at (\n*45:1); } \coordinate (P9) at ($.5*(P3)+.5*(P8)$); \coordinate (P10) at ($.5*(P4)+.5*(P7)$); \draw[myline,blue!70] (P7) -- (P8) -- (P9); \draw[myline,red!70] (P3) -- (P4) -- (P10); \draw[myline,green!70!black] (P1) -- (P9) -- (P2); \draw[myline] (P5) -- (P10); \draw[myline] (P6) -- (P7); \draw[myline] (P2) -- (P3); \draw[dashed, very thick] (0,0) circle (1.55); \curlybrace[tip angle=-2,thick]{90}{-45}{1.7} \draw[green!70!black, very thick] (45:1.25) arc (45:90:1.25) arc (90:190:.25) -- ($(P9)+(-170:.25)$) arc (-170:-55:.25) -- ($(P1)+(-55:.25)$) arc (-55:45:.25); \draw[red!70, very thick] (135:1.25) arc (135:180:1.25) arc (180:250:.25) -- ($(P10)+(250:.25)$) arc (250:380:.25) -- ($(P3)+(20:.25)$) arc (20:135:.25); \draw[blue!70, very thick] (-45:1.2) arc (-45:0:1.2) arc (0:70:.2) -- ($(P9)+(70:.2)$) arc (70:215:.2) -- ($(P7)+(215:.2)$) arc (215:315:.2); \foreach \n in {1,...,10}{ \fill (P\n) circle (.1); } \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \usetikzlibrary{calc} \makeatletter \tikzset{curlybrace/.style={rounded corners=2pt,line cap=round}}% \pgfkeys{% https://tex.stackexchange.com/a/45129/121799 /curlybrace/.cd,% tip angle/.code = \def\cb@angle{#1}, /curlybrace/.unknown/.code ={\let\searchname=\pgfkeyscurrentname \pgfkeysalso{\searchname/.try=#1, /tikz/\searchname/.retry=#1}}} \def\curlybrace{\pgfutil@ifnextchar[{\curly@brace}{\curly@brace[]}}% \def\curly@brace[#1]#2#3#4{% \pgfkeys{/curlybrace/.cd, tip angle = 0.75}% \pgfqkeys{/curlybrace}{#1}% \ifnum 1>#4 \def\cbrd{0.05} \else \def\cbrd{0.075} \fi \draw[/curlybrace/.cd,curlybrace,#1] (#2:#4-\cbrd) -- (#2:#4) arc (#2:{(#2+#3)/2-\cb@angle}:#4) --({(#2+#3)/2}:#4+\cbrd) coordinate (curlybracetipn); \draw[/curlybrace/.cd,curlybrace,#1] ({(#2+#3)/2}:#4+\cbrd) -- ({(#2+#3)/2+\cb@angle}:#4) arc ({(#2+#3)/2+\cb@angle} :#3:#4) --(#3:#4-\cbrd); } \makeatother \begin{document} \centering \begin{tikzpicture}[scale=1.5, myline/.style={line width=1.5} ] %% Setting coordinates \foreach \n in {1,...,8}{ \coordinate (P\n) at (\n*45:1); } \coordinate (P9) at ($.5*(P3)+.5*(P8)$); \coordinate (P10) at ($.5*(P4)+.5*(P7)$); %% Drawing the graph \draw[myline,blue!70] (P7) -- (P8) -- (P9); \draw[myline,red!70] (P3) -- (P4) -- (P10); \draw[myline,green!70!black] (P1) -- (P9) -- (P2); \draw[myline] (P5) -- (P10); \draw[myline] (P6) -- (P7); \draw[myline] (P2) -- (P3); %% Drawing the shapes \draw[dashed, very thick] (0,0) circle (1.55); \curlybrace[tip angle=-2,thick]{90}{-45}{1.7} \draw[green!70!black, very thick] (45:1.25) arc (45:90:1.25) arc (90:190:.25) -- ($(P9)+(-170:.25)$) arc (-170:-55:.25) -- ($(P1)+(-55:.25)$) arc (-55:45:.25); \draw[red!70, very thick] (135:1.25) arc (135:180:1.25) arc (180:250:.25) -- ($(P10)+(250:.25)$) arc (250:380:.25) -- ($(P3)+(20:.25)$) arc (20:135:.25); \draw[blue!70, very thick] (-45:1.2) arc (-45:0:1.2) arc (0:70:.2) -- ($(P9)+(70:.2)$) arc (70:215:.2) -- ($(P7)+(215:.2)$) arc (215:315:.2); %% Drawing the node \foreach \n in {1,...,10}{ \fill (P\n) circle (.1); } \end{tikzpicture} \end{document}
Add a new yellow zone, that contains the two remaining nodes.
A graph, with nodes contained in red, green, blue and yellow areas.
hard
add
scientific
[ "@@ -49,0 +50,2 @@\n\n+\\draw[yellow!70, very thick] ($(P5)+(70:.2)$) arc (70:250:.2)\n+-- ($(P6)+(250:.2)$) arc (250:430:.2) -- cycle;" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\n\\usepackage{tikz}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{calc}\n\n\\makeatletter \n\n\\tikzset{curlybrace/.style={rounded corners=2pt,line cap=round}}\n\\pgfkeys{\n/curlybrace/.cd,\ntip angle/.code = \\def\\cb@angle{#1},\n/curlybrace/.unknown/.code ={\\let\\searchname=\\pgfkeyscurrentname\n \\pgfkeysalso{\\searchname/.try=#1,\n /tikz/\\searchname/.retry=#1}}} \n\\def\\curlybrace{\\pgfutil@ifnextchar[{\\curly@brace}{\\curly@brace[]}}\n\n\\def\\curly@brace[#1]#2#3#4{\n\\pgfkeys{/curlybrace/.cd,\ntip angle = 0.75}\n\\pgfqkeys{/curlybrace}{#1}\n\\ifnum 1>#4 \\def\\cbrd{0.05} \\else \\def\\cbrd{0.075} \\fi\n\\draw[/curlybrace/.cd,curlybrace,#1] (#2:#4-\\cbrd) -- (#2:#4) arc (#2:{(#2+#3)/2-\\cb@angle}:#4) --({(#2+#3)/2}:#4+\\cbrd) coordinate (curlybracetipn);\n\\draw[/curlybrace/.cd,curlybrace,#1] ({(#2+#3)/2}:#4+\\cbrd) -- ({(#2+#3)/2+\\cb@angle}:#4) arc ({(#2+#3)/2+\\cb@angle} :#3:#4) --(#3:#4-\\cbrd);\n}\n\\makeatother\n\n\\begin{document}\n\n \\centering \n \\begin{tikzpicture}[scale=1.5,\n myline/.style={line width=1.5}\n ]\n\n \\foreach \\n in {1,...,8}{\n \\coordinate (P\\n) at (\\n*45:1);\n }\n \\coordinate (P9) at ($.5*(P3)+.5*(P8)$);\n \\coordinate (P10) at ($.5*(P4)+.5*(P7)$);\n\n \\draw[myline,blue!70] (P7) -- (P8) -- (P9);\n \\draw[myline,red!70] (P3) -- (P4) -- (P10);\n \\draw[myline,green!70!black] (P1) -- (P9) -- (P2);\n \\draw[myline] (P5) -- (P10);\n \\draw[myline] (P6) -- (P7);\n \\draw[myline] (P2) -- (P3);\n\n \\draw[dashed, very thick] (0,0) circle (1.55);\n \\curlybrace[tip angle=-2,thick]{90}{-45}{1.7}\n \\draw[green!70!black, very thick] (45:1.25) arc (45:90:1.25) arc (90:190:.25)\n -- ($(P9)+(-170:.25)$) arc (-170:-55:.25)\n -- ($(P1)+(-55:.25)$) arc (-55:45:.25);\n\n \\draw[red!70, very thick] (135:1.25) arc (135:180:1.25) arc (180:250:.25)\n -- ($(P10)+(250:.25)$) arc (250:380:.25)\n -- ($(P3)+(20:.25)$) arc (20:135:.25);\n\n \\draw[blue!70, very thick] (-45:1.2) arc (-45:0:1.2) arc (0:70:.2)\n -- ($(P9)+(70:.2)$) arc (70:215:.2)\n -- ($(P7)+(215:.2)$) arc (215:315:.2);\n\n \\draw[yellow!70, very thick] ($(P5)+(70:.2)$) arc (§rangei(70,10):§rangei(250,10):.2)\n -- ($(P6)+(250:.2)$) arc (§rangei(250,10):§rangei(430,10):.2) -- cycle;\n \\foreach \\n in {1,...,10}{\n \\fill (P\\n) circle (.1);\n }\n \n \\end{tikzpicture} \n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\n\\usepackage{tikz}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{calc}\n\n\\makeatletter \n\n\\tikzset{curlybrace/.style={rounded corners=2pt,line cap=round}}\n\\pgfkeys{\n/curlybrace/.cd,\ntip angle/.code = \\def\\cb@angle{#1},\n/curlybrace/.unknown/.code ={\\let\\searchname=\\pgfkeyscurrentname\n \\pgfkeysalso{\\searchname/.try=#1,\n /tikz/\\searchname/.retry=#1}}} \n\\def\\curlybrace{\\pgfutil@ifnextchar[{\\curly@brace}{\\curly@brace[]}}\n\n\\def\\curly@brace[#1]#2#3#4{\n\\pgfkeys{/curlybrace/.cd,\ntip angle = 0.75}\n\\pgfqkeys{/curlybrace}{#1}\n\\ifnum 1>#4 \\def\\cbrd{0.05} \\else \\def\\cbrd{0.075} \\fi\n\\draw[/curlybrace/.cd,curlybrace,#1] (#2:#4-\\cbrd) -- (#2:#4) arc (#2:{(#2+#3)/2-\\cb@angle}:#4) --({(#2+#3)/2}:#4+\\cbrd) coordinate (curlybracetipn);\n\\draw[/curlybrace/.cd,curlybrace,#1] ({(#2+#3)/2}:#4+\\cbrd) -- ({(#2+#3)/2+\\cb@angle}:#4) arc ({(#2+#3)/2+\\cb@angle} :#3:#4) --(#3:#4-\\cbrd);\n}\n\\makeatother\n\n\\begin{document}\n\n \\centering \n \\begin{tikzpicture}[scale=1.5,\n myline/.style={line width=1.5}\n ]\n\n \\foreach \\n in {1,...,8}{\n \\coordinate (P\\n) at (\\n*45:1);\n }\n \\coordinate (P9) at ($.5*(P3)+.5*(P8)$);\n \\coordinate (P10) at ($.5*(P4)+.5*(P7)$);\n\n \\draw[myline,blue!70] (P7) -- (P8) -- (P9);\n \\draw[myline,red!70] (P3) -- (P4) -- (P10);\n \\draw[myline,green!70!black] (P1) -- (P9) -- (P2);\n \\draw[myline] (P5) -- (P10);\n \\draw[myline] (P6) -- (P7);\n \\draw[myline] (P2) -- (P3);\n\n \\draw[dashed, very thick] (0,0) circle (1.55);\n \\curlybrace[tip angle=-2,thick]{90}{-45}{1.7}\n \\draw[green!70!black, very thick] (45:1.25) arc (45:90:1.25) arc (90:190:.25)\n -- ($(P9)+(-170:.25)$) arc (-170:-55:.25)\n -- ($(P1)+(-55:.25)$) arc (-55:45:.25);\n\n \\draw[red!70, very thick] (135:1.25) arc (135:180:1.25) arc (180:250:.25)\n -- ($(P10)+(250:.25)$) arc (250:380:.25)\n -- ($(P3)+(20:.25)$) arc (20:135:.25);\n\n \\draw[blue!70, very thick] (-45:1.2) arc (-45:0:1.2) arc (0:70:.2)\n -- ($(P9)+(70:.2)$) arc (70:215:.2)\n -- ($(P7)+(215:.2)$) arc (215:315:.2);\n\n \\draw[yellow!70, very thick] ($(P5)+(70:.2)$) arc (70:250:.2)\n -- ($(P6)+(250:.2)$) arc (250:430:.2) -- cycle;\n \\foreach \\n in {1,...,10}{\n \\fill (P\\n) circle (.1);\n }\n \n \\end{tikzpicture} \n\\end{document}" ]
[ 10 ]
computer_layout
\documentclass[tikz,border=5]{standalone} \usetikzlibrary{positioning, matrix, arrows.meta,calc} \begin{document} \begin{tikzpicture}[ myline/.style={draw=green!40!black, thick}, box/.style={myline, minimum height=1cm, minimum width=1cm, font=\sffamily, inner sep=.3333em}, >=Stealth] \matrix (CPU) [matrix of nodes, inner ysep=3mm, nodes=box, myline, column sep=1mm] {|(CU)|CU & |[draw=none]|CPU & |(ALU)| ALU \\}; \node[box, above left=5mm of CPU] (input) {INPUT}; \node[box, below left=5mm of CPU] (output) {OUTPUT}; \node[box, at=(CPU|-output)] (memory) {MEMORY}; \node[box, below left=5mm of memory, anchor=north] (storage) {STORAGE}; \draw[<->, myline] (storage)-|(memory); \draw[->,myline] (input)-|(CU); \draw[->,myline] (CU)|-(output); \draw[<->, myline] ($(CU.south west)!.2!(CU.south east)$) coordinate (aux)--(aux|-storage.north); \draw[<->, myline] ($(CU.south west)!.8!(CU.south east)$) coordinate (aux)--(aux|-memory.north); \draw[<->, myline] ($(ALU.south west)!.2!(ALU.south east)$) coordinate (aux)--(aux|-memory.north); \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usetikzlibrary{positioning, matrix, arrows.meta,calc} \begin{document} \begin{tikzpicture}[ myline/.style={draw=green!40!black, thick}, box/.style={myline, minimum height=1cm, minimum width=1cm, font=\sffamily, inner sep=.3333em}, >=Stealth] \matrix (CPU) [matrix of nodes, inner ysep=3mm, nodes=box, myline, column sep=1mm] {|(CU)|CU & |[draw=none]|CPU & |(ALU)| ALU \\}; \node[box, above left=5mm of CPU] (input) {INPUT}; \node[box, below left=5mm of CPU] (output) {OUTPUT}; \node[box, at=(CPU|-output)] (memory) {MEMORY}; \node[box, below left=5mm of memory, anchor=north] (storage) {STORAGE}; \draw[<->, myline] (storage)-|(memory); \draw[->,myline] (input)-|(CU); \draw[->,myline] (CU)|-(output); \draw[<->, myline] ($(CU.south west)!.2!(CU.south east)$) coordinate (aux)--(aux|-storage.north); \draw[<->, myline] ($(CU.south west)!.8!(CU.south east)$) coordinate (aux)--(aux|-memory.north); \draw[<->, myline] ($(ALU.south west)!.2!(ALU.south east)$) coordinate (aux)--(aux|-memory.north); \end{tikzpicture} \end{document}
Change the layout, so that the memory and storage are above the CPU, and the input is on the left of it. Adapt the arrow so that they don't overlap with elements.
A diagram of a computer system, with storage and memory displayed at the top
hard
update
scientific
[ "@@ -9 +9 @@\n\n-\\node[box, above left=5mm of CPU] (input) {INPUT};\n+\\node[box, left=5mm of CPU] (input) {INPUT};\n@@ -11,2 +11,2 @@\n\n-\\node[box, at=(CPU|-output)] (memory) {MEMORY};\n-\\node[box, below left=5mm of memory, anchor=north] (storage) {STORAGE};\n+\\node[box, above=5mm of CPU] (memory) {MEMORY};\n+\\node[box, above left=5mm of memory, anchor=south] (storage) {STORAGE};\n@@ -14 +14 @@\n\n-\\draw[->,myline] (input)-|(CU);\n+\\draw[->,myline] (input)--(CU);\n@@ -16,3 +16,3 @@\n\n-\\draw[<->, myline] ($(CU.south west)!.2!(CU.south east)$) coordinate (aux)--(aux|-storage.north);\n-\\draw[<->, myline] ($(CU.south west)!.8!(CU.south east)$) coordinate (aux)--(aux|-memory.north);\n-\\draw[<->, myline] ($(ALU.south west)!.2!(ALU.south east)$) coordinate (aux)--(aux|-memory.north);\n+\\draw[<->, myline] ($(CU.north west)!.2!(CU.north east)$) coordinate (aux)--(aux|-storage.south);\n+\\draw[<->, myline] ($(CU.north west)!.8!(CU.north east)$) coordinate (aux)--(aux|-memory.south);\n+\\draw[<->, myline] ($(ALU.north west)!.2!(ALU.north east)$) coordinate (aux)--(aux|-memory.south);" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usetikzlibrary{positioning, matrix, arrows.meta,calc}\n\n\\begin{document}\n\\begin{tikzpicture}[\n myline/.style={draw=green!40!black, thick},\n box/.style={myline, minimum height=1cm, minimum width=1cm, font=\\sffamily, inner sep=.3333em}, >=Stealth]\n\n \\matrix (CPU) [matrix of nodes, inner ysep=3mm, nodes=box, myline, column sep=1mm]\n {|(CU)|CU & |[draw=none]|CPU & |(ALU)| ALU \\\\};\n \\node[box, left=5mm of CPU] (input) {INPUT};\n\n \\node[box, below left=5mm of CPU] (output) {OUTPUT};\n \\node[box, above=5mm of CPU] (memory) {MEMORY};\n \\node[box, above left=5mm of memory, anchor=south] (storage) {STORAGE};\n\n \\draw[<->, myline] (storage)-|(memory);\n \\draw[->,myline] (input)--(CU);\n \\draw[->,myline] (CU)|-(output);\n\n \\draw[<->, myline] ($(CU.north west)!.2!(CU.north east)$) coordinate (aux)--(aux|-storage.south);\n \\draw[<->, myline] ($(CU.north west)!.8!(CU.north east)$) coordinate (aux)--(aux|-memory.south);\n \\draw[<->, myline] ($(ALU.north west)!.2!(ALU.north east)$) coordinate (aux)--(aux|-memory.south);\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usetikzlibrary{positioning, matrix, arrows.meta,calc}\n\n\\begin{document}\n\\begin{tikzpicture}[\n myline/.style={draw=green!40!black, thick},\n box/.style={myline, minimum height=1cm, minimum width=1cm, font=\\sffamily, inner sep=.3333em}, >=Stealth]\n\n \\matrix (CPU) [matrix of nodes, inner ysep=3mm, nodes=box, myline, column sep=1mm]\n {|(CU)|CU & |[draw=none]|CPU & |(ALU)| ALU \\\\};\n \\node[box, left=5mm of CPU] (input) {INPUT};\n\n \\node[box, below left=5mm of CPU] (output) {OUTPUT};\n \\node[box, above=5mm of CPU] (memory) {MEMORY};\n \\node[box, above left=5mm of memory, anchor=south] (storage) {STORAGE};\n\n \\draw[<->, myline] (storage)-|(memory);\n \\draw[->,myline] (input)--(CU);\n \\draw[->,myline] (CU)|-(output);\n\n \\draw[<->, myline] ($(CU.north west)!.2!(CU.north east)$) coordinate (aux)--(aux|-storage.south);\n \\draw[<->, myline] ($(CU.north west)!.8!(CU.north east)$) coordinate (aux)--(aux|-memory.south);\n \\draw[<->, myline] ($(ALU.north west)!.2!(ALU.north east)$) coordinate (aux)--(aux|-memory.south);\n\\end{tikzpicture}\n\\end{document}" ]
[ 60 ]
control_gd_removed
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{ arrows.meta, bending, positioning } \tikzset{ > = Latex, arrows = {[bend]}, signal/.style = coordinate, sum/.style = { draw, circle, minimum size = 2mm }, block/.style = { draw, rectangle, minimum height = 2em, minimum width = 4em }, branch/.style = { sum, minimum size = 1mm, fill = black } } \begin{document} \begin{tikzpicture}[auto] \node[signal] (input) {}; \node[sum, right = of input] (left sum) {}; \node[block, right = of left sum] (controller) {$G_R$}; \node[block, right = of controller] (system) {$G_S$}; \draw [->] (controller) -- node[name = u] {$U$} (system); \node[block, above = of system] (dynamic of disturbances) {$G_D$}; \node[signal, left = of dynamic of disturbances] (disturbances) {}; \node[sum, right = of system] (right sum) {}; \node[branch, right = of right sum] (branch) {}; \node[signal, right = of branch] (output) {}; \node[sum, below = of branch] (lower sum) {}; \node[signal, right = of lower sum] (measurement noise) {}; \node[block] (measurement) at (u |- lower sum) {$G_M$}; \draw [->] (input) -- node {$W$} (left sum); \draw [->] (left sum) -- node {$E$} (controller); \draw [->] (system) -- (right sum); \draw [->] (disturbances) -- node {$Z$} (dynamic of disturbances); \draw [->] (dynamic of disturbances) -| (right sum); \draw (right sum) -- (branch); \draw [->] (branch) -- node {$Y$} (output); \draw [->] (branch) -- (lower sum); \draw [->] (measurement noise) -- node[above] {$M$} (lower sum); \draw [->] (lower sum) -- (measurement); \draw [->] (measurement) -| node[pos = .95] {$-$} (left sum); \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{ arrows.meta, bending, positioning } \tikzset{ > = Latex, arrows = {[bend]}, signal/.style = coordinate, sum/.style = { draw, circle, minimum size = 2mm }, block/.style = { draw, rectangle, minimum height = 2em, minimum width = 4em }, branch/.style = { sum, minimum size = 1mm, fill = black } } \begin{document} \begin{tikzpicture}[auto] %placing the nodes \node[signal] (input) {}; \node[sum, right = of input] (left sum) {}; \node[block, right = of left sum] (controller) {$G_R$}; \node[block, right = of controller] (system) {$G_S$}; %connecting the controller and system to get the coordinates of u, its needed for the placement of the measurement block \draw [->] (controller) -- node[name = u] {$U$} (system); \node[block, above = of system] (dynamic of disturbances) {$G_D$}; \node[signal, left = of dynamic of disturbances] (disturbances) {}; \node[sum, right = of system] (right sum) {}; \node[branch, right = of right sum] (branch) {}; \node[signal, right = of branch] (output) {}; \node[sum, below = of branch] (lower sum) {}; \node[signal, right = of lower sum] (measurement noise) {}; \node[block] (measurement) at (u |- lower sum) {$G_M$}; %connecting the nodes \draw [->] (input) -- node {$W$} (left sum); \draw [->] (left sum) -- node {$E$} (controller); \draw [->] (system) -- (right sum); \draw [->] (disturbances) -- node {$Z$} (dynamic of disturbances); \draw [->] (dynamic of disturbances) -| (right sum); \draw (right sum) -- (branch); \draw [->] (branch) -- node {$Y$} (output); \draw [->] (branch) -- (lower sum); \draw [->] (measurement noise) -- node[above] {$M$} (lower sum); \draw [->] (lower sum) -- (measurement); \draw [->] (measurement) -| node[pos = .95] {$-$} (left sum); \end{tikzpicture} \end{document}
Remove the distubance input and link the system directly to the branch.
A flowchart displaying three ndoes Gr, Gs, and Gm
easy
remove
scientific
[ "@@ -37,4 +37 @@\n\n-\\node[block, above = of system] (dynamic of disturbances) {$G_D$};\n-\\node[signal, left = of dynamic of disturbances] (disturbances) {};\n-\\node[sum, right = of system] (right sum) {};\n-\\node[branch, right = of right sum] (branch) {};\n+\\node[branch, right = of system] (branch) {};\n@@ -50,7 +47 @@\n\n-[->] (system) -- (right sum);\n-\\draw\n-[->] (disturbances) -- node {$Z$} (dynamic of disturbances);\n-\\draw\n-[->] (dynamic of disturbances) -| (right sum);\n-\\draw\n-(right sum) -- (branch);\n+[->] (system) -- (branch);" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{\n arrows.meta,\n bending,\n positioning\n }\n\\tikzset{\n > = Latex,\n arrows = {[bend]},\n signal/.style = coordinate,\n sum/.style = {\n draw,\n circle,\n minimum size = 2mm\n },\n block/.style = {\n draw,\n rectangle,\n minimum height = 2em,\n minimum width = 4em\n },\n branch/.style = {\n sum,\n minimum size = 1mm,\n fill = black\n }\n }\n\n\\begin{document}\n\n \\begin{tikzpicture}[auto]\n\n \\node[signal] (input) {};\n \\node[sum, right = of input] (left sum) {};\n \\node[block, right = of left sum] (controller) {$G_R$};\n \\node[block, right = of controller] (system) {$G_S$};\n \\draw\n [->] (controller) -- node[name = u] {$U$} (system);\n \\node[branch, right = of system] (branch) {};\n \\node[signal, right = of branch] (output) {};\n \\node[sum, below = of branch] (lower sum) {};\n \\node[signal, right = of lower sum] (measurement noise) {};\n \\node[block] (measurement) at (u |- lower sum) {$G_M$};\n \\draw\n [->] (input) -- node {$W$} (left sum);\n \\draw\n [->] (left sum) -- node {$E$} (controller);\n \\draw\n [->] (system) -- (branch);\n \\draw\n [->] (branch) -- node {$Y$} (output);\n \\draw\n [->] (branch) -- (lower sum);\n \\draw\n [->] (measurement noise) -- node[above] {$M$} (lower sum);\n \\draw\n [->] (lower sum) -- (measurement);\n \\draw\n [->] (measurement) -| node[pos = .95] {$-$} (left sum);\n\n \\end{tikzpicture}\n\n\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{\n arrows.meta,\n bending,\n positioning\n }\n\\tikzset{\n > = Latex,\n arrows = {[bend]},\n signal/.style = coordinate,\n sum/.style = {\n draw,\n circle,\n minimum size = 2mm\n },\n block/.style = {\n draw,\n rectangle,\n minimum height = 2em,\n minimum width = 4em\n },\n branch/.style = {\n sum,\n minimum size = 1mm,\n fill = black\n }\n }\n\n\\begin{document}\n\n \\begin{tikzpicture}[auto]\n\n \\node[signal] (input) {};\n \\node[sum, right = of input] (left sum) {};\n \\node[block, right = of left sum] (controller) {$G_R$};\n \\node[block, right = of controller] (system) {$G_S$};\n \\draw\n [->] (controller) -- node[name = u] {$U$} (system);\n \\node[branch, right = of system] (branch) {};\n \\node[signal, right = of branch] (output) {};\n \\node[sum, below = of branch] (lower sum) {};\n \\node[signal, right = of lower sum] (measurement noise) {};\n \\node[block] (measurement) at (u |- lower sum) {$G_M$};\n \\draw\n [->] (input) -- node {$W$} (left sum);\n \\draw\n [->] (left sum) -- node {$E$} (controller);\n \\draw\n [->] (system) -- (branch);\n \\draw\n [->] (branch) -- node {$Y$} (output);\n \\draw\n [->] (branch) -- (lower sum);\n \\draw\n [->] (measurement noise) -- node[above] {$M$} (lower sum);\n \\draw\n [->] (lower sum) -- (measurement);\n \\draw\n [->] (measurement) -| node[pos = .95] {$-$} (left sum);\n\n \\end{tikzpicture}\n\n\n\n\\end{document}" ]
[ 2, 11 ]
control_gsr_inverted
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{ arrows.meta, bending, positioning } \tikzset{ > = Latex, arrows = {[bend]}, signal/.style = coordinate, sum/.style = { draw, circle, minimum size = 2mm }, block/.style = { draw, rectangle, minimum height = 2em, minimum width = 4em }, branch/.style = { sum, minimum size = 1mm, fill = black } } \begin{document} \begin{tikzpicture}[auto] \node[signal] (input) {}; \node[sum, right = of input] (left sum) {}; \node[block, right = of left sum] (controller) {$G_R$}; \node[block, right = of controller] (system) {$G_S$}; \draw [->] (controller) -- node[name = u] {$U$} (system); \node[block, above = of system] (dynamic of disturbances) {$G_D$}; \node[signal, left = of dynamic of disturbances] (disturbances) {}; \node[sum, right = of system] (right sum) {}; \node[branch, right = of right sum] (branch) {}; \node[signal, right = of branch] (output) {}; \node[sum, below = of branch] (lower sum) {}; \node[signal, right = of lower sum] (measurement noise) {}; \node[block] (measurement) at (u |- lower sum) {$G_M$}; \draw [->] (input) -- node {$W$} (left sum); \draw [->] (left sum) -- node {$E$} (controller); \draw [->] (system) -- (right sum); \draw [->] (disturbances) -- node {$Z$} (dynamic of disturbances); \draw [->] (dynamic of disturbances) -| (right sum); \draw (right sum) -- (branch); \draw [->] (branch) -- node {$Y$} (output); \draw [->] (branch) -- (lower sum); \draw [->] (measurement noise) -- node[above] {$M$} (lower sum); \draw [->] (lower sum) -- (measurement); \draw [->] (measurement) -| node[pos = .95] {$-$} (left sum); \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{ arrows.meta, bending, positioning } \tikzset{ > = Latex, arrows = {[bend]}, signal/.style = coordinate, sum/.style = { draw, circle, minimum size = 2mm }, block/.style = { draw, rectangle, minimum height = 2em, minimum width = 4em }, branch/.style = { sum, minimum size = 1mm, fill = black } } \begin{document} \begin{tikzpicture}[auto] %placing the nodes \node[signal] (input) {}; \node[sum, right = of input] (left sum) {}; \node[block, right = of left sum] (controller) {$G_R$}; \node[block, right = of controller] (system) {$G_S$}; %connecting the controller and system to get the coordinates of u, its needed for the placement of the measurement block \draw [->] (controller) -- node[name = u] {$U$} (system); \node[block, above = of system] (dynamic of disturbances) {$G_D$}; \node[signal, left = of dynamic of disturbances] (disturbances) {}; \node[sum, right = of system] (right sum) {}; \node[branch, right = of right sum] (branch) {}; \node[signal, right = of branch] (output) {}; \node[sum, below = of branch] (lower sum) {}; \node[signal, right = of lower sum] (measurement noise) {}; \node[block] (measurement) at (u |- lower sum) {$G_M$}; %connecting the nodes \draw [->] (input) -- node {$W$} (left sum); \draw [->] (left sum) -- node {$E$} (controller); \draw [->] (system) -- (right sum); \draw [->] (disturbances) -- node {$Z$} (dynamic of disturbances); \draw [->] (dynamic of disturbances) -| (right sum); \draw (right sum) -- (branch); \draw [->] (branch) -- node {$Y$} (output); \draw [->] (branch) -- (lower sum); \draw [->] (measurement noise) -- node[above] {$M$} (lower sum); \draw [->] (lower sum) -- (measurement); \draw [->] (measurement) -| node[pos = .95] {$-$} (left sum); \end{tikzpicture} \end{document}
Invert the system and the controller.
A flowchart, with the node Gs before the node Gr
easy
update
scientific
[ "@@ -33,2 +33,2 @@\n\n-\\node[block, right = of left sum] (controller) {$G_R$};\n-\\node[block, right = of controller] (system) {$G_S$};\n+\\node[block, right = of left sum] (controller) {$G_S$};\n+\\node[block, right = of controller] (system) {$G_R$};", "@@ -33,2 +33,2 @@\n\n-\\node[block, right = of left sum] (controller) {$G_R$};\n-\\node[block, right = of controller] (system) {$G_S$};\n+\\node[block, right = of left sum] (system) {$G_S$};\n+\\node[block, right = of system] (controller) {$G_R$};\n@@ -36,2 +36,2 @@\n\n-[->] (controller) -- node[name = u] {$U$} (system);\n-\\node[block, above = of system] (dynamic of disturbances) {$G_D$};\n+[->] (system) -- node[name = u] {$U$} (controller);\n+\\node[block, above = of controller] (dynamic of disturbances) {$G_D$};\n@@ -39 +39 @@\n\n-\\node[sum, right = of system] (right sum) {};\n+\\node[sum, right = of controller] (right sum) {};\n@@ -48 +48 @@\n\n-[->] (left sum) -- node {$E$} (controller);\n+[->] (left sum) -- node {$E$} (system);\n@@ -50 +50 @@\n\n-[->] (system) -- (right sum);\n+[->] (controller) -- (right sum);" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{\n arrows.meta,\n bending,\n positioning\n }\n\\tikzset{\n > = Latex,\n arrows = {[bend]},\n signal/.style = coordinate,\n sum/.style = {\n draw,\n circle,\n minimum size = 2mm\n },\n block/.style = {\n draw,\n rectangle,\n minimum height = 2em,\n minimum width = 4em\n },\n branch/.style = {\n sum,\n minimum size = 1mm,\n fill = black\n }\n }\n\n\\begin{document}\n\n \\begin{tikzpicture}[auto]\n\n \\node[signal] (input) {};\n \\node[sum, right = of input] (left sum) {};\n \\node[block, right = of left sum] (controller) {$G_S$};\n \\node[block, right = of controller] (system) {$G_R$};\n \\draw\n [->] (controller) -- node[name = u] {$U$} (system);\n \\node[block, above = of system] (dynamic of disturbances) {$G_D$};\n \\node[signal, left = of dynamic of disturbances] (disturbances) {};\n \\node[sum, right = of system] (right sum) {};\n \\node[branch, right = of right sum] (branch) {};\n \\node[signal, right = of branch] (output) {};\n \\node[sum, below = of branch] (lower sum) {};\n \\node[signal, right = of lower sum] (measurement noise) {};\n \\node[block] (measurement) at (u |- lower sum) {$G_M$};\n \\draw\n [->] (input) -- node {$W$} (left sum);\n \\draw\n [->] (left sum) -- node {$E$} (controller);\n \\draw\n [->] (system) -- (right sum);\n \\draw\n [->] (disturbances) -- node {$Z$} (dynamic of disturbances);\n \\draw\n [->] (dynamic of disturbances) -| (right sum);\n \\draw\n (right sum) -- (branch);\n \\draw\n [->] (branch) -- node {$Y$} (output);\n \\draw\n [->] (branch) -- (lower sum);\n \\draw\n [->] (measurement noise) -- node[above] {$M$} (lower sum);\n \\draw\n [->] (lower sum) -- (measurement);\n \\draw\n [->] (measurement) -| node[pos = .95] {$-$} (left sum);\n\n \\end{tikzpicture}\n\n\n\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{\n arrows.meta,\n bending,\n positioning\n }\n\\tikzset{\n > = Latex,\n arrows = {[bend]},\n signal/.style = coordinate,\n sum/.style = {\n draw,\n circle,\n minimum size = 2mm\n },\n block/.style = {\n draw,\n rectangle,\n minimum height = 2em,\n minimum width = 4em\n },\n branch/.style = {\n sum,\n minimum size = 1mm,\n fill = black\n }\n }\n\n\\begin{document}\n\n \\begin{tikzpicture}[auto]\n\n \\node[signal] (input) {};\n \\node[sum, right = of input] (left sum) {};\n \\node[block, right = of left sum] (system) {$G_S$};\n \\node[block, right = of system] (controller) {$G_R$};\n \\draw\n [->] (system) -- node[name = u] {$U$} (controller);\n \\node[block, above = of controller] (dynamic of disturbances) {$G_D$};\n \\node[signal, left = of dynamic of disturbances] (disturbances) {};\n \\node[sum, right = of controller] (right sum) {};\n \\node[branch, right = of right sum] (branch) {};\n \\node[signal, right = of branch] (output) {};\n \\node[sum, below = of branch] (lower sum) {};\n \\node[signal, right = of lower sum] (measurement noise) {};\n \\node[block] (measurement) at (u |- lower sum) {$G_M$};\n \\draw\n [->] (input) -- node {$W$} (left sum);\n \\draw\n [->] (left sum) -- node {$E$} (system);\n \\draw\n [->] (controller) -- (right sum);\n \\draw\n [->] (disturbances) -- node {$Z$} (dynamic of disturbances);\n \\draw\n [->] (dynamic of disturbances) -| (right sum);\n \\draw\n (right sum) -- (branch);\n \\draw\n [->] (branch) -- node {$Y$} (output);\n \\draw\n [->] (branch) -- (lower sum);\n \\draw\n [->] (measurement noise) -- node[above] {$M$} (lower sum);\n \\draw\n [->] (lower sum) -- (measurement);\n \\draw\n [->] (measurement) -| node[pos = .95] {$-$} (left sum);\n\n \\end{tikzpicture}\n\n\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{\n arrows.meta,\n bending,\n positioning\n }\n\\tikzset{\n > = Latex,\n arrows = {[bend]},\n signal/.style = coordinate,\n sum/.style = {\n draw,\n circle,\n minimum size = 2mm\n },\n block/.style = {\n draw,\n rectangle,\n minimum height = 2em,\n minimum width = 4em\n },\n branch/.style = {\n sum,\n minimum size = 1mm,\n fill = black\n }\n }\n\n\\begin{document}\n\n \\begin{tikzpicture}[auto]\n\n \\node[signal] (input) {};\n \\node[sum, right = of input] (left sum) {};\n \\node[block, right = of left sum] (controller) {$G_S$};\n \\node[block, right = of controller] (system) {$G_R$};\n \\draw\n [->] (controller) -- node[name = u] {$U$} (system);\n \\node[block, above = of system] (dynamic of disturbances) {$G_D$};\n \\node[signal, left = of dynamic of disturbances] (disturbances) {};\n \\node[sum, right = of system] (right sum) {};\n \\node[branch, right = of right sum] (branch) {};\n \\node[signal, right = of branch] (output) {};\n \\node[sum, below = of branch] (lower sum) {};\n \\node[signal, right = of lower sum] (measurement noise) {};\n \\node[block] (measurement) at (u |- lower sum) {$G_M$};\n \\draw\n [->] (input) -- node {$W$} (left sum);\n \\draw\n [->] (left sum) -- node {$E$} (controller);\n \\draw\n [->] (system) -- (right sum);\n \\draw\n [->] (disturbances) -- node {$Z$} (dynamic of disturbances);\n \\draw\n [->] (dynamic of disturbances) -| (right sum);\n \\draw\n (right sum) -- (branch);\n \\draw\n [->] (branch) -- node {$Y$} (output);\n \\draw\n [->] (branch) -- (lower sum);\n \\draw\n [->] (measurement noise) -- node[above] {$M$} (lower sum);\n \\draw\n [->] (lower sum) -- (measurement);\n \\draw\n [->] (measurement) -| node[pos = .95] {$-$} (left sum);\n\n \\end{tikzpicture}\n\n\n\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{\n arrows.meta,\n bending,\n positioning\n }\n\\tikzset{\n > = Latex,\n arrows = {[bend]},\n signal/.style = coordinate,\n sum/.style = {\n draw,\n circle,\n minimum size = 2mm\n },\n block/.style = {\n draw,\n rectangle,\n minimum height = 2em,\n minimum width = 4em\n },\n branch/.style = {\n sum,\n minimum size = 1mm,\n fill = black\n }\n }\n\n\\begin{document}\n\n \\begin{tikzpicture}[auto]\n\n \\node[signal] (input) {};\n \\node[sum, right = of input] (left sum) {};\n \\node[block, right = of left sum] (system) {$G_S$};\n \\node[block, right = of system] (controller) {$G_R$};\n \\draw\n [->] (system) -- node[name = u] {$U$} (controller);\n \\node[block, above = of controller] (dynamic of disturbances) {$G_D$};\n \\node[signal, left = of dynamic of disturbances] (disturbances) {};\n \\node[sum, right = of controller] (right sum) {};\n \\node[branch, right = of right sum] (branch) {};\n \\node[signal, right = of branch] (output) {};\n \\node[sum, below = of branch] (lower sum) {};\n \\node[signal, right = of lower sum] (measurement noise) {};\n \\node[block] (measurement) at (u |- lower sum) {$G_M$};\n \\draw\n [->] (input) -- node {$W$} (left sum);\n \\draw\n [->] (left sum) -- node {$E$} (system);\n \\draw\n [->] (controller) -- (right sum);\n \\draw\n [->] (disturbances) -- node {$Z$} (dynamic of disturbances);\n \\draw\n [->] (dynamic of disturbances) -| (right sum);\n \\draw\n (right sum) -- (branch);\n \\draw\n [->] (branch) -- node {$Y$} (output);\n \\draw\n [->] (branch) -- (lower sum);\n \\draw\n [->] (measurement noise) -- node[above] {$M$} (lower sum);\n \\draw\n [->] (lower sum) -- (measurement);\n \\draw\n [->] (measurement) -| node[pos = .95] {$-$} (left sum);\n\n \\end{tikzpicture}\n\n\n\n\\end{document}" ]
[ 2 ]
converter_joined
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{circuits.ee.IEC} \usepackage{amsmath, amssymb} \tikzset{circuit declare symbol = converter} \tikzset{set converter graphic = converter IEC graphic} \tikzset{convert from/.initial=AC, convert from/.default=AC, convert to/.initial=DC, convert to/.default=DC} \tikzset{converter IEC graphic/.style= {transform shape, circuit symbol lines, circuit symbol size = width 2.5 height 2.5, draw=none, rounded corners=2.25pt, shape=generic circle IEC, /pgf/generic circle IEC/before background= { \pgfpathmoveto{\pgfpoint{-0.8pt}{-0.8pt}} \pgfpathlineto{\pgfpoint{0.8pt}{0.8pt}} \pgfpathrectangle{\pgfpoint{-1pt}{-1pt}}{\pgfpoint{2.0pt}{2.0pt}} \pgfusepath{stroke} \pgfusepathqstroke \pgfgettransform\savedtransform \pgftransformshift{\pgfpoint{0.45pt}{-0.45pt}} \pgftransformresetnontranslations \pgftransformscale{0.075\tikzcircuitssizeunit} \pgftext{\bf{\pgfkeysvalueof{/tikz/convert to}}} \pgfsettransform\savedtransform \pgftransformshift{\pgfpoint{-0.45pt}{0.45pt}} \pgftransformresetnontranslations \pgftransformscale{0.075\tikzcircuitssizeunit} \pgftext{\bf{\pgfkeysvalueof{/tikz/convert from}}} \pgfsettransform\savedtransform }}} \begin{document} \begin{tikzpicture}[circuit ee IEC, font=\sffamily\footnotesize] \draw (0,0) to [converter={info'={AC$\rightarrow$DC}, convert from={AC}, convert to={DC}}] (2,0); \draw (0,-2) to [converter={info'={DC$\rightarrow$AC}, convert from={DC}, convert to={AC}}] (2,-2); \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{circuits.ee.IEC} \usepackage{amsmath, amssymb} %CIRCUIT SYMBOL converter %%%%%%%%%%%%%%%%% \tikzset{circuit declare symbol = converter} \tikzset{set converter graphic = converter IEC graphic} \tikzset{convert from/.initial=AC, convert from/.default=AC, convert to/.initial=DC, convert to/.default=DC} \tikzset{converter IEC graphic/.style= {transform shape, circuit symbol lines, circuit symbol size = width 2.5 height 2.5, draw=none, rounded corners=2.25pt, shape=generic circle IEC, /pgf/generic circle IEC/before background= { %CROSSLINE \pgfpathmoveto{\pgfpoint{-0.8pt}{-0.8pt}} \pgfpathlineto{\pgfpoint{0.8pt}{0.8pt}} %RECTANGLE \pgfpathrectangle{\pgfpoint{-1pt}{-1pt}}{\pgfpoint{2.0pt}{2.0pt}} \pgfusepath{stroke} \pgfusepathqstroke % TEXT INSIDE THE SYMBOL \pgfgettransform\savedtransform \pgftransformshift{\pgfpoint{0.45pt}{-0.45pt}} \pgftransformresetnontranslations \pgftransformscale{0.075\tikzcircuitssizeunit} \pgftext{\bf{\pgfkeysvalueof{/tikz/convert to}}} \pgfsettransform\savedtransform \pgftransformshift{\pgfpoint{-0.45pt}{0.45pt}} \pgftransformresetnontranslations \pgftransformscale{0.075\tikzcircuitssizeunit} \pgftext{\bf{\pgfkeysvalueof{/tikz/convert from}}} \pgfsettransform\savedtransform }}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %=========== \begin{document} %=========== \begin{tikzpicture}[circuit ee IEC, font=\sffamily\footnotesize] % First converter (AC -> DC) \draw (0,0) to [converter={info'={AC$\rightarrow$DC}, convert from={AC}, convert to={DC}}] (2,0); % Second converter (DC -> AC) positioned to the right \draw (0,-2) to [converter={info'={DC$\rightarrow$AC}, convert from={DC}, convert to={AC}}] (2,-2); \end{tikzpicture} %=========== \end{document} %===========
Join the two converters by moving the bottom one on the right of the top one, the output of the first one should enter in the input of the second one.
Two ac/dc and dc/ac converter linked.
easy
update
scientific
[ "@@ -38,2 +38,2 @@\n\n-\\draw (0,-2) to [converter={info'={DC$\\rightarrow$AC},\n-convert from={DC}, convert to={AC}}] (2,-2);\n+\\draw (2,0) to [converter={info'={DC$\\rightarrow$AC},\n+convert from={DC}, convert to={AC}}] (4,0);" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{circuits.ee.IEC}\n\n\\usepackage{amsmath, amssymb}\n\n\\tikzset{circuit declare symbol = converter}\n\\tikzset{set converter graphic = converter IEC graphic}\n\\tikzset{convert from/.initial=AC,\n convert from/.default=AC,\n convert to/.initial=DC,\n convert to/.default=DC}\n\\tikzset{converter IEC graphic/.style=\n {transform shape, circuit symbol lines, circuit symbol size = width\n2.5 height 2.5, draw=none, rounded corners=2.25pt,\n shape=generic circle IEC, /pgf/generic circle IEC/before\nbackground=\n {\n \\pgfpathmoveto{\\pgfpoint{-0.8pt}{-0.8pt}}\n \\pgfpathlineto{\\pgfpoint{0.8pt}{0.8pt}}\n \\pgfpathrectangle{\\pgfpoint{-1pt}{-1pt}}{\\pgfpoint{2.0pt}{2.0pt}}\n \\pgfusepath{stroke} \n \\pgfusepathqstroke\n \\pgfgettransform\\savedtransform\n \\pgftransformshift{\\pgfpoint{0.45pt}{-0.45pt}}\n \\pgftransformresetnontranslations\n \\pgftransformscale{0.075\\tikzcircuitssizeunit}\n \\pgftext{\\bf{\\pgfkeysvalueof{/tikz/convert to}}}\n \\pgfsettransform\\savedtransform\n \\pgftransformshift{\\pgfpoint{-0.45pt}{0.45pt}}\n \\pgftransformresetnontranslations\n \\pgftransformscale{0.075\\tikzcircuitssizeunit}\n \\pgftext{\\bf{\\pgfkeysvalueof{/tikz/convert from}}}\n \\pgfsettransform\\savedtransform\n }}}\n\n\\begin{document}\n\n\\begin{tikzpicture}[circuit ee IEC, font=\\sffamily\\footnotesize]\n \\draw (0,0) to [converter={info'={AC$\\rightarrow$DC},\n convert from={AC}, convert to={DC}}] (2,0);\n \n \\draw (§rangei(2,0.5),0) to [converter={info'={DC$\\rightarrow$AC},\n convert from={DC}, convert to={AC}}] (§rangei(4,1),0);\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{circuits.ee.IEC}\n\n\\usepackage{amsmath, amssymb}\n\n\\tikzset{circuit declare symbol = converter}\n\\tikzset{set converter graphic = converter IEC graphic}\n\\tikzset{convert from/.initial=AC,\n convert from/.default=AC,\n convert to/.initial=DC,\n convert to/.default=DC}\n\\tikzset{converter IEC graphic/.style=\n {transform shape, circuit symbol lines, circuit symbol size = width\n2.5 height 2.5, draw=none, rounded corners=2.25pt,\n shape=generic circle IEC, /pgf/generic circle IEC/before\nbackground=\n {\n \\pgfpathmoveto{\\pgfpoint{-0.8pt}{-0.8pt}}\n \\pgfpathlineto{\\pgfpoint{0.8pt}{0.8pt}}\n \\pgfpathrectangle{\\pgfpoint{-1pt}{-1pt}}{\\pgfpoint{2.0pt}{2.0pt}}\n \\pgfusepath{stroke} \n \\pgfusepathqstroke\n \\pgfgettransform\\savedtransform\n \\pgftransformshift{\\pgfpoint{0.45pt}{-0.45pt}}\n \\pgftransformresetnontranslations\n \\pgftransformscale{0.075\\tikzcircuitssizeunit}\n \\pgftext{\\bf{\\pgfkeysvalueof{/tikz/convert to}}}\n \\pgfsettransform\\savedtransform\n \\pgftransformshift{\\pgfpoint{-0.45pt}{0.45pt}}\n \\pgftransformresetnontranslations\n \\pgftransformscale{0.075\\tikzcircuitssizeunit}\n \\pgftext{\\bf{\\pgfkeysvalueof{/tikz/convert from}}}\n \\pgfsettransform\\savedtransform\n }}}\n\n\\begin{document}\n\n\\begin{tikzpicture}[circuit ee IEC, font=\\sffamily\\footnotesize]\n \\draw (0,0) to [converter={info'={AC$\\rightarrow$DC},\n convert from={AC}, convert to={DC}}] (2,0);\n \n \\draw (2,0) to [converter={info'={DC$\\rightarrow$AC},\n convert from={DC}, convert to={AC}}] (4,0);\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ 46 ]
cow_brown_white_dots
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ cow/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \reflect[]{ \tikzset{shift={(32,140)}, rotate=-45} \fill [BlueGrey100] (0,0) arc (0:90:32 and 96) arc (90:0:96); \fill [BlueGrey200] (32,0) arc (0:90:64 and 96) arc (90:0:96); } \foreach \i in {-1, 1}\foreach \j in {0, 1} \fill \ifnum\j=0 \ifnum \i=-1 [BlueGrey700] \else [BlueGrey800] \fi\else [BlueGrey900] \fi [xscale=\i, shift={(128,88)}, rotate=10, scale=1-\j/3] (-72,0) .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48) .. controls ++( 0:16) and ++( 90:12) .. (88, 0) .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48) .. controls ++(180: 8) and ++(270: 8) .. cycle; \reflect[split={BlueGrey700 and BlueGrey800}]{ \fill [fill color] (-64,-160) .. controls ++( 90:144) and ++(270: 64) .. (-120, 64) arc (180:0: 120 and 112) .. controls ++(270: 64) and ++( 90:144) .. ( 64,-160) -- cycle; } \reflect[split=Grey50 and Grey200]{ \fill [fill color](-64,-160) .. controls ++( 75:144) and ++(270: 64) .. (-16, 64) .. controls ++( 90: 32) and ++(180: 72) .. ( 0, 168) .. controls ++( 0: 72) and ++( 90: 32) .. ( 16, 64) .. controls ++(270: 64) and ++(105:144) .. ( 64,-160) -- cycle; } \reflect[split=Pink100 and Pink200]{ \fill [fill color] (0,-160) ellipse [x radius=64, y radius=56]; } \fill [Pink300] (0, -160) ellipse [x radius=48, y radius=40]; \reflect[split=Pink100 and Pink200]{ \fill [fill color] (0,-128) ellipse [x radius=80, y radius=56]; } \fill [Pink300] (-32, -128) ellipse [radius=16] ( 32, -128) ellipse [radius=16]; \fill [BlueGrey900] (-64, 64) ellipse [radius=24] ( 64, 64) ellipse [radius=24]; \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {cow}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ cow/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \reflect[]{ \tikzset{shift={(32,140)}, rotate=-45} \fill [BlueGrey100] (0,0) arc (0:90:32 and 96) arc (90:0:96); \fill [BlueGrey200] (32,0) arc (0:90:64 and 96) arc (90:0:96); } \foreach \i in {-1, 1}\foreach \j in {0, 1} \fill \ifnum\j=0 \ifnum \i=-1 [BlueGrey700] \else [BlueGrey800] \fi\else [BlueGrey900] \fi [xscale=\i, shift={(128,88)}, rotate=10, scale=1-\j/3] (-72,0) .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48) .. controls ++( 0:16) and ++( 90:12) .. (88, 0) .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48) .. controls ++(180: 8) and ++(270: 8) .. cycle; \reflect[split={BlueGrey700 and BlueGrey800}]{% \fill [fill color] (-64,-160) .. controls ++( 90:144) and ++(270: 64) .. (-120, 64) arc (180:0: 120 and 112) .. controls ++(270: 64) and ++( 90:144) .. ( 64,-160) -- cycle; } \reflect[split=Grey50 and Grey200]{% \fill [fill color](-64,-160) .. controls ++( 75:144) and ++(270: 64) .. (-16, 64) .. controls ++( 90: 32) and ++(180: 72) .. ( 0, 168) .. controls ++( 0: 72) and ++( 90: 32) .. ( 16, 64) .. controls ++(270: 64) and ++(105:144) .. ( 64,-160) -- cycle; } \reflect[split=Pink100 and Pink200]{ \fill [fill color] (0,-160) ellipse [x radius=64, y radius=56]; } \fill [Pink300] (0, -160) ellipse [x radius=48, y radius=40]; \reflect[split=Pink100 and Pink200]{ \fill [fill color] (0,-128) ellipse [x radius=80, y radius=56]; } \fill [Pink300] (-32, -128) ellipse [radius=16] ( 32, -128) ellipse [radius=16]; \fill [BlueGrey900] (-64, 64) ellipse [radius=24] ( 64, 64) ellipse [radius=24]; \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {cow}; \end{tikzpicture} \end{document}
Make the cow brown, with three white dots on the left side of its face under its eye
A brown cow, with three white dots on the left side of its face under its eye
hard
add
animal
[ "@@ -30 +30 @@\n\n-\\fill \\ifnum\\j=0 \\ifnum \\i=-1 [BlueGrey700] \\else [BlueGrey800] \\fi\\else [BlueGrey900] \\fi\n+\\fill \\ifnum\\j=0 \\ifnum \\i=-1 [Brown600] \\else [Brown700] \\fi\\else [Brown800] \\fi\n@@ -37 +37 @@\n\n-\\reflect[split={BlueGrey700 and BlueGrey800}]{\n+\\reflect[split={Brown600 and Brown700}]{\n@@ -42,0 +43,3 @@\n\n+\\fill [Grey50] (-40,10) circle [radius=15];\n+\\fill [Grey50] (-60,-30) circle [radius=15];\n+\\fill [Grey50] (-80,10) circle [radius=15];" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ncow/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\reflect[]{\n\\tikzset{shift={(32,140)}, rotate=-45}\n \\fill [BlueGrey100] (0,0) arc (0:90:32 and 96) arc (90:0:96);\n \\fill [BlueGrey200] (32,0) arc (0:90:64 and 96) arc (90:0:96);\n}\n\\foreach \\i in {-1, 1}\\foreach \\j in {0, 1}\n\\fill \\ifnum\\j=0 \\ifnum \\i=-1 [Brown§range(400,600,600)] \\else [Brown§range(500,700,700)] \\fi\\else [Brown§range(600,800,800)] \\fi\n [xscale=\\i, shift={(128,88)}, rotate=10, scale=1-\\j/3]\n (-72,0)\n .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48)\n .. controls ++( 0:16) and ++( 90:12) .. (88, 0)\n .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48)\n .. controls ++(180: 8) and ++(270: 8) .. cycle;\n\\reflect[split={Brown§range(400,600,600) and Brown§range(500,700,700)}]{\n \\fill [fill color] (-64,-160)\n .. controls ++( 90:144) and ++(270: 64) .. (-120, 64)\n arc (180:0: 120 and 112)\n .. controls ++(270: 64) and ++( 90:144) .. ( 64,-160) -- cycle;\n}\n\\fill [Grey50] (§rangei(-40,15),§rangei(10,20)) circle [radius=§rangei(15,10)];\n\\fill [Grey50] (§rangei(-60,15),§rangei(-30,20)) circle [radius=§rangei(15,10)];\n\\fill [Grey50] (§rangei(-80,15),§rangei(10,20)) circle [radius=§rangei(15,10)];\n\n\\reflect[split=Grey50 and Grey200]{\n \\fill [fill color](-64,-160)\n .. controls ++( 75:144) and ++(270: 64) .. (-16, 64)\n .. controls ++( 90: 32) and ++(180: 72) .. ( 0, 168)\n .. controls ++( 0: 72) and ++( 90: 32) .. ( 16, 64)\n .. controls ++(270: 64) and ++(105:144) .. ( 64,-160) -- cycle;\n}\n\\reflect[split=Pink100 and Pink200]{\n \\fill [fill color] (0,-160) ellipse [x radius=64, y radius=56];\n}\n\\fill [Pink300] (0, -160) ellipse [x radius=48, y radius=40];\n\\reflect[split=Pink100 and Pink200]{\n \\fill [fill color] (0,-128) ellipse [x radius=80, y radius=56];\n}\n\\fill [Pink300]\n (-32, -128) ellipse [radius=16]\n ( 32, -128) ellipse [radius=16];\n\\fill [BlueGrey900]\n (-64, 64) ellipse [radius=24]\n ( 64, 64) ellipse [radius=24];\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cow};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ncow/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\reflect[]{\n\\tikzset{shift={(32,140)}, rotate=-45}\n \\fill [BlueGrey100] (0,0) arc (0:90:32 and 96) arc (90:0:96);\n \\fill [BlueGrey200] (32,0) arc (0:90:64 and 96) arc (90:0:96);\n}\n\\foreach \\i in {-1, 1}\\foreach \\j in {0, 1}\n\\fill \\ifnum\\j=0 \\ifnum \\i=-1 [Brown600] \\else [Brown700] \\fi\\else [Brown800] \\fi\n [xscale=\\i, shift={(128,88)}, rotate=10, scale=1-\\j/3]\n (-72,0)\n .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48)\n .. controls ++( 0:16) and ++( 90:12) .. (88, 0)\n .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48)\n .. controls ++(180: 8) and ++(270: 8) .. cycle;\n\\reflect[split={Brown600 and Brown700}]{\n \\fill [fill color] (-64,-160)\n .. controls ++( 90:144) and ++(270: 64) .. (-120, 64)\n arc (180:0: 120 and 112)\n .. controls ++(270: 64) and ++( 90:144) .. ( 64,-160) -- cycle;\n}\n\\fill [Grey50] (-40,10) circle [radius=15];\n\\fill [Grey50] (-60,-30) circle [radius=15];\n\\fill [Grey50] (-80,10) circle [radius=15];\n\n\\reflect[split=Grey50 and Grey200]{\n \\fill [fill color](-64,-160)\n .. controls ++( 75:144) and ++(270: 64) .. (-16, 64)\n .. controls ++( 90: 32) and ++(180: 72) .. ( 0, 168)\n .. controls ++( 0: 72) and ++( 90: 32) .. ( 16, 64)\n .. controls ++(270: 64) and ++(105:144) .. ( 64,-160) -- cycle;\n}\n\\reflect[split=Pink100 and Pink200]{\n \\fill [fill color] (0,-160) ellipse [x radius=64, y radius=56];\n}\n\\fill [Pink300] (0, -160) ellipse [x radius=48, y radius=40];\n\\reflect[split=Pink100 and Pink200]{\n \\fill [fill color] (0,-128) ellipse [x radius=80, y radius=56];\n}\n\\fill [Pink300]\n (-32, -128) ellipse [radius=16]\n ( 32, -128) ellipse [radius=16];\n\\fill [BlueGrey900]\n (-64, 64) ellipse [radius=24]\n ( 64, 64) ellipse [radius=24];\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cow};\n\\end{tikzpicture}\n\\end{document}" ]
[ 1 ]
cow_downward_ears
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ cow/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \reflect[]{ \tikzset{shift={(32,140)}, rotate=-45} \fill [BlueGrey100] (0,0) arc (0:90:32 and 96) arc (90:0:96); \fill [BlueGrey200] (32,0) arc (0:90:64 and 96) arc (90:0:96); } \foreach \i in {-1, 1}\foreach \j in {0, 1} \fill \ifnum\j=0 \ifnum \i=-1 [BlueGrey700] \else [BlueGrey800] \fi\else [BlueGrey900] \fi [xscale=\i, shift={(128,88)}, rotate=10, scale=1-\j/3] (-72,0) .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48) .. controls ++( 0:16) and ++( 90:12) .. (88, 0) .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48) .. controls ++(180: 8) and ++(270: 8) .. cycle; \reflect[split={BlueGrey700 and BlueGrey800}]{ \fill [fill color] (-64,-160) .. controls ++( 90:144) and ++(270: 64) .. (-120, 64) arc (180:0: 120 and 112) .. controls ++(270: 64) and ++( 90:144) .. ( 64,-160) -- cycle; } \reflect[split=Grey50 and Grey200]{ \fill [fill color](-64,-160) .. controls ++( 75:144) and ++(270: 64) .. (-16, 64) .. controls ++( 90: 32) and ++(180: 72) .. ( 0, 168) .. controls ++( 0: 72) and ++( 90: 32) .. ( 16, 64) .. controls ++(270: 64) and ++(105:144) .. ( 64,-160) -- cycle; } \reflect[split=Pink100 and Pink200]{ \fill [fill color] (0,-160) ellipse [x radius=64, y radius=56]; } \fill [Pink300] (0, -160) ellipse [x radius=48, y radius=40]; \reflect[split=Pink100 and Pink200]{ \fill [fill color] (0,-128) ellipse [x radius=80, y radius=56]; } \fill [Pink300] (-32, -128) ellipse [radius=16] ( 32, -128) ellipse [radius=16]; \fill [BlueGrey900] (-64, 64) ellipse [radius=24] ( 64, 64) ellipse [radius=24]; \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {cow}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ cow/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \reflect[]{ \tikzset{shift={(32,140)}, rotate=-45} \fill [BlueGrey100] (0,0) arc (0:90:32 and 96) arc (90:0:96); \fill [BlueGrey200] (32,0) arc (0:90:64 and 96) arc (90:0:96); } \foreach \i in {-1, 1}\foreach \j in {0, 1} \fill \ifnum\j=0 \ifnum \i=-1 [BlueGrey700] \else [BlueGrey800] \fi\else [BlueGrey900] \fi [xscale=\i, shift={(128,88)}, rotate=10, scale=1-\j/3] (-72,0) .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48) .. controls ++( 0:16) and ++( 90:12) .. (88, 0) .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48) .. controls ++(180: 8) and ++(270: 8) .. cycle; \reflect[split={BlueGrey700 and BlueGrey800}]{% \fill [fill color] (-64,-160) .. controls ++( 90:144) and ++(270: 64) .. (-120, 64) arc (180:0: 120 and 112) .. controls ++(270: 64) and ++( 90:144) .. ( 64,-160) -- cycle; } \reflect[split=Grey50 and Grey200]{% \fill [fill color](-64,-160) .. controls ++( 75:144) and ++(270: 64) .. (-16, 64) .. controls ++( 90: 32) and ++(180: 72) .. ( 0, 168) .. controls ++( 0: 72) and ++( 90: 32) .. ( 16, 64) .. controls ++(270: 64) and ++(105:144) .. ( 64,-160) -- cycle; } \reflect[split=Pink100 and Pink200]{ \fill [fill color] (0,-160) ellipse [x radius=64, y radius=56]; } \fill [Pink300] (0, -160) ellipse [x radius=48, y radius=40]; \reflect[split=Pink100 and Pink200]{ \fill [fill color] (0,-128) ellipse [x radius=80, y radius=56]; } \fill [Pink300] (-32, -128) ellipse [radius=16] ( 32, -128) ellipse [radius=16]; \fill [BlueGrey900] (-64, 64) ellipse [radius=24] ( 64, 64) ellipse [radius=24]; \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {cow}; \end{tikzpicture} \end{document}
Rotate the ears of the cow downward
A cow, with its ears rotated down
easy
update
animal
[ "@@ -31 +31 @@\n\n-[xscale=\\i, shift={(128,88)}, rotate=10, scale=1-\\j/3]\n+[xscale=\\i, shift={(128,88)}, rotate=-20, scale=1-\\j/3]" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ncow/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\reflect[]{\n\\tikzset{shift={(32,140)}, rotate=-45}\n \\fill [BlueGrey100] (0,0) arc (0:90:32 and 96) arc (90:0:96);\n \\fill [BlueGrey200] (32,0) arc (0:90:64 and 96) arc (90:0:96);\n}\n\\foreach \\i in {-1, 1}\\foreach \\j in {0, 1}\n\\fill \\ifnum\\j=0 \\ifnum \\i=-1 [BlueGrey700] \\else [BlueGrey800] \\fi\\else [BlueGrey900] \\fi\n [xscale=\\i, shift={(128,88)}, rotate=§rangei(-20,10), scale=1-\\j/3]\n (-72,0)\n .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48)\n .. controls ++( 0:16) and ++( 90:12) .. (88, 0)\n .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48)\n .. controls ++(180: 8) and ++(270: 8) .. cycle;\n\\reflect[split={BlueGrey700 and BlueGrey800}]{\n \\fill [fill color] (-64,-160)\n .. controls ++( 90:144) and ++(270: 64) .. (-120, 64)\n arc (180:0: 120 and 112)\n .. controls ++(270: 64) and ++( 90:144) .. ( 64,-160) -- cycle;\n}\n\\reflect[split=Grey50 and Grey200]{\n \\fill [fill color](-64,-160)\n .. controls ++( 75:144) and ++(270: 64) .. (-16, 64)\n .. controls ++( 90: 32) and ++(180: 72) .. ( 0, 168)\n .. controls ++( 0: 72) and ++( 90: 32) .. ( 16, 64)\n .. controls ++(270: 64) and ++(105:144) .. ( 64,-160) -- cycle;\n}\n\\reflect[split=Pink100 and Pink200]{\n \\fill [fill color] (0,-160) ellipse [x radius=64, y radius=56];\n}\n\\fill [Pink300] (0, -160) ellipse [x radius=48, y radius=40];\n\\reflect[split=Pink100 and Pink200]{\n \\fill [fill color] (0,-128) ellipse [x radius=80, y radius=56];\n}\n\\fill [Pink300]\n (-32, -128) ellipse [radius=16]\n ( 32, -128) ellipse [radius=16];\n\\fill [BlueGrey900]\n (-64, 64) ellipse [radius=24]\n ( 64, 64) ellipse [radius=24];\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cow};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ncow/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\reflect[]{\n\\tikzset{shift={(32,140)}, rotate=-45}\n \\fill [BlueGrey100] (0,0) arc (0:90:32 and 96) arc (90:0:96);\n \\fill [BlueGrey200] (32,0) arc (0:90:64 and 96) arc (90:0:96);\n}\n\\foreach \\i in {-1, 1}\\foreach \\j in {0, 1}\n\\fill \\ifnum\\j=0 \\ifnum \\i=-1 [BlueGrey700] \\else [BlueGrey800] \\fi\\else [BlueGrey900] \\fi\n [xscale=\\i, shift={(128,88)}, rotate=-20, scale=1-\\j/3]\n (-72,0)\n .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48)\n .. controls ++( 0:16) and ++( 90:12) .. (88, 0)\n .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48)\n .. controls ++(180: 8) and ++(270: 8) .. cycle;\n\\reflect[split={BlueGrey700 and BlueGrey800}]{\n \\fill [fill color] (-64,-160)\n .. controls ++( 90:144) and ++(270: 64) .. (-120, 64)\n arc (180:0: 120 and 112)\n .. controls ++(270: 64) and ++( 90:144) .. ( 64,-160) -- cycle;\n}\n\\reflect[split=Grey50 and Grey200]{\n \\fill [fill color](-64,-160)\n .. controls ++( 75:144) and ++(270: 64) .. (-16, 64)\n .. controls ++( 90: 32) and ++(180: 72) .. ( 0, 168)\n .. controls ++( 0: 72) and ++( 90: 32) .. ( 16, 64)\n .. controls ++(270: 64) and ++(105:144) .. ( 64,-160) -- cycle;\n}\n\\reflect[split=Pink100 and Pink200]{\n \\fill [fill color] (0,-160) ellipse [x radius=64, y radius=56];\n}\n\\fill [Pink300] (0, -160) ellipse [x radius=48, y radius=40];\n\\reflect[split=Pink100 and Pink200]{\n \\fill [fill color] (0,-128) ellipse [x radius=80, y radius=56];\n}\n\\fill [Pink300]\n (-32, -128) ellipse [radius=16]\n ( 32, -128) ellipse [radius=16];\n\\fill [BlueGrey900]\n (-64, 64) ellipse [radius=24]\n ( 64, 64) ellipse [radius=24];\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cow};\n\\end{tikzpicture}\n\\end{document}" ]
[ 4 ]
cow_inverted_skin_colors
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ cow/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \reflect[]{ \tikzset{shift={(32,140)}, rotate=-45} \fill [BlueGrey100] (0,0) arc (0:90:32 and 96) arc (90:0:96); \fill [BlueGrey200] (32,0) arc (0:90:64 and 96) arc (90:0:96); } \foreach \i in {-1, 1}\foreach \j in {0, 1} \fill \ifnum\j=0 \ifnum \i=-1 [BlueGrey700] \else [BlueGrey800] \fi\else [BlueGrey900] \fi [xscale=\i, shift={(128,88)}, rotate=10, scale=1-\j/3] (-72,0) .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48) .. controls ++( 0:16) and ++( 90:12) .. (88, 0) .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48) .. controls ++(180: 8) and ++(270: 8) .. cycle; \reflect[split={BlueGrey700 and BlueGrey800}]{ \fill [fill color] (-64,-160) .. controls ++( 90:144) and ++(270: 64) .. (-120, 64) arc (180:0: 120 and 112) .. controls ++(270: 64) and ++( 90:144) .. ( 64,-160) -- cycle; } \reflect[split=Grey50 and Grey200]{ \fill [fill color](-64,-160) .. controls ++( 75:144) and ++(270: 64) .. (-16, 64) .. controls ++( 90: 32) and ++(180: 72) .. ( 0, 168) .. controls ++( 0: 72) and ++( 90: 32) .. ( 16, 64) .. controls ++(270: 64) and ++(105:144) .. ( 64,-160) -- cycle; } \reflect[split=Pink100 and Pink200]{ \fill [fill color] (0,-160) ellipse [x radius=64, y radius=56]; } \fill [Pink300] (0, -160) ellipse [x radius=48, y radius=40]; \reflect[split=Pink100 and Pink200]{ \fill [fill color] (0,-128) ellipse [x radius=80, y radius=56]; } \fill [Pink300] (-32, -128) ellipse [radius=16] ( 32, -128) ellipse [radius=16]; \fill [BlueGrey900] (-64, 64) ellipse [radius=24] ( 64, 64) ellipse [radius=24]; \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {cow}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ cow/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \reflect[]{ \tikzset{shift={(32,140)}, rotate=-45} \fill [BlueGrey100] (0,0) arc (0:90:32 and 96) arc (90:0:96); \fill [BlueGrey200] (32,0) arc (0:90:64 and 96) arc (90:0:96); } \foreach \i in {-1, 1}\foreach \j in {0, 1} \fill \ifnum\j=0 \ifnum \i=-1 [BlueGrey700] \else [BlueGrey800] \fi\else [BlueGrey900] \fi [xscale=\i, shift={(128,88)}, rotate=10, scale=1-\j/3] (-72,0) .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48) .. controls ++( 0:16) and ++( 90:12) .. (88, 0) .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48) .. controls ++(180: 8) and ++(270: 8) .. cycle; \reflect[split={BlueGrey700 and BlueGrey800}]{% \fill [fill color] (-64,-160) .. controls ++( 90:144) and ++(270: 64) .. (-120, 64) arc (180:0: 120 and 112) .. controls ++(270: 64) and ++( 90:144) .. ( 64,-160) -- cycle; } \reflect[split=Grey50 and Grey200]{% \fill [fill color](-64,-160) .. controls ++( 75:144) and ++(270: 64) .. (-16, 64) .. controls ++( 90: 32) and ++(180: 72) .. ( 0, 168) .. controls ++( 0: 72) and ++( 90: 32) .. ( 16, 64) .. controls ++(270: 64) and ++(105:144) .. ( 64,-160) -- cycle; } \reflect[split=Pink100 and Pink200]{ \fill [fill color] (0,-160) ellipse [x radius=64, y radius=56]; } \fill [Pink300] (0, -160) ellipse [x radius=48, y radius=40]; \reflect[split=Pink100 and Pink200]{ \fill [fill color] (0,-128) ellipse [x radius=80, y radius=56]; } \fill [Pink300] (-32, -128) ellipse [radius=16] ( 32, -128) ellipse [radius=16]; \fill [BlueGrey900] (-64, 64) ellipse [radius=24] ( 64, 64) ellipse [radius=24]; \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {cow}; \end{tikzpicture} \end{document}
Invert the colors of the cow's skin, so that the middle of its face is gray and the outer side is white.
A white cow, with a gray mark on the middle of its face
easy
update
animal
[ "@@ -30 +30 @@\n\n-\\fill \\ifnum\\j=0 \\ifnum \\i=-1 [BlueGrey700] \\else [BlueGrey800] \\fi\\else [BlueGrey900] \\fi\n+\\fill \\ifnum\\j=0 \\ifnum \\i=-1 [Grey50] \\else [Grey200] \\fi\\else [BlueGrey900] \\fi\n@@ -37 +37 @@\n\n-\\reflect[split={BlueGrey700 and BlueGrey800}]{\n+\\reflect[split={Grey50 and Grey200 }]{\n@@ -43 +43 @@\n\n-\\reflect[split=Grey50 and Grey200]{\n+\\reflect[split=BlueGrey700 and BlueGrey800]{" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ncow/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\reflect[]{\n\\tikzset{shift={(32,140)}, rotate=-45}\n \\fill [BlueGrey100] (0,0) arc (0:90:32 and 96) arc (90:0:96);\n \\fill [BlueGrey200] (32,0) arc (0:90:64 and 96) arc (90:0:96);\n}\n\\foreach \\i in {-1, 1}\\foreach \\j in {0, 1}\n\\fill \\ifnum\\j=0 \\ifnum \\i=-1 [Grey50] \\else [Grey200] \\fi\\else [BlueGrey900] \\fi\n [xscale=\\i, shift={(128,88)}, rotate=10, scale=1-\\j/3]\n (-72,0)\n .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48)\n .. controls ++( 0:16) and ++( 90:12) .. (88, 0)\n .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48)\n .. controls ++(180: 8) and ++(270: 8) .. cycle;\n\\reflect[split={Grey50 and Grey200 }]{\n \\fill [fill color] (-64,-160)\n .. controls ++( 90:144) and ++(270: 64) .. (-120, 64)\n arc (180:0: 120 and 112)\n .. controls ++(270: 64) and ++( 90:144) .. ( 64,-160) -- cycle;\n}\n\\reflect[split=BlueGrey700 and BlueGrey800]{\n \\fill [fill color](-64,-160)\n .. controls ++( 75:144) and ++(270: 64) .. (-16, 64)\n .. controls ++( 90: 32) and ++(180: 72) .. ( 0, 168)\n .. controls ++( 0: 72) and ++( 90: 32) .. ( 16, 64)\n .. controls ++(270: 64) and ++(105:144) .. ( 64,-160) -- cycle;\n}\n\\reflect[split=Pink100 and Pink200]{\n \\fill [fill color] (0,-160) ellipse [x radius=64, y radius=56];\n}\n\\fill [Pink300] (0, -160) ellipse [x radius=48, y radius=40];\n\\reflect[split=Pink100 and Pink200]{\n \\fill [fill color] (0,-128) ellipse [x radius=80, y radius=56];\n}\n\\fill [Pink300]\n (-32, -128) ellipse [radius=16]\n ( 32, -128) ellipse [radius=16];\n\\fill [BlueGrey900]\n (-64, 64) ellipse [radius=24]\n ( 64, 64) ellipse [radius=24];\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cow};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ncow/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\reflect[]{\n\\tikzset{shift={(32,140)}, rotate=-45}\n \\fill [BlueGrey100] (0,0) arc (0:90:32 and 96) arc (90:0:96);\n \\fill [BlueGrey200] (32,0) arc (0:90:64 and 96) arc (90:0:96);\n}\n\\foreach \\i in {-1, 1}\\foreach \\j in {0, 1}\n\\fill \\ifnum\\j=0 \\ifnum \\i=-1 [Grey50] \\else [Grey200] \\fi\\else [BlueGrey900] \\fi\n [xscale=\\i, shift={(128,88)}, rotate=10, scale=1-\\j/3]\n (-72,0)\n .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48)\n .. controls ++( 0:16) and ++( 90:12) .. (88, 0)\n .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48)\n .. controls ++(180: 8) and ++(270: 8) .. cycle;\n\\reflect[split={Grey50 and Grey200 }]{\n \\fill [fill color] (-64,-160)\n .. controls ++( 90:144) and ++(270: 64) .. (-120, 64)\n arc (180:0: 120 and 112)\n .. controls ++(270: 64) and ++( 90:144) .. ( 64,-160) -- cycle;\n}\n\\reflect[split=BlueGrey700 and BlueGrey800]{\n \\fill [fill color](-64,-160)\n .. controls ++( 75:144) and ++(270: 64) .. (-16, 64)\n .. controls ++( 90: 32) and ++(180: 72) .. ( 0, 168)\n .. controls ++( 0: 72) and ++( 90: 32) .. ( 16, 64)\n .. controls ++(270: 64) and ++(105:144) .. ( 64,-160) -- cycle;\n}\n\\reflect[split=Pink100 and Pink200]{\n \\fill [fill color] (0,-160) ellipse [x radius=64, y radius=56];\n}\n\\fill [Pink300] (0, -160) ellipse [x radius=48, y radius=40];\n\\reflect[split=Pink100 and Pink200]{\n \\fill [fill color] (0,-128) ellipse [x radius=80, y radius=56];\n}\n\\fill [Pink300]\n (-32, -128) ellipse [radius=16]\n ( 32, -128) ellipse [radius=16];\n\\fill [BlueGrey900]\n (-64, 64) ellipse [radius=24]\n ( 64, 64) ellipse [radius=24];\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cow};\n\\end{tikzpicture}\n\\end{document}" ]
[ 2 ]
cow_longer_horns
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ cow/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \reflect[]{ \tikzset{shift={(32,140)}, rotate=-45} \fill [BlueGrey100] (0,0) arc (0:90:32 and 96) arc (90:0:96); \fill [BlueGrey200] (32,0) arc (0:90:64 and 96) arc (90:0:96); } \foreach \i in {-1, 1}\foreach \j in {0, 1} \fill \ifnum\j=0 \ifnum \i=-1 [BlueGrey700] \else [BlueGrey800] \fi\else [BlueGrey900] \fi [xscale=\i, shift={(128,88)}, rotate=10, scale=1-\j/3] (-72,0) .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48) .. controls ++( 0:16) and ++( 90:12) .. (88, 0) .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48) .. controls ++(180: 8) and ++(270: 8) .. cycle; \reflect[split={BlueGrey700 and BlueGrey800}]{ \fill [fill color] (-64,-160) .. controls ++( 90:144) and ++(270: 64) .. (-120, 64) arc (180:0: 120 and 112) .. controls ++(270: 64) and ++( 90:144) .. ( 64,-160) -- cycle; } \reflect[split=Grey50 and Grey200]{ \fill [fill color](-64,-160) .. controls ++( 75:144) and ++(270: 64) .. (-16, 64) .. controls ++( 90: 32) and ++(180: 72) .. ( 0, 168) .. controls ++( 0: 72) and ++( 90: 32) .. ( 16, 64) .. controls ++(270: 64) and ++(105:144) .. ( 64,-160) -- cycle; } \reflect[split=Pink100 and Pink200]{ \fill [fill color] (0,-160) ellipse [x radius=64, y radius=56]; } \fill [Pink300] (0, -160) ellipse [x radius=48, y radius=40]; \reflect[split=Pink100 and Pink200]{ \fill [fill color] (0,-128) ellipse [x radius=80, y radius=56]; } \fill [Pink300] (-32, -128) ellipse [radius=16] ( 32, -128) ellipse [radius=16]; \fill [BlueGrey900] (-64, 64) ellipse [radius=24] ( 64, 64) ellipse [radius=24]; \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {cow}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ cow/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \reflect[]{ \tikzset{shift={(32,140)}, rotate=-45} \fill [BlueGrey100] (0,0) arc (0:90:32 and 96) arc (90:0:96); \fill [BlueGrey200] (32,0) arc (0:90:64 and 96) arc (90:0:96); } \foreach \i in {-1, 1}\foreach \j in {0, 1} \fill \ifnum\j=0 \ifnum \i=-1 [BlueGrey700] \else [BlueGrey800] \fi\else [BlueGrey900] \fi [xscale=\i, shift={(128,88)}, rotate=10, scale=1-\j/3] (-72,0) .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48) .. controls ++( 0:16) and ++( 90:12) .. (88, 0) .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48) .. controls ++(180: 8) and ++(270: 8) .. cycle; \reflect[split={BlueGrey700 and BlueGrey800}]{% \fill [fill color] (-64,-160) .. controls ++( 90:144) and ++(270: 64) .. (-120, 64) arc (180:0: 120 and 112) .. controls ++(270: 64) and ++( 90:144) .. ( 64,-160) -- cycle; } \reflect[split=Grey50 and Grey200]{% \fill [fill color](-64,-160) .. controls ++( 75:144) and ++(270: 64) .. (-16, 64) .. controls ++( 90: 32) and ++(180: 72) .. ( 0, 168) .. controls ++( 0: 72) and ++( 90: 32) .. ( 16, 64) .. controls ++(270: 64) and ++(105:144) .. ( 64,-160) -- cycle; } \reflect[split=Pink100 and Pink200]{ \fill [fill color] (0,-160) ellipse [x radius=64, y radius=56]; } \fill [Pink300] (0, -160) ellipse [x radius=48, y radius=40]; \reflect[split=Pink100 and Pink200]{ \fill [fill color] (0,-128) ellipse [x radius=80, y radius=56]; } \fill [Pink300] (-32, -128) ellipse [radius=16] ( 32, -128) ellipse [radius=16]; \fill [BlueGrey900] (-64, 64) ellipse [radius=24] ( 64, 64) ellipse [radius=24]; \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {cow}; \end{tikzpicture} \end{document}
Make the horns of the cow longer
A cow with long horns
medium
update
animal
[ "@@ -26,2 +26,2 @@\n\n-\\fill [BlueGrey100] (0,0) arc (0:90:32 and 96) arc (90:0:96);\n-\\fill [BlueGrey200] (32,0) arc (0:90:64 and 96) arc (90:0:96);\n+\\fill [BlueGrey100] (0,0) arc (0:90:32 and 130) arc (90:0:96);\n+\\fill [BlueGrey200] (32,0) arc (0:90:64 and 130) arc (90:0:96);" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ncow/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\reflect[]{\n\\tikzset{shift={(32,140)}, rotate=-45}\n \\fill [BlueGrey100] (0,0) arc (0:90:32 and §rangei(130,20)) arc (90:0:96);\n \\fill [BlueGrey200] (32,0) arc (0:90:64 and §rangei(130,20)) arc (90:0:96);\n}\n\\foreach \\i in {-1, 1}\\foreach \\j in {0, 1}\n\\fill \\ifnum\\j=0 \\ifnum \\i=-1 [BlueGrey700] \\else [BlueGrey800] \\fi\\else [BlueGrey900] \\fi\n [xscale=\\i, shift={(128,88)}, rotate=10, scale=1-\\j/3]\n (-72,0)\n .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48)\n .. controls ++( 0:16) and ++( 90:12) .. (88, 0)\n .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48)\n .. controls ++(180: 8) and ++(270: 8) .. cycle;\n\\reflect[split={BlueGrey700 and BlueGrey800}]{\n \\fill [fill color] (-64,-160)\n .. controls ++( 90:144) and ++(270: 64) .. (-120, 64)\n arc (180:0: 120 and 112)\n .. controls ++(270: 64) and ++( 90:144) .. ( 64,-160) -- cycle;\n}\n\\reflect[split=Grey50 and Grey200]{\n \\fill [fill color](-64,-160)\n .. controls ++( 75:144) and ++(270: 64) .. (-16, 64)\n .. controls ++( 90: 32) and ++(180: 72) .. ( 0, 168)\n .. controls ++( 0: 72) and ++( 90: 32) .. ( 16, 64)\n .. controls ++(270: 64) and ++(105:144) .. ( 64,-160) -- cycle;\n}\n\\reflect[split=Pink100 and Pink200]{\n \\fill [fill color] (0,-160) ellipse [x radius=64, y radius=56];\n}\n\\fill [Pink300] (0, -160) ellipse [x radius=48, y radius=40];\n\\reflect[split=Pink100 and Pink200]{\n \\fill [fill color] (0,-128) ellipse [x radius=80, y radius=56];\n}\n\\fill [Pink300]\n (-32, -128) ellipse [radius=16]\n ( 32, -128) ellipse [radius=16];\n\\fill [BlueGrey900]\n (-64, 64) ellipse [radius=24]\n ( 64, 64) ellipse [radius=24];\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cow};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ncow/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\reflect[]{\n\\tikzset{shift={(32,140)}, rotate=-45}\n \\fill [BlueGrey100] (0,0) arc (0:90:32 and 130) arc (90:0:96);\n \\fill [BlueGrey200] (32,0) arc (0:90:64 and 130) arc (90:0:96);\n}\n\\foreach \\i in {-1, 1}\\foreach \\j in {0, 1}\n\\fill \\ifnum\\j=0 \\ifnum \\i=-1 [BlueGrey700] \\else [BlueGrey800] \\fi\\else [BlueGrey900] \\fi\n [xscale=\\i, shift={(128,88)}, rotate=10, scale=1-\\j/3]\n (-72,0)\n .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48)\n .. controls ++( 0:16) and ++( 90:12) .. (88, 0)\n .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48)\n .. controls ++(180: 8) and ++(270: 8) .. cycle;\n\\reflect[split={BlueGrey700 and BlueGrey800}]{\n \\fill [fill color] (-64,-160)\n .. controls ++( 90:144) and ++(270: 64) .. (-120, 64)\n arc (180:0: 120 and 112)\n .. controls ++(270: 64) and ++( 90:144) .. ( 64,-160) -- cycle;\n}\n\\reflect[split=Grey50 and Grey200]{\n \\fill [fill color](-64,-160)\n .. controls ++( 75:144) and ++(270: 64) .. (-16, 64)\n .. controls ++( 90: 32) and ++(180: 72) .. ( 0, 168)\n .. controls ++( 0: 72) and ++( 90: 32) .. ( 16, 64)\n .. controls ++(270: 64) and ++(105:144) .. ( 64,-160) -- cycle;\n}\n\\reflect[split=Pink100 and Pink200]{\n \\fill [fill color] (0,-160) ellipse [x radius=64, y radius=56];\n}\n\\fill [Pink300] (0, -160) ellipse [x radius=48, y radius=40];\n\\reflect[split=Pink100 and Pink200]{\n \\fill [fill color] (0,-128) ellipse [x radius=80, y radius=56];\n}\n\\fill [Pink300]\n (-32, -128) ellipse [radius=16]\n ( 32, -128) ellipse [radius=16];\n\\fill [BlueGrey900]\n (-64, 64) ellipse [radius=24]\n ( 64, 64) ellipse [radius=24];\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cow};\n\\end{tikzpicture}\n\\end{document}" ]
[ 4 ]
cow_opened_mouth
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ cow/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \reflect[]{ \tikzset{shift={(32,140)}, rotate=-45} \fill [BlueGrey100] (0,0) arc (0:90:32 and 96) arc (90:0:96); \fill [BlueGrey200] (32,0) arc (0:90:64 and 96) arc (90:0:96); } \foreach \i in {-1, 1}\foreach \j in {0, 1} \fill \ifnum\j=0 \ifnum \i=-1 [BlueGrey700] \else [BlueGrey800] \fi\else [BlueGrey900] \fi [xscale=\i, shift={(128,88)}, rotate=10, scale=1-\j/3] (-72,0) .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48) .. controls ++( 0:16) and ++( 90:12) .. (88, 0) .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48) .. controls ++(180: 8) and ++(270: 8) .. cycle; \reflect[split={BlueGrey700 and BlueGrey800}]{ \fill [fill color] (-64,-160) .. controls ++( 90:144) and ++(270: 64) .. (-120, 64) arc (180:0: 120 and 112) .. controls ++(270: 64) and ++( 90:144) .. ( 64,-160) -- cycle; } \reflect[split=Grey50 and Grey200]{ \fill [fill color](-64,-160) .. controls ++( 75:144) and ++(270: 64) .. (-16, 64) .. controls ++( 90: 32) and ++(180: 72) .. ( 0, 168) .. controls ++( 0: 72) and ++( 90: 32) .. ( 16, 64) .. controls ++(270: 64) and ++(105:144) .. ( 64,-160) -- cycle; } \reflect[split=Pink100 and Pink200]{ \fill [fill color] (0,-160) ellipse [x radius=64, y radius=56]; } \fill [Pink300] (0, -160) ellipse [x radius=48, y radius=40]; \reflect[split=Pink100 and Pink200]{ \fill [fill color] (0,-128) ellipse [x radius=80, y radius=56]; } \fill [Pink300] (-32, -128) ellipse [radius=16] ( 32, -128) ellipse [radius=16]; \fill [BlueGrey900] (-64, 64) ellipse [radius=24] ( 64, 64) ellipse [radius=24]; \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {cow}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ cow/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \reflect[]{ \tikzset{shift={(32,140)}, rotate=-45} \fill [BlueGrey100] (0,0) arc (0:90:32 and 96) arc (90:0:96); \fill [BlueGrey200] (32,0) arc (0:90:64 and 96) arc (90:0:96); } \foreach \i in {-1, 1}\foreach \j in {0, 1} \fill \ifnum\j=0 \ifnum \i=-1 [BlueGrey700] \else [BlueGrey800] \fi\else [BlueGrey900] \fi [xscale=\i, shift={(128,88)}, rotate=10, scale=1-\j/3] (-72,0) .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48) .. controls ++( 0:16) and ++( 90:12) .. (88, 0) .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48) .. controls ++(180: 8) and ++(270: 8) .. cycle; \reflect[split={BlueGrey700 and BlueGrey800}]{% \fill [fill color] (-64,-160) .. controls ++( 90:144) and ++(270: 64) .. (-120, 64) arc (180:0: 120 and 112) .. controls ++(270: 64) and ++( 90:144) .. ( 64,-160) -- cycle; } \reflect[split=Grey50 and Grey200]{% \fill [fill color](-64,-160) .. controls ++( 75:144) and ++(270: 64) .. (-16, 64) .. controls ++( 90: 32) and ++(180: 72) .. ( 0, 168) .. controls ++( 0: 72) and ++( 90: 32) .. ( 16, 64) .. controls ++(270: 64) and ++(105:144) .. ( 64,-160) -- cycle; } \reflect[split=Pink100 and Pink200]{ \fill [fill color] (0,-160) ellipse [x radius=64, y radius=56]; } \fill [Pink300] (0, -160) ellipse [x radius=48, y radius=40]; \reflect[split=Pink100 and Pink200]{ \fill [fill color] (0,-128) ellipse [x radius=80, y radius=56]; } \fill [Pink300] (-32, -128) ellipse [radius=16] ( 32, -128) ellipse [radius=16]; \fill [BlueGrey900] (-64, 64) ellipse [radius=24] ( 64, 64) ellipse [radius=24]; \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {cow}; \end{tikzpicture} \end{document}
Make the mouth of the cow wide open vertically
A cow with its mouth opened
medium
update
animal
[ "@@ -51 +51 @@\n\n-\\fill [fill color] (0,-160) ellipse [x radius=64, y radius=56];\n+\\fill [fill color] (0,-170) ellipse [x radius=64, y radius=90];\n@@ -53 +53 @@\n\n-\\fill [Pink300] (0, -160) ellipse [x radius=48, y radius=40];\n+\\fill [Pink300] (0, -170) ellipse [x radius=48, y radius=70];" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ncow/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\reflect[]{\n\\tikzset{shift={(32,140)}, rotate=-45}\n \\fill [BlueGrey100] (0,0) arc (0:90:32 and 96) arc (90:0:96);\n \\fill [BlueGrey200] (32,0) arc (0:90:64 and 96) arc (90:0:96);\n}\n\\foreach \\i in {-1, 1}\\foreach \\j in {0, 1}\n\\fill \\ifnum\\j=0 \\ifnum \\i=-1 [BlueGrey700] \\else [BlueGrey800] \\fi\\else [BlueGrey900] \\fi\n [xscale=\\i, shift={(128,88)}, rotate=10, scale=1-\\j/3]\n (-72,0)\n .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48)\n .. controls ++( 0:16) and ++( 90:12) .. (88, 0)\n .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48)\n .. controls ++(180: 8) and ++(270: 8) .. cycle;\n\\reflect[split={BlueGrey700 and BlueGrey800}]{\n \\fill [fill color] (-64,-160)\n .. controls ++( 90:144) and ++(270: 64) .. (-120, 64)\n arc (180:0: 120 and 112)\n .. controls ++(270: 64) and ++( 90:144) .. ( 64,-160) -- cycle;\n}\n\\reflect[split=Grey50 and Grey200]{\n \\fill [fill color](-64,-160)\n .. controls ++( 75:144) and ++(270: 64) .. (-16, 64)\n .. controls ++( 90: 32) and ++(180: 72) .. ( 0, 168)\n .. controls ++( 0: 72) and ++( 90: 32) .. ( 16, 64)\n .. controls ++(270: 64) and ++(105:144) .. ( 64,-160) -- cycle;\n}\n\\reflect[split=Pink100 and Pink200]{\n \\fill [fill color] (0,§rangei(-170,10)) ellipse [x radius=64, y radius=§rangei(90,25)];\n}\n\\fill [Pink300] (0, §rangei(-170,10)) ellipse [x radius=48, y radius=§rangei(70,30)];\n\\reflect[split=Pink100 and Pink200]{\n \\fill [fill color] (0,-128) ellipse [x radius=80, y radius=56];\n}\n\\fill [Pink300]\n (-32, -128) ellipse [radius=16]\n ( 32, -128) ellipse [radius=16];\n\\fill [BlueGrey900]\n (-64, 64) ellipse [radius=24]\n ( 64, 64) ellipse [radius=24];\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cow};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ncow/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\reflect[]{\n\\tikzset{shift={(32,140)}, rotate=-45}\n \\fill [BlueGrey100] (0,0) arc (0:90:32 and 96) arc (90:0:96);\n \\fill [BlueGrey200] (32,0) arc (0:90:64 and 96) arc (90:0:96);\n}\n\\foreach \\i in {-1, 1}\\foreach \\j in {0, 1}\n\\fill \\ifnum\\j=0 \\ifnum \\i=-1 [BlueGrey700] \\else [BlueGrey800] \\fi\\else [BlueGrey900] \\fi\n [xscale=\\i, shift={(128,88)}, rotate=10, scale=1-\\j/3]\n (-72,0)\n .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48)\n .. controls ++( 0:16) and ++( 90:12) .. (88, 0)\n .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48)\n .. controls ++(180: 8) and ++(270: 8) .. cycle;\n\\reflect[split={BlueGrey700 and BlueGrey800}]{\n \\fill [fill color] (-64,-160)\n .. controls ++( 90:144) and ++(270: 64) .. (-120, 64)\n arc (180:0: 120 and 112)\n .. controls ++(270: 64) and ++( 90:144) .. ( 64,-160) -- cycle;\n}\n\\reflect[split=Grey50 and Grey200]{\n \\fill [fill color](-64,-160)\n .. controls ++( 75:144) and ++(270: 64) .. (-16, 64)\n .. controls ++( 90: 32) and ++(180: 72) .. ( 0, 168)\n .. controls ++( 0: 72) and ++( 90: 32) .. ( 16, 64)\n .. controls ++(270: 64) and ++(105:144) .. ( 64,-160) -- cycle;\n}\n\\reflect[split=Pink100 and Pink200]{\n \\fill [fill color] (0,-170) ellipse [x radius=64, y radius=90];\n}\n\\fill [Pink300] (0, -170) ellipse [x radius=48, y radius=70];\n\\reflect[split=Pink100 and Pink200]{\n \\fill [fill color] (0,-128) ellipse [x radius=80, y radius=56];\n}\n\\fill [Pink300]\n (-32, -128) ellipse [radius=16]\n ( 32, -128) ellipse [radius=16];\n\\fill [BlueGrey900]\n (-64, 64) ellipse [radius=24]\n ( 64, 64) ellipse [radius=24];\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {cow};\n\\end{tikzpicture}\n\\end{document}" ]
[ 139 ]
cylinder_mirrored
\documentclass[tikz,border=5]{standalone} \usepackage{amsmath} \usepackage{amssymb} \usepackage{tikz} \usetikzlibrary{calc,fit,patterns,decorations.markings,matrix,3d} \begin{document} \begin{tikzpicture}[scale=1] \def\Anglei{-67.5} \def\Angleii{233} \def\Angleiii{170} \draw[thin,->] (-2,0) -- (5,0); \draw[thin,->] (0,-2) -- (0,3); \begin{scope}[canvas is zx plane at y=0] \coordinate (circmb) at ( $ (0,2.5) + (\Angleii:2cm) $ ); \coordinate (circma) at ( $ (0,2.5) + (\Angleiii:2cm) $ ); \draw[dashed] (circmb) arc [start angle=\Angleii,end angle=\Angleiii,radius=2cm]; \draw (circma) arc [start angle=\Angleiii,end angle=\Angleii-360,radius=2cm]; \fill[fill=gray,opacity=0.5] (0,2.5) circle (1cm); \coordinate (circm1) at ( $ (0,2.5) + (\Anglei:1cm) $ ); \coordinate (circm2) at ( $ (0,2.5) + (180+\Anglei:1cm) $ ); \draw (circm1) arc [start angle=\Anglei,end angle=180+\Anglei,radius=1cm]; \draw[dashed] (circm2) arc [start angle=180+\Anglei,end angle=360+\Anglei,radius=1cm]; \draw[->] (-2,0) -- (3,0); \end{scope} \begin{scope}[canvas is zx plane at y=1.5] \path (0,2.5) circle (1cm); \coordinate (circ1a) at ( $ (0,2.5) + (\Anglei:1cm) $ ); \coordinate (circ1b) at ( $ (0,2.5) + (180+\Anglei:1cm) $ ); \end{scope} \begin{scope}[canvas is zx plane at y=-1.5] \path (0,2.5) circle (1cm); \coordinate (circ2a) at ( $ (0,2.5) + (\Anglei:1cm) $ ); \coordinate (circ2b) at ( $ (0,2.5) + (180+\Anglei:1cm) $ ); \end{scope} \begin{scope}[canvas is xy plane at z=0] \draw (circ1a) -- (circ2a); \draw (circ1b) -- (circ2b); \end{scope} \begin{scope}[canvas is zx plane at y=1.5] \draw (0,2.5) circle (1cm); \end{scope} \begin{scope}[canvas is zx plane at y=-1.5] \draw (circ2a) arc [start angle=\Anglei,end angle=180+\Anglei,radius=1cm]; \draw[dashed] (circ2b) arc [start angle=180+\Anglei,end angle=360+\Anglei,radius=1cm]; \end{scope} \begin{scope}[every node/.append style={ xslant=1,sloped} ] \node at (2.4,-.2) {\scalebox{1}[.7]{$T_0$}}; \node at (4,.4) {\scalebox{1}[.7]{$T$}}; \node at (-.8,-.2) {\scalebox{1}[.7]{$\mathbb{R}^n$}}; \end{scope} \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{amsmath} \usepackage{amssymb} \usepackage{tikz} \usetikzlibrary{calc,fit,patterns,decorations.markings,matrix,3d} \begin{document} \begin{tikzpicture}[scale=1] \def\Anglei{-67.5} \def\Angleii{233} \def\Angleiii{170} \draw[thin,->] (-2,0) -- (5,0); \draw[thin,->] (0,-2) -- (0,3); %Zylinder \begin{scope}[canvas is zx plane at y=0] \coordinate (circmb) at ( $ (0,2.5) + (\Angleii:2cm) $ ); \coordinate (circma) at ( $ (0,2.5) + (\Angleiii:2cm) $ ); \draw[dashed] (circmb) arc [start angle=\Angleii,end angle=\Angleiii,radius=2cm]; \draw (circma) arc [start angle=\Angleiii,end angle=\Angleii-360,radius=2cm]; \fill[fill=gray,opacity=0.5] (0,2.5) circle (1cm); \coordinate (circm1) at ( $ (0,2.5) + (\Anglei:1cm) $ ); \coordinate (circm2) at ( $ (0,2.5) + (180+\Anglei:1cm) $ ); \draw (circm1) arc [start angle=\Anglei,end angle=180+\Anglei,radius=1cm]; \draw[dashed] (circm2) arc [start angle=180+\Anglei,end angle=360+\Anglei,radius=1cm]; \draw[->] (-2,0) -- (3,0); \end{scope} \begin{scope}[canvas is zx plane at y=1.5] \path (0,2.5) circle (1cm); \coordinate (circ1a) at ( $ (0,2.5) + (\Anglei:1cm) $ ); \coordinate (circ1b) at ( $ (0,2.5) + (180+\Anglei:1cm) $ ); \end{scope} \begin{scope}[canvas is zx plane at y=-1.5] \path (0,2.5) circle (1cm); \coordinate (circ2a) at ( $ (0,2.5) + (\Anglei:1cm) $ ); \coordinate (circ2b) at ( $ (0,2.5) + (180+\Anglei:1cm) $ ); \end{scope} \begin{scope}[canvas is xy plane at z=0] \draw (circ1a) -- (circ2a); \draw (circ1b) -- (circ2b); \end{scope} \begin{scope}[canvas is zx plane at y=1.5] \draw (0,2.5) circle (1cm); \end{scope} \begin{scope}[canvas is zx plane at y=-1.5] \draw (circ2a) arc [start angle=\Anglei,end angle=180+\Anglei,radius=1cm]; \draw[dashed] (circ2b) arc [start angle=180+\Anglei,end angle=360+\Anglei,radius=1cm]; \end{scope} \begin{scope}[every node/.append style={ xslant=1,sloped} ] \node at (2.4,-.2) {\scalebox{1}[.7]{$T_0$}}; \node at (4,.4) {\scalebox{1}[.7]{$T$}}; \node at (-.8,-.2) {\scalebox{1}[.7]{$\mathbb{R}^n$}}; \end{scope} \end{tikzpicture} \end{document}
Mirror the cylinder on the other side of the z axis. Mirror only the cylinder and nothing else, and adapt the length of the coordinate axe(s).
Technical diagram with two identical cylinders, on each side of a z axis
medium
add
scientific
[ "@@ -11 +11 @@\n\n-\\draw[thin,->] (-2,0) -- (5,0);\n+\\draw[thin,->] (-5,0) -- (5,0);\n@@ -45,0 +46,21 @@\n\n+\\begin{scope}[canvas is zx plane at y=1.5]\n+\\path (0,-2.5) circle (1cm);\n+\\coordinate (circ3a) at ( $ (0,-2.5) + (\\Anglei:1cm) $ );\n+\\coordinate (circ3b) at ( $ (0,-2.5) + (180+\\Anglei:1cm) $ );\n+\\end{scope}\n+\\begin{scope}[canvas is zx plane at y=-1.5]\n+\\path (0,-2.5) circle (1cm);\n+\\coordinate (circ4a) at ( $ (0,-2.5) + (\\Anglei:1cm) $ );\n+\\coordinate (circ4b) at ( $ (0,-2.5) + (180+\\Anglei:1cm) $ );\n+\\end{scope}\n+\\begin{scope}[canvas is xy plane at z=0]\n+\\draw (circ3a) -- (circ4a);\n+\\draw (circ3b) -- (circ4b);\n+\\end{scope}\n+\\begin{scope}[canvas is zx plane at y=1.5]\n+\\draw (0,-2.5) circle (1cm);\n+\\end{scope}\n+\\begin{scope}[canvas is zx plane at y=-1.5]\n+\\draw (circ4a) arc [start angle=\\Anglei,end angle=180+\\Anglei,radius=1cm];\n+\\draw[dashed] (circ4b) arc [start angle=180+\\Anglei,end angle=360+\\Anglei,radius=1cm];\n+\\end{scope}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath}\n\\usepackage{amssymb}\n\\usepackage{tikz}\n\\usetikzlibrary{calc,fit,patterns,decorations.markings,matrix,3d}\n\n\\begin{document}\n\n\\begin{tikzpicture}[scale=1]\n\\def\\Anglei{-67.5}\n\\def\\Angleii{233}\n\\def\\Angleiii{170}\n\n\\draw[thin,->] (-5,0) -- (5,0);\n\\draw[thin,->] (0,-2) -- (0,3);\n\n\\begin{scope}[canvas is zx plane at y=0]\n\\coordinate (circmb) at ( $ (0,2.5) + (\\Angleii:2cm) $ );\n\\coordinate (circma) at ( $ (0,2.5) + (\\Angleiii:2cm) $ );\n\\draw[dashed] (circmb) arc [start angle=\\Angleii,end angle=\\Angleiii,radius=2cm];\n\\draw (circma) arc [start angle=\\Angleiii,end angle=\\Angleii-360,radius=2cm];\n\\fill[fill=gray,opacity=0.5] (0,2.5) circle (1cm);\n\n\\coordinate (circm1) at ( $ (0,2.5) + (\\Anglei:1cm) $ );\n\\coordinate (circm2) at ( $ (0,2.5) + (180+\\Anglei:1cm) $ );\n\n\\draw (circm1) arc [start angle=\\Anglei,end angle=180+\\Anglei,radius=1cm];\n\\draw[dashed] (circm2) arc [start angle=180+\\Anglei,end angle=360+\\Anglei,radius=1cm];\n\n\\draw[->] (-2,0) -- (3,0);\n\\end{scope}\n\n\\begin{scope}[canvas is zx plane at y=1.5]\n\\path (0,2.5) circle (1cm);\n\\coordinate (circ1a) at ( $ (0,2.5) + (\\Anglei:1cm) $ );\n\\coordinate (circ1b) at ( $ (0,2.5) + (180+\\Anglei:1cm) $ );\n\\end{scope}\n\n\\begin{scope}[canvas is zx plane at y=-1.5]\n\\path (0,2.5) circle (1cm);\n\\coordinate (circ2a) at ( $ (0,2.5) + (\\Anglei:1cm) $ );\n\\coordinate (circ2b) at ( $ (0,2.5) + (180+\\Anglei:1cm) $ );\n\\end{scope} \n\n\\begin{scope}[canvas is xy plane at z=0]\n\\draw (circ1a) -- (circ2a);\n\\draw (circ1b) -- (circ2b);\n\\end{scope}\n\n\\begin{scope}[canvas is zx plane at y=1.5]\n\\draw (0,2.5) circle (1cm);\n\\end{scope}\n\n\\begin{scope}[canvas is zx plane at y=-1.5]\n\\draw (circ2a) arc [start angle=\\Anglei,end angle=180+\\Anglei,radius=1cm];\n\\draw[dashed] (circ2b) arc [start angle=180+\\Anglei,end angle=360+\\Anglei,radius=1cm];\n\\end{scope} \n\n\\begin{scope}[canvas is zx plane at y=1.5]\n\\path (0,-2.5) circle (1cm);\n\\coordinate (circ3a) at ( $ (0,-2.5) + (\\Anglei:1cm) $ );\n\\coordinate (circ3b) at ( $ (0,-2.5) + (180+\\Anglei:1cm) $ );\n\\end{scope}\n\n\\begin{scope}[canvas is zx plane at y=-1.5]\n\\path (0,-2.5) circle (1cm);\n\\coordinate (circ4a) at ( $ (0,-2.5) + (\\Anglei:1cm) $ );\n\\coordinate (circ4b) at ( $ (0,-2.5) + (180+\\Anglei:1cm) $ );\n\\end{scope} \n\n\\begin{scope}[canvas is xy plane at z=0]\n\\draw (circ3a) -- (circ4a);\n\\draw (circ3b) -- (circ4b);\n\\end{scope}\n\n\\begin{scope}[canvas is zx plane at y=1.5]\n\\draw (0,-2.5) circle (1cm);\n\\end{scope}\n\n\\begin{scope}[canvas is zx plane at y=-1.5]\n\\draw (circ4a) arc [start angle=\\Anglei,end angle=180+\\Anglei,radius=1cm];\n\\draw[dashed] (circ4b) arc [start angle=180+\\Anglei,end angle=360+\\Anglei,radius=1cm];\n\\end{scope} \n\n\\begin{scope}[every node/.append style={\nxslant=1,sloped}\n]\n\\node at (2.4,-.2) {\\scalebox{1}[.7]{$T_0$}};\n\\node at (4,.4) {\\scalebox{1}[.7]{$T$}};\n\\node at (-.8,-.2) {\\scalebox{1}[.7]{$\\mathbb{R}^n$}};\n\\end{scope}\n\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath}\n\\usepackage{amssymb}\n\\usepackage{tikz}\n\\usetikzlibrary{calc,fit,patterns,decorations.markings,matrix,3d}\n\n\\begin{document}\n\n\\begin{tikzpicture}[scale=1]\n\\def\\Anglei{-67.5}\n\\def\\Angleii{233}\n\\def\\Angleiii{170}\n\n\\draw[thin,->] (-5,0) -- (5,0);\n\\draw[thin,->] (0,-2) -- (0,3);\n\n\\begin{scope}[canvas is zx plane at y=0]\n\\coordinate (circmb) at ( $ (0,2.5) + (\\Angleii:2cm) $ );\n\\coordinate (circma) at ( $ (0,2.5) + (\\Angleiii:2cm) $ );\n\\draw[dashed] (circmb) arc [start angle=\\Angleii,end angle=\\Angleiii,radius=2cm];\n\\draw (circma) arc [start angle=\\Angleiii,end angle=\\Angleii-360,radius=2cm];\n\\fill[fill=gray,opacity=0.5] (0,2.5) circle (1cm);\n\n\\coordinate (circm1) at ( $ (0,2.5) + (\\Anglei:1cm) $ );\n\\coordinate (circm2) at ( $ (0,2.5) + (180+\\Anglei:1cm) $ );\n\n\\draw (circm1) arc [start angle=\\Anglei,end angle=180+\\Anglei,radius=1cm];\n\\draw[dashed] (circm2) arc [start angle=180+\\Anglei,end angle=360+\\Anglei,radius=1cm];\n\n\\draw[->] (-2,0) -- (3,0);\n\\end{scope}\n\n\\begin{scope}[canvas is zx plane at y=1.5]\n\\path (0,2.5) circle (1cm);\n\\coordinate (circ1a) at ( $ (0,2.5) + (\\Anglei:1cm) $ );\n\\coordinate (circ1b) at ( $ (0,2.5) + (180+\\Anglei:1cm) $ );\n\\end{scope}\n\n\\begin{scope}[canvas is zx plane at y=-1.5]\n\\path (0,2.5) circle (1cm);\n\\coordinate (circ2a) at ( $ (0,2.5) + (\\Anglei:1cm) $ );\n\\coordinate (circ2b) at ( $ (0,2.5) + (180+\\Anglei:1cm) $ );\n\\end{scope} \n\n\\begin{scope}[canvas is xy plane at z=0]\n\\draw (circ1a) -- (circ2a);\n\\draw (circ1b) -- (circ2b);\n\\end{scope}\n\n\\begin{scope}[canvas is zx plane at y=1.5]\n\\draw (0,2.5) circle (1cm);\n\\end{scope}\n\n\\begin{scope}[canvas is zx plane at y=-1.5]\n\\draw (circ2a) arc [start angle=\\Anglei,end angle=180+\\Anglei,radius=1cm];\n\\draw[dashed] (circ2b) arc [start angle=180+\\Anglei,end angle=360+\\Anglei,radius=1cm];\n\\end{scope} \n\n\\begin{scope}[canvas is zx plane at y=1.5]\n\\path (0,-2.5) circle (1cm);\n\\coordinate (circ3a) at ( $ (0,-2.5) + (\\Anglei:1cm) $ );\n\\coordinate (circ3b) at ( $ (0,-2.5) + (180+\\Anglei:1cm) $ );\n\\end{scope}\n\n\\begin{scope}[canvas is zx plane at y=-1.5]\n\\path (0,-2.5) circle (1cm);\n\\coordinate (circ4a) at ( $ (0,-2.5) + (\\Anglei:1cm) $ );\n\\coordinate (circ4b) at ( $ (0,-2.5) + (180+\\Anglei:1cm) $ );\n\\end{scope} \n\n\\begin{scope}[canvas is xy plane at z=0]\n\\draw (circ3a) -- (circ4a);\n\\draw (circ3b) -- (circ4b);\n\\end{scope}\n\n\\begin{scope}[canvas is zx plane at y=1.5]\n\\draw (0,-2.5) circle (1cm);\n\\end{scope}\n\n\\begin{scope}[canvas is zx plane at y=-1.5]\n\\draw (circ4a) arc [start angle=\\Anglei,end angle=180+\\Anglei,radius=1cm];\n\\draw[dashed] (circ4b) arc [start angle=180+\\Anglei,end angle=360+\\Anglei,radius=1cm];\n\\end{scope} \n\n\\begin{scope}[every node/.append style={\nxslant=1,sloped}\n]\n\\node at (2.4,-.2) {\\scalebox{1}[.7]{$T_0$}};\n\\node at (4,.4) {\\scalebox{1}[.7]{$T$}};\n\\node at (-.8,-.2) {\\scalebox{1}[.7]{$\\mathbb{R}^n$}};\n\\end{scope}\n\\end{tikzpicture}\n\n\\end{document}" ]
[ 3 ]
dispatch_master_outside
\documentclass[tikz,border=5]{standalone} \usepackage[cmex10]{amsmath} \usepackage[dvipsnames]{xcolor} \usepackage[T1]{fontenc} \usepackage{ amsfonts, amssymb, amsthm, bbm, enumerate, float, dblfloatfix, dsfont, mathtools, url, pgf, pgfplots, tikz, subcaption, } \usepgflibrary{shapes} \usetikzlibrary{ arrows, backgrounds, calc, calendar, chains, decorations, decorations.pathmorphing, fit, matrix, mindmap, petri, positioning, scopes, shadings, shadows, shapes, shapes.arrows, shapes.misc, shapes.symbols, } \begin{document} \begin{tikzpicture} [font=\fontsize{6.75pt}{7.5}\selectfont, line width=0.75pt, node distance=0mm, draw=black, >=stealth', server/.style={cylinder, shape border rotate=90, aspect=0.35, minimum height=9mm, minimum width=10.5mm, draw=black, inner sep=0pt}, client/.style={rectangle, minimum height=6mm, minimum width=11.25mm, draw=black, inner sep=0pt}, router/.style={circle, minimum size=11mm, draw=black, fill=gray!40, text width=3.25em, text centered, inner sep=0pt}, system/.style={rectangle, rounded corners=1.5mm, minimum height=37.5mm, minimum width=62.25mm, draw=black, dashed} ] \node[server](M) at (0,15mm) {Master}; \node[server](S1) at (-12.75mm,0) {Slave1}; \node[server](S2) at (0,0) {Slave2}; \node[server](S3) at (12.75mm,0) {Slave3}; \node[router](R) at (-30mm,7.5mm) {Dispatcher}; \node[system](MySQL) at (-8.625mm,5.25mm) {}; \node[client](C1) at (-52.5mm,15mm) {Clients}; \node[client](C2) at (-52.5mm,7.5mm) {Clients}; \node[client](C3) at (-52.5mm,0) {Clients}; \draw[->, color=black!50!red, densely dashdotted] ([xshift=-0.375mm]R.north) -- ([xshift=-24.9375mm,yshift=0.75mm]M.west) -- node[above, color=black!50!red] {Write} ([yshift=0.75mm]M.west); \draw[->, color=black!50!red, densely dashdotted] (M.south) -- (S2.north); \draw[->, color=black!50!red, densely dashdotted] ([yshift=3.75mm]S2.north) -- ([yshift=3.75mm]S1.north) -- (S1.north); \draw[->, color=black!50!red, densely dashdotted] ([yshift=3.75mm]S2.north) -- ([yshift=3.75mm]S3.north) node[above, color=black!50!red] {Replication} -- (S3.north); \draw[->, color=black!60!green] ([xshift=0.375mm]R.north) -- ([xshift=-24.1875mm]M.west) -- node[below, color=black!60!green] {Read} (M.west); \draw[->, color=black!60!green] ([xshift=-0.75mm]R.south) -- ([xshift=-0.75mm,yshift=-10.5mm]R.south) -- node[below, color=black!60!green] {Read} ([yshift=-4.5mm]S3.south) -- (S3.south); \draw[->, color=black!60!green] (R.south) -- ([yshift=-9.75mm]R.south) -- ([yshift=-3.75mm]S2.south) -- (S2.south); \draw[->, color=black!60!green] ([xshift=0.75mm]R.south) -- ([xshift=0.75mm,yshift=-9mm]R.south) -- ([yshift=-3mm]S1.south) -- (S1.south); \draw[->] (C1.east) -- (R); \draw[->] (C2.east) -- node[left = 1.5mm, above, black] {R/W} (R); \draw[->] (C3.east) -- (R); \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[cmex10]{amsmath} \usepackage[dvipsnames]{xcolor} \usepackage[T1]{fontenc} \usepackage{ amsfonts, amssymb, amsthm, bbm, enumerate, float, dblfloatfix, dsfont, mathtools, url, pgf, pgfplots, tikz, subcaption, } \usepgflibrary{shapes} \usetikzlibrary{% arrows, backgrounds, calc, calendar, chains, decorations, decorations.pathmorphing, fit, matrix, mindmap, petri, positioning, scopes, shadings, shadows, shapes, shapes.arrows, shapes.misc, shapes.symbols, } \begin{document} \begin{tikzpicture} [font=\fontsize{6.75pt}{7.5}\selectfont, line width=0.75pt, node distance=0mm, draw=black, >=stealth', server/.style={cylinder, shape border rotate=90, aspect=0.35, minimum height=9mm, minimum width=10.5mm, draw=black, inner sep=0pt}, client/.style={rectangle, minimum height=6mm, minimum width=11.25mm, draw=black, inner sep=0pt}, router/.style={circle, minimum size=11mm, draw=black, fill=gray!40, text width=3.25em, text centered, inner sep=0pt}, system/.style={rectangle, rounded corners=1.5mm, minimum height=37.5mm, minimum width=62.25mm, draw=black, dashed} ] %MySQL system \node[server](M) at (0,15mm) {Master}; \node[server](S1) at (-12.75mm,0) {Slave1}; \node[server](S2) at (0,0) {Slave2}; \node[server](S3) at (12.75mm,0) {Slave3}; \node[router](R) at (-30mm,7.5mm) {Dispatcher}; \node[system](MySQL) at (-8.625mm,5.25mm) {}; %Clients \node[client](C1) at (-52.5mm,15mm) {Clients}; \node[client](C2) at (-52.5mm,7.5mm) {Clients}; \node[client](C3) at (-52.5mm,0) {Clients}; %write \draw[->, color=black!50!red, densely dashdotted] ([xshift=-0.375mm]R.north) -- ([xshift=-24.9375mm,yshift=0.75mm]M.west) -- node[above, color=black!50!red] {Write} ([yshift=0.75mm]M.west); %replication \draw[->, color=black!50!red, densely dashdotted] (M.south) -- (S2.north); \draw[->, color=black!50!red, densely dashdotted] ([yshift=3.75mm]S2.north) -- ([yshift=3.75mm]S1.north) -- (S1.north); \draw[->, color=black!50!red, densely dashdotted] ([yshift=3.75mm]S2.north) -- ([yshift=3.75mm]S3.north) node[above, color=black!50!red] {Replication} -- (S3.north); %read \draw[->, color=black!60!green] ([xshift=0.375mm]R.north) -- ([xshift=-24.1875mm]M.west) -- node[below, color=black!60!green] {Read} (M.west); \draw[->, color=black!60!green] ([xshift=-0.75mm]R.south) -- ([xshift=-0.75mm,yshift=-10.5mm]R.south) -- node[below, color=black!60!green] {Read} ([yshift=-4.5mm]S3.south) -- (S3.south); \draw[->, color=black!60!green] (R.south) -- ([yshift=-9.75mm]R.south) -- ([yshift=-3.75mm]S2.south) -- (S2.south); \draw[->, color=black!60!green] ([xshift=0.75mm]R.south) -- ([xshift=0.75mm,yshift=-9mm]R.south) -- ([yshift=-3mm]S1.south) -- (S1.south); %client request \draw[->] (C1.east) -- (R); \draw[->] (C2.east) -- node[left = 1.5mm, above, black] {R/W} (R); \draw[->] (C3.east) -- (R); \end{tikzpicture} \end{document}
Move the master oustide the dashed box.
Architecture diagram of a master-slave system, with Master outside of the dashed box
easy
update
scientific
[ "@@ -49 +49 @@\n\n-system/.style={rectangle, rounded corners=1.5mm, minimum height=37.5mm, minimum width=62.25mm, draw=black, dashed}\n+system/.style={rectangle, rounded corners=1.5mm, minimum height=30mm, minimum width=62.25mm, draw=black, dashed}\n@@ -51 +51 @@\n\n-\\node[server](M) at (0,15mm) {Master};\n+\\node[server](M) at (0,25mm) {Master};\n@@ -56 +56 @@\n\n-\\node[system](MySQL) at (-8.625mm,5.25mm) {};\n+\\node[system](MySQL) at (-8.625mm,2.25mm) {};" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[cmex10]{amsmath}\n\\usepackage[dvipsnames]{xcolor}\n\\usepackage[T1]{fontenc}\n\\usepackage{\n\tamsfonts,\n\tamssymb,\n\tamsthm,\n\tbbm,\n\tenumerate,\n\tfloat,\n\tdblfloatfix,\n\tdsfont,\n\tmathtools,\n\turl,\n\tpgf,\n\tpgfplots,\n\ttikz,\n\tsubcaption,\n}\n\\usepgflibrary{shapes}\n\\usetikzlibrary{\narrows,\nbackgrounds,\ncalc,\ncalendar,\nchains,\ndecorations,\ndecorations.pathmorphing,\nfit,\nmatrix,\nmindmap,\npetri,\npositioning,\nscopes,\nshadings,\nshadows,\nshapes,\nshapes.arrows,\nshapes.misc,\nshapes.symbols,\n}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n[font=\\fontsize{6.75pt}{7.5}\\selectfont, line width=0.75pt, node distance=0mm, draw=black, >=stealth',\nserver/.style={cylinder, shape border rotate=90, aspect=0.35, minimum height=9mm, minimum width=10.5mm, draw=black, inner sep=0pt},\nclient/.style={rectangle, minimum height=6mm, minimum width=11.25mm, draw=black, inner sep=0pt},\nrouter/.style={circle, minimum size=11mm, draw=black, fill=gray!40, text width=3.25em, text centered, inner sep=0pt},\nsystem/.style={rectangle, rounded corners=1.5mm, minimum height=§rangei(30,5)mm, minimum width=62.25mm, draw=black, dashed}\n]\n\n\\node[server](M) at (0,§range(25,30,25)mm) {Master};\n\\node[server](S1) at (-12.75mm,0) {Slave1};\n\\node[server](S2) at (0,0) {Slave2};\n\\node[server](S3) at (12.75mm,0) {Slave3};\n\\node[router](R) at (-30mm,7.5mm) {Dispatcher};\n\\node[system](MySQL) at (-8.625mm,§rangei(2.25,2)mm) {};\n\n\\node[client](C1) at (-52.5mm,15mm) {Clients};\n\\node[client](C2) at (-52.5mm,7.5mm) {Clients};\n\\node[client](C3) at (-52.5mm,0) {Clients};\n\n\\draw[->, color=black!50!red, densely dashdotted] ([xshift=-0.375mm]R.north) -- ([xshift=-24.9375mm,yshift=0.75mm]M.west) -- \nnode[above, color=black!50!red] {Write} ([yshift=0.75mm]M.west);\n\\draw[->, color=black!50!red, densely dashdotted] (M.south) -- (S2.north);\n\\draw[->, color=black!50!red, densely dashdotted] ([yshift=3.75mm]S2.north) -- ([yshift=3.75mm]S1.north) -- (S1.north);\n\\draw[->, color=black!50!red, densely dashdotted] ([yshift=3.75mm]S2.north) -- ([yshift=3.75mm]S3.north) node[above, color=black!50!red] {Replication} -- (S3.north);\n\n\\draw[->, color=black!60!green] ([xshift=0.375mm]R.north) -- ([xshift=-24.1875mm]M.west) -- node[below, color=black!60!green] {Read} (M.west);\n\\draw[->, color=black!60!green] ([xshift=-0.75mm]R.south) -- ([xshift=-0.75mm,yshift=-10.5mm]R.south) -- \nnode[below, color=black!60!green] {Read} ([yshift=-4.5mm]S3.south) -- (S3.south);\n\\draw[->, color=black!60!green] (R.south) -- ([yshift=-9.75mm]R.south) -- ([yshift=-3.75mm]S2.south) -- (S2.south);\n\\draw[->, color=black!60!green] ([xshift=0.75mm]R.south) -- ([xshift=0.75mm,yshift=-9mm]R.south) -- ([yshift=-3mm]S1.south) -- (S1.south);\n\n\\draw[->] (C1.east) -- (R);\n\\draw[->] (C2.east) -- node[left = 1.5mm, above, black] {R/W} (R);\n\\draw[->] (C3.east) -- (R);\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[cmex10]{amsmath}\n\\usepackage[dvipsnames]{xcolor}\n\\usepackage[T1]{fontenc}\n\\usepackage{\n\tamsfonts,\n\tamssymb,\n\tamsthm,\n\tbbm,\n\tenumerate,\n\tfloat,\n\tdblfloatfix,\n\tdsfont,\n\tmathtools,\n\turl,\n\tpgf,\n\tpgfplots,\n\ttikz,\n\tsubcaption,\n}\n\\usepgflibrary{shapes}\n\\usetikzlibrary{\narrows,\nbackgrounds,\ncalc,\ncalendar,\nchains,\ndecorations,\ndecorations.pathmorphing,\nfit,\nmatrix,\nmindmap,\npetri,\npositioning,\nscopes,\nshadings,\nshadows,\nshapes,\nshapes.arrows,\nshapes.misc,\nshapes.symbols,\n}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n[font=\\fontsize{6.75pt}{7.5}\\selectfont, line width=0.75pt, node distance=0mm, draw=black, >=stealth',\nserver/.style={cylinder, shape border rotate=90, aspect=0.35, minimum height=9mm, minimum width=10.5mm, draw=black, inner sep=0pt},\nclient/.style={rectangle, minimum height=6mm, minimum width=11.25mm, draw=black, inner sep=0pt},\nrouter/.style={circle, minimum size=11mm, draw=black, fill=gray!40, text width=3.25em, text centered, inner sep=0pt},\nsystem/.style={rectangle, rounded corners=1.5mm, minimum height=30mm, minimum width=62.25mm, draw=black, dashed}\n]\n\n\\node[server](M) at (0,25mm) {Master};\n\\node[server](S1) at (-12.75mm,0) {Slave1};\n\\node[server](S2) at (0,0) {Slave2};\n\\node[server](S3) at (12.75mm,0) {Slave3};\n\\node[router](R) at (-30mm,7.5mm) {Dispatcher};\n\\node[system](MySQL) at (-8.625mm,2.25mm) {};\n\n\\node[client](C1) at (-52.5mm,15mm) {Clients};\n\\node[client](C2) at (-52.5mm,7.5mm) {Clients};\n\\node[client](C3) at (-52.5mm,0) {Clients};\n\n\\draw[->, color=black!50!red, densely dashdotted] ([xshift=-0.375mm]R.north) -- ([xshift=-24.9375mm,yshift=0.75mm]M.west) -- \nnode[above, color=black!50!red] {Write} ([yshift=0.75mm]M.west);\n\\draw[->, color=black!50!red, densely dashdotted] (M.south) -- (S2.north);\n\\draw[->, color=black!50!red, densely dashdotted] ([yshift=3.75mm]S2.north) -- ([yshift=3.75mm]S1.north) -- (S1.north);\n\\draw[->, color=black!50!red, densely dashdotted] ([yshift=3.75mm]S2.north) -- ([yshift=3.75mm]S3.north) node[above, color=black!50!red] {Replication} -- (S3.north);\n\n\\draw[->, color=black!60!green] ([xshift=0.375mm]R.north) -- ([xshift=-24.1875mm]M.west) -- node[below, color=black!60!green] {Read} (M.west);\n\\draw[->, color=black!60!green] ([xshift=-0.75mm]R.south) -- ([xshift=-0.75mm,yshift=-10.5mm]R.south) -- \nnode[below, color=black!60!green] {Read} ([yshift=-4.5mm]S3.south) -- (S3.south);\n\\draw[->, color=black!60!green] (R.south) -- ([yshift=-9.75mm]R.south) -- ([yshift=-3.75mm]S2.south) -- (S2.south);\n\\draw[->, color=black!60!green] ([xshift=0.75mm]R.south) -- ([xshift=0.75mm,yshift=-9mm]R.south) -- ([yshift=-3mm]S1.south) -- (S1.south);\n\n\\draw[->] (C1.east) -- (R);\n\\draw[->] (C2.east) -- node[left = 1.5mm, above, black] {R/W} (R);\n\\draw[->] (C3.east) -- (R);\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ 65 ]
dispatch_slave_removed
\documentclass[tikz,border=5]{standalone} \usepackage[cmex10]{amsmath} \usepackage[dvipsnames]{xcolor} \usepackage[T1]{fontenc} \usepackage{ amsfonts, amssymb, amsthm, bbm, enumerate, float, dblfloatfix, dsfont, mathtools, url, pgf, pgfplots, tikz, subcaption, } \usepgflibrary{shapes} \usetikzlibrary{ arrows, backgrounds, calc, calendar, chains, decorations, decorations.pathmorphing, fit, matrix, mindmap, petri, positioning, scopes, shadings, shadows, shapes, shapes.arrows, shapes.misc, shapes.symbols, } \begin{document} \begin{tikzpicture} [font=\fontsize{6.75pt}{7.5}\selectfont, line width=0.75pt, node distance=0mm, draw=black, >=stealth', server/.style={cylinder, shape border rotate=90, aspect=0.35, minimum height=9mm, minimum width=10.5mm, draw=black, inner sep=0pt}, client/.style={rectangle, minimum height=6mm, minimum width=11.25mm, draw=black, inner sep=0pt}, router/.style={circle, minimum size=11mm, draw=black, fill=gray!40, text width=3.25em, text centered, inner sep=0pt}, system/.style={rectangle, rounded corners=1.5mm, minimum height=37.5mm, minimum width=62.25mm, draw=black, dashed} ] \node[server](M) at (0,15mm) {Master}; \node[server](S1) at (-12.75mm,0) {Slave1}; \node[server](S2) at (0,0) {Slave2}; \node[server](S3) at (12.75mm,0) {Slave3}; \node[router](R) at (-30mm,7.5mm) {Dispatcher}; \node[system](MySQL) at (-8.625mm,5.25mm) {}; \node[client](C1) at (-52.5mm,15mm) {Clients}; \node[client](C2) at (-52.5mm,7.5mm) {Clients}; \node[client](C3) at (-52.5mm,0) {Clients}; \draw[->, color=black!50!red, densely dashdotted] ([xshift=-0.375mm]R.north) -- ([xshift=-24.9375mm,yshift=0.75mm]M.west) -- node[above, color=black!50!red] {Write} ([yshift=0.75mm]M.west); \draw[->, color=black!50!red, densely dashdotted] (M.south) -- (S2.north); \draw[->, color=black!50!red, densely dashdotted] ([yshift=3.75mm]S2.north) -- ([yshift=3.75mm]S1.north) -- (S1.north); \draw[->, color=black!50!red, densely dashdotted] ([yshift=3.75mm]S2.north) -- ([yshift=3.75mm]S3.north) node[above, color=black!50!red] {Replication} -- (S3.north); \draw[->, color=black!60!green] ([xshift=0.375mm]R.north) -- ([xshift=-24.1875mm]M.west) -- node[below, color=black!60!green] {Read} (M.west); \draw[->, color=black!60!green] ([xshift=-0.75mm]R.south) -- ([xshift=-0.75mm,yshift=-10.5mm]R.south) -- node[below, color=black!60!green] {Read} ([yshift=-4.5mm]S3.south) -- (S3.south); \draw[->, color=black!60!green] (R.south) -- ([yshift=-9.75mm]R.south) -- ([yshift=-3.75mm]S2.south) -- (S2.south); \draw[->, color=black!60!green] ([xshift=0.75mm]R.south) -- ([xshift=0.75mm,yshift=-9mm]R.south) -- ([yshift=-3mm]S1.south) -- (S1.south); \draw[->] (C1.east) -- (R); \draw[->] (C2.east) -- node[left = 1.5mm, above, black] {R/W} (R); \draw[->] (C3.east) -- (R); \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[cmex10]{amsmath} \usepackage[dvipsnames]{xcolor} \usepackage[T1]{fontenc} \usepackage{ amsfonts, amssymb, amsthm, bbm, enumerate, float, dblfloatfix, dsfont, mathtools, url, pgf, pgfplots, tikz, subcaption, } \usepgflibrary{shapes} \usetikzlibrary{% arrows, backgrounds, calc, calendar, chains, decorations, decorations.pathmorphing, fit, matrix, mindmap, petri, positioning, scopes, shadings, shadows, shapes, shapes.arrows, shapes.misc, shapes.symbols, } \begin{document} \begin{tikzpicture} [font=\fontsize{6.75pt}{7.5}\selectfont, line width=0.75pt, node distance=0mm, draw=black, >=stealth', server/.style={cylinder, shape border rotate=90, aspect=0.35, minimum height=9mm, minimum width=10.5mm, draw=black, inner sep=0pt}, client/.style={rectangle, minimum height=6mm, minimum width=11.25mm, draw=black, inner sep=0pt}, router/.style={circle, minimum size=11mm, draw=black, fill=gray!40, text width=3.25em, text centered, inner sep=0pt}, system/.style={rectangle, rounded corners=1.5mm, minimum height=37.5mm, minimum width=62.25mm, draw=black, dashed} ] %MySQL system \node[server](M) at (0,15mm) {Master}; \node[server](S1) at (-12.75mm,0) {Slave1}; \node[server](S2) at (0,0) {Slave2}; \node[server](S3) at (12.75mm,0) {Slave3}; \node[router](R) at (-30mm,7.5mm) {Dispatcher}; \node[system](MySQL) at (-8.625mm,5.25mm) {}; %Clients \node[client](C1) at (-52.5mm,15mm) {Clients}; \node[client](C2) at (-52.5mm,7.5mm) {Clients}; \node[client](C3) at (-52.5mm,0) {Clients}; %write \draw[->, color=black!50!red, densely dashdotted] ([xshift=-0.375mm]R.north) -- ([xshift=-24.9375mm,yshift=0.75mm]M.west) -- node[above, color=black!50!red] {Write} ([yshift=0.75mm]M.west); %replication \draw[->, color=black!50!red, densely dashdotted] (M.south) -- (S2.north); \draw[->, color=black!50!red, densely dashdotted] ([yshift=3.75mm]S2.north) -- ([yshift=3.75mm]S1.north) -- (S1.north); \draw[->, color=black!50!red, densely dashdotted] ([yshift=3.75mm]S2.north) -- ([yshift=3.75mm]S3.north) node[above, color=black!50!red] {Replication} -- (S3.north); %read \draw[->, color=black!60!green] ([xshift=0.375mm]R.north) -- ([xshift=-24.1875mm]M.west) -- node[below, color=black!60!green] {Read} (M.west); \draw[->, color=black!60!green] ([xshift=-0.75mm]R.south) -- ([xshift=-0.75mm,yshift=-10.5mm]R.south) -- node[below, color=black!60!green] {Read} ([yshift=-4.5mm]S3.south) -- (S3.south); \draw[->, color=black!60!green] (R.south) -- ([yshift=-9.75mm]R.south) -- ([yshift=-3.75mm]S2.south) -- (S2.south); \draw[->, color=black!60!green] ([xshift=0.75mm]R.south) -- ([xshift=0.75mm,yshift=-9mm]R.south) -- ([yshift=-3mm]S1.south) -- (S1.south); %client request \draw[->] (C1.east) -- (R); \draw[->] (C2.east) -- node[left = 1.5mm, above, black] {R/W} (R); \draw[->] (C3.east) -- (R); \end{tikzpicture} \end{document}
Remove the first slave/replication instance, keep the other names the same.
Architecture diagram of a master-slave system, with two slaves
easy
remove
scientific
[ "@@ -52 +51,0 @@\n\n-\\node[server](S1) at (-12.75mm,0) {Slave1};\n@@ -63 +61,0 @@\n\n-\\draw[->, color=black!50!red, densely dashdotted] ([yshift=3.75mm]S2.north) -- ([yshift=3.75mm]S1.north) -- (S1.north);\n@@ -69 +66,0 @@\n\n-\\draw[->, color=black!60!green] ([xshift=0.75mm]R.south) -- ([xshift=0.75mm,yshift=-9mm]R.south) -- ([yshift=-3mm]S1.south) -- (S1.south);" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[cmex10]{amsmath}\n\\usepackage[dvipsnames]{xcolor}\n\\usepackage[T1]{fontenc}\n\\usepackage{\n\tamsfonts,\n\tamssymb,\n\tamsthm,\n\tbbm,\n\tenumerate,\n\tfloat,\n\tdblfloatfix,\n\tdsfont,\n\tmathtools,\n\turl,\n\tpgf,\n\tpgfplots,\n\ttikz,\n\tsubcaption,\n}\n\\usepgflibrary{shapes}\n\\usetikzlibrary{\narrows,\nbackgrounds,\ncalc,\ncalendar,\nchains,\ndecorations,\ndecorations.pathmorphing,\nfit,\nmatrix,\nmindmap,\npetri,\npositioning,\nscopes,\nshadings,\nshadows,\nshapes,\nshapes.arrows,\nshapes.misc,\nshapes.symbols,\n}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n[font=\\fontsize{6.75pt}{7.5}\\selectfont, line width=0.75pt, node distance=0mm, draw=black, >=stealth',\nserver/.style={cylinder, shape border rotate=90, aspect=0.35, minimum height=9mm, minimum width=10.5mm, draw=black, inner sep=0pt},\nclient/.style={rectangle, minimum height=6mm, minimum width=11.25mm, draw=black, inner sep=0pt},\nrouter/.style={circle, minimum size=11mm, draw=black, fill=gray!40, text width=3.25em, text centered, inner sep=0pt},\nsystem/.style={rectangle, rounded corners=1.5mm, minimum height=37.5mm, minimum width=62.25mm, draw=black, dashed}\n]\n\n\\node[server](M) at (0,15mm) {Master};\n\\node[server](S2) at (0,0) {Slave2};\n\\node[server](S3) at (12.75mm,0) {Slave3};\n\\node[router](R) at (-30mm,7.5mm) {Dispatcher};\n\\node[system](MySQL) at (-8.625mm,5.25mm) {};\n\n\\node[client](C1) at (-52.5mm,15mm) {Clients};\n\\node[client](C2) at (-52.5mm,7.5mm) {Clients};\n\\node[client](C3) at (-52.5mm,0) {Clients};\n\n\\draw[->, color=black!50!red, densely dashdotted] ([xshift=-0.375mm]R.north) -- ([xshift=-24.9375mm,yshift=0.75mm]M.west) -- \nnode[above, color=black!50!red] {Write} ([yshift=0.75mm]M.west);\n\\draw[->, color=black!50!red, densely dashdotted] (M.south) -- (S2.north);\n\\draw[->, color=black!50!red, densely dashdotted] ([yshift=3.75mm]S2.north) -- ([yshift=3.75mm]S3.north) node[above, color=black!50!red] {Replication} -- (S3.north);\n\n\\draw[->, color=black!60!green] ([xshift=0.375mm]R.north) -- ([xshift=-24.1875mm]M.west) -- node[below, color=black!60!green] {Read} (M.west);\n\\draw[->, color=black!60!green] ([xshift=-0.75mm]R.south) -- ([xshift=-0.75mm,yshift=-10.5mm]R.south) -- \nnode[below, color=black!60!green] {Read} ([yshift=-4.5mm]S3.south) -- (S3.south);\n\\draw[->, color=black!60!green] (R.south) -- ([yshift=-9.75mm]R.south) -- ([yshift=-3.75mm]S2.south) -- (S2.south);\n\n\\draw[->] (C1.east) -- (R);\n\\draw[->] (C2.east) -- node[left = 1.5mm, above, black] {R/W} (R);\n\\draw[->] (C3.east) -- (R);\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[cmex10]{amsmath}\n\\usepackage[dvipsnames]{xcolor}\n\\usepackage[T1]{fontenc}\n\\usepackage{\n\tamsfonts,\n\tamssymb,\n\tamsthm,\n\tbbm,\n\tenumerate,\n\tfloat,\n\tdblfloatfix,\n\tdsfont,\n\tmathtools,\n\turl,\n\tpgf,\n\tpgfplots,\n\ttikz,\n\tsubcaption,\n}\n\\usepgflibrary{shapes}\n\\usetikzlibrary{\narrows,\nbackgrounds,\ncalc,\ncalendar,\nchains,\ndecorations,\ndecorations.pathmorphing,\nfit,\nmatrix,\nmindmap,\npetri,\npositioning,\nscopes,\nshadings,\nshadows,\nshapes,\nshapes.arrows,\nshapes.misc,\nshapes.symbols,\n}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n[font=\\fontsize{6.75pt}{7.5}\\selectfont, line width=0.75pt, node distance=0mm, draw=black, >=stealth',\nserver/.style={cylinder, shape border rotate=90, aspect=0.35, minimum height=9mm, minimum width=10.5mm, draw=black, inner sep=0pt},\nclient/.style={rectangle, minimum height=6mm, minimum width=11.25mm, draw=black, inner sep=0pt},\nrouter/.style={circle, minimum size=11mm, draw=black, fill=gray!40, text width=3.25em, text centered, inner sep=0pt},\nsystem/.style={rectangle, rounded corners=1.5mm, minimum height=37.5mm, minimum width=62.25mm, draw=black, dashed}\n]\n\n\\node[server](M) at (0,15mm) {Master};\n\\node[server](S2) at (0,0) {Slave2};\n\\node[server](S3) at (12.75mm,0) {Slave3};\n\\node[router](R) at (-30mm,7.5mm) {Dispatcher};\n\\node[system](MySQL) at (-8.625mm,5.25mm) {};\n\n\\node[client](C1) at (-52.5mm,15mm) {Clients};\n\\node[client](C2) at (-52.5mm,7.5mm) {Clients};\n\\node[client](C3) at (-52.5mm,0) {Clients};\n\n\\draw[->, color=black!50!red, densely dashdotted] ([xshift=-0.375mm]R.north) -- ([xshift=-24.9375mm,yshift=0.75mm]M.west) -- \nnode[above, color=black!50!red] {Write} ([yshift=0.75mm]M.west);\n\\draw[->, color=black!50!red, densely dashdotted] (M.south) -- (S2.north);\n\\draw[->, color=black!50!red, densely dashdotted] ([yshift=3.75mm]S2.north) -- ([yshift=3.75mm]S3.north) node[above, color=black!50!red] {Replication} -- (S3.north);\n\n\\draw[->, color=black!60!green] ([xshift=0.375mm]R.north) -- ([xshift=-24.1875mm]M.west) -- node[below, color=black!60!green] {Read} (M.west);\n\\draw[->, color=black!60!green] ([xshift=-0.75mm]R.south) -- ([xshift=-0.75mm,yshift=-10.5mm]R.south) -- \nnode[below, color=black!60!green] {Read} ([yshift=-4.5mm]S3.south) -- (S3.south);\n\\draw[->, color=black!60!green] (R.south) -- ([yshift=-9.75mm]R.south) -- ([yshift=-3.75mm]S2.south) -- (S2.south);\n\n\\draw[->] (C1.east) -- (R);\n\\draw[->] (C2.east) -- node[left = 1.5mm, above, black] {R/W} (R);\n\\draw[->] (C3.east) -- (R);\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ 1, 1 ]
dog_grey
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ dog/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \useasboundingbox (-256, -256) (256, 256); \reflect[split=Brown400 and Brown500]{ \fill [fill color] (0,-64) ellipse [x radius=160, y radius=144]; \fill [fill color] (0, 32) ellipse [x radius=128, y radius=112]; \fill [fill color] (32,96) .. controls ++( 75:128) and ++(105:128) .. ++(192, 0) .. controls ++(285: 96) and ++(285: 96) .. ++(-80,-32) .. controls ++(105: 64) and ++( 75: 32) .. cycle; } \reflect[split={Grey100 and Grey200}]{ \clip (0,-64) ellipse [x radius=160, y radius=144]; \fill [fill color](0,-224) .. controls ++( 0:64) and ++(270:64) .. ++(96,64) .. controls ++( 90:64) and ++(270:64) .. ++(-96,192) .. controls ++(270:64) and ++( 90:64) .. ++(-96,-192) .. controls ++(270:64) and ++(180:64) .. cycle; } \reflect[split={Pink100 and Pink200}]{ \fill [fill color](0,-192) ellipse [x radius=28, y radius=32]; } \reflect[split={BlueGrey800 and BlueGrey900}]{ \fill [fill color](0,-144) .. controls ++( 0:20) and ++(315:20) .. ++( 40,64) .. controls ++(135:20) and ++( 45:20) .. ++(-80, 0) .. controls ++(225:20) and ++(180:20) .. cycle; \fill [BlueGrey900] (56, 0) circle [radius=20]; \fill [fill color] (-8,-112) -- ++(16,0) -- ++(0,-32) arc (180:360:24) arc (180:0:8) arc (360:180:40); } \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {dog}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ dog/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \useasboundingbox (-256, -256) (256, 256); \reflect[split=Brown400 and Brown500]{ \fill [fill color] (0,-64) ellipse [x radius=160, y radius=144]; \fill [fill color] (0, 32) ellipse [x radius=128, y radius=112]; \fill [fill color] (32,96) .. controls ++( 75:128) and ++(105:128) .. ++(192, 0) .. controls ++(285: 96) and ++(285: 96) .. ++(-80,-32) .. controls ++(105: 64) and ++( 75: 32) .. cycle; } \reflect[split={Grey100 and Grey200}]{ \clip (0,-64) ellipse [x radius=160, y radius=144]; \fill [fill color](0,-224) .. controls ++( 0:64) and ++(270:64) .. ++(96,64) .. controls ++( 90:64) and ++(270:64) .. ++(-96,192) .. controls ++(270:64) and ++( 90:64) .. ++(-96,-192) .. controls ++(270:64) and ++(180:64) .. cycle; } \reflect[split={Pink100 and Pink200}]{ \fill [fill color](0,-192) ellipse [x radius=28, y radius=32]; } \reflect[split={BlueGrey800 and BlueGrey900}]{ \fill [fill color](0,-144) .. controls ++( 0:20) and ++(315:20) .. ++( 40,64) .. controls ++(135:20) and ++( 45:20) .. ++(-80, 0) .. controls ++(225:20) and ++(180:20) .. cycle; \fill [BlueGrey900] (56, 0) circle [radius=20]; \fill [fill color] (-8,-112) -- ++(16,0) -- ++(0,-32) arc (180:360:24) arc (180:0:8) arc (360:180:40); } \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {dog}; \end{tikzpicture} \end{document}
Change the color of the dog to gray
A gray dog
easy
update
animal
[ "@@ -25 +25 @@\n\n-\\reflect[split=Brown400 and Brown500]{\n+\\reflect[split=Grey and Grey]{", "@@ -25 +25 @@\n\n-\\reflect[split=Brown400 and Brown500]{\n+\\reflect[split=Grey500 and Grey500]{" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndog/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split=Grey and Grey]{\n \\fill [fill color] (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color] (0, 32) ellipse [x radius=128, y radius=112];\n \\fill [fill color] (32,96)\n .. controls ++( 75:128) and ++(105:128) .. ++(192, 0)\n .. controls ++(285: 96) and ++(285: 96) .. ++(-80,-32)\n .. controls ++(105: 64) and ++( 75: 32) .. cycle;\n}\n\\reflect[split={Grey100 and Grey200}]{\n \\clip (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color](0,-224) \n .. controls ++( 0:64) and ++(270:64) .. ++(96,64)\n .. controls ++( 90:64) and ++(270:64) .. ++(-96,192)\n .. controls ++(270:64) and ++( 90:64) .. ++(-96,-192)\n .. controls ++(270:64) and ++(180:64) .. cycle;\n}\n\\reflect[split={Pink100 and Pink200}]{\n \\fill [fill color](0,-192) ellipse [x radius=28, y radius=32];\n}\n\\reflect[split={BlueGrey800 and BlueGrey900}]{\n \\fill [fill color](0,-144) \n .. controls ++( 0:20) and ++(315:20) .. ++( 40,64)\n .. controls ++(135:20) and ++( 45:20) .. ++(-80, 0)\n .. controls ++(225:20) and ++(180:20) .. cycle;\n \\fill [BlueGrey900] (56, 0) circle [radius=20];\n \\fill [fill color] (-8,-112)\n -- ++(16,0) -- ++(0,-32) arc (180:360:24)\n arc (180:0:8) arc (360:180:40);\n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {dog};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndog/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split=Grey§choice([300,400,500,600],500) and Grey§choice([300,400,500,600],500)]{\n \\fill [fill color] (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color] (0, 32) ellipse [x radius=128, y radius=112];\n \\fill [fill color] (32,96)\n .. controls ++( 75:128) and ++(105:128) .. ++(192, 0)\n .. controls ++(285: 96) and ++(285: 96) .. ++(-80,-32)\n .. controls ++(105: 64) and ++( 75: 32) .. cycle;\n}\n\\reflect[split={Grey100 and Grey200}]{\n \\clip (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color](0,-224) \n .. controls ++( 0:64) and ++(270:64) .. ++(96,64)\n .. controls ++( 90:64) and ++(270:64) .. ++(-96,192)\n .. controls ++(270:64) and ++( 90:64) .. ++(-96,-192)\n .. controls ++(270:64) and ++(180:64) .. cycle;\n}\n\\reflect[split={Pink100 and Pink200}]{\n \\fill [fill color](0,-192) ellipse [x radius=28, y radius=32];\n}\n\\reflect[split={BlueGrey800 and BlueGrey900}]{\n \\fill [fill color](0,-144) \n .. controls ++( 0:20) and ++(315:20) .. ++( 40,64)\n .. controls ++(135:20) and ++( 45:20) .. ++(-80, 0)\n .. controls ++(225:20) and ++(180:20) .. cycle;\n \\fill [BlueGrey900] (56, 0) circle [radius=20];\n \\fill [fill color] (-8,-112)\n -- ++(16,0) -- ++(0,-32) arc (180:360:24)\n arc (180:0:8) arc (360:180:40);\n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {dog};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndog/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split=Grey and Grey]{\n \\fill [fill color] (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color] (0, 32) ellipse [x radius=128, y radius=112];\n \\fill [fill color] (32,96)\n .. controls ++( 75:128) and ++(105:128) .. ++(192, 0)\n .. controls ++(285: 96) and ++(285: 96) .. ++(-80,-32)\n .. controls ++(105: 64) and ++( 75: 32) .. cycle;\n}\n\\reflect[split={Grey100 and Grey200}]{\n \\clip (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color](0,-224) \n .. controls ++( 0:64) and ++(270:64) .. ++(96,64)\n .. controls ++( 90:64) and ++(270:64) .. ++(-96,192)\n .. controls ++(270:64) and ++( 90:64) .. ++(-96,-192)\n .. controls ++(270:64) and ++(180:64) .. cycle;\n}\n\\reflect[split={Pink100 and Pink200}]{\n \\fill [fill color](0,-192) ellipse [x radius=28, y radius=32];\n}\n\\reflect[split={BlueGrey800 and BlueGrey900}]{\n \\fill [fill color](0,-144) \n .. controls ++( 0:20) and ++(315:20) .. ++( 40,64)\n .. controls ++(135:20) and ++( 45:20) .. ++(-80, 0)\n .. controls ++(225:20) and ++(180:20) .. cycle;\n \\fill [BlueGrey900] (56, 0) circle [radius=20];\n \\fill [fill color] (-8,-112)\n -- ++(16,0) -- ++(0,-32) arc (180:360:24)\n arc (180:0:8) arc (360:180:40);\n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {dog};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndog/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split=Grey500 and Grey500]{\n \\fill [fill color] (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color] (0, 32) ellipse [x radius=128, y radius=112];\n \\fill [fill color] (32,96)\n .. controls ++( 75:128) and ++(105:128) .. ++(192, 0)\n .. controls ++(285: 96) and ++(285: 96) .. ++(-80,-32)\n .. controls ++(105: 64) and ++( 75: 32) .. cycle;\n}\n\\reflect[split={Grey100 and Grey200}]{\n \\clip (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color](0,-224) \n .. controls ++( 0:64) and ++(270:64) .. ++(96,64)\n .. controls ++( 90:64) and ++(270:64) .. ++(-96,192)\n .. controls ++(270:64) and ++( 90:64) .. ++(-96,-192)\n .. controls ++(270:64) and ++(180:64) .. cycle;\n}\n\\reflect[split={Pink100 and Pink200}]{\n \\fill [fill color](0,-192) ellipse [x radius=28, y radius=32];\n}\n\\reflect[split={BlueGrey800 and BlueGrey900}]{\n \\fill [fill color](0,-144) \n .. controls ++( 0:20) and ++(315:20) .. ++( 40,64)\n .. controls ++(135:20) and ++( 45:20) .. ++(-80, 0)\n .. controls ++(225:20) and ++(180:20) .. cycle;\n \\fill [BlueGrey900] (56, 0) circle [radius=20];\n \\fill [fill color] (-8,-112)\n -- ++(16,0) -- ++(0,-32) arc (180:360:24)\n arc (180:0:8) arc (360:180:40);\n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {dog};\n\\end{tikzpicture}\n\\end{document}" ]
[ 1 ]
dog_long_ears
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ dog/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \useasboundingbox (-256, -256) (256, 256); \reflect[split=Brown400 and Brown500]{ \fill [fill color] (0,-64) ellipse [x radius=160, y radius=144]; \fill [fill color] (0, 32) ellipse [x radius=128, y radius=112]; \fill [fill color] (32,96) .. controls ++( 75:128) and ++(105:128) .. ++(192, 0) .. controls ++(285: 96) and ++(285: 96) .. ++(-80,-32) .. controls ++(105: 64) and ++( 75: 32) .. cycle; } \reflect[split={Grey100 and Grey200}]{ \clip (0,-64) ellipse [x radius=160, y radius=144]; \fill [fill color](0,-224) .. controls ++( 0:64) and ++(270:64) .. ++(96,64) .. controls ++( 90:64) and ++(270:64) .. ++(-96,192) .. controls ++(270:64) and ++( 90:64) .. ++(-96,-192) .. controls ++(270:64) and ++(180:64) .. cycle; } \reflect[split={Pink100 and Pink200}]{ \fill [fill color](0,-192) ellipse [x radius=28, y radius=32]; } \reflect[split={BlueGrey800 and BlueGrey900}]{ \fill [fill color](0,-144) .. controls ++( 0:20) and ++(315:20) .. ++( 40,64) .. controls ++(135:20) and ++( 45:20) .. ++(-80, 0) .. controls ++(225:20) and ++(180:20) .. cycle; \fill [BlueGrey900] (56, 0) circle [radius=20]; \fill [fill color] (-8,-112) -- ++(16,0) -- ++(0,-32) arc (180:360:24) arc (180:0:8) arc (360:180:40); } \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {dog}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ dog/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \useasboundingbox (-256, -256) (256, 256); \reflect[split=Brown400 and Brown500]{ \fill [fill color] (0,-64) ellipse [x radius=160, y radius=144]; \fill [fill color] (0, 32) ellipse [x radius=128, y radius=112]; \fill [fill color] (32,96) .. controls ++( 75:128) and ++(105:128) .. ++(192, 0) .. controls ++(285: 96) and ++(285: 96) .. ++(-80,-32) .. controls ++(105: 64) and ++( 75: 32) .. cycle; } \reflect[split={Grey100 and Grey200}]{ \clip (0,-64) ellipse [x radius=160, y radius=144]; \fill [fill color](0,-224) .. controls ++( 0:64) and ++(270:64) .. ++(96,64) .. controls ++( 90:64) and ++(270:64) .. ++(-96,192) .. controls ++(270:64) and ++( 90:64) .. ++(-96,-192) .. controls ++(270:64) and ++(180:64) .. cycle; } \reflect[split={Pink100 and Pink200}]{ \fill [fill color](0,-192) ellipse [x radius=28, y radius=32]; } \reflect[split={BlueGrey800 and BlueGrey900}]{ \fill [fill color](0,-144) .. controls ++( 0:20) and ++(315:20) .. ++( 40,64) .. controls ++(135:20) and ++( 45:20) .. ++(-80, 0) .. controls ++(225:20) and ++(180:20) .. cycle; \fill [BlueGrey900] (56, 0) circle [radius=20]; \fill [fill color] (-8,-112) -- ++(16,0) -- ++(0,-32) arc (180:360:24) arc (180:0:8) arc (360:180:40); } \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {dog}; \end{tikzpicture} \end{document}
Make the ears of the dog longer
A dog with long ears
hard
update
animal
[ "@@ -29,3 +29,3 @@\n\n-.. controls ++( 75:128) and ++(105:128) .. ++(192, 0)\n-.. controls ++(285: 96) and ++(285: 96) .. ++(-80,-32)\n-.. controls ++(105: 64) and ++( 75: 32) .. cycle;\n+.. controls ++( 75:160) and ++(105:190) .. ++(210, -100)\n+.. controls ++(285: 96) and ++(285: 96) .. ++(-70,-32)\n+.. controls ++(105: 140) and ++( 75: 75) .. cycle;" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndog/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split=Brown400 and Brown500]{\n \\fill [fill color] (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color] (0, 32) ellipse [x radius=128, y radius=112];\n \\fill [fill color] (32,96)\n .. controls ++( 75:§rangei(160,50)) and ++(105:190) .. ++(§rangei(210,10), §rangei(-100,40))\n .. controls ++(285: 96) and ++(285: 96) .. ++(§rangei(-70,10),-32)\n .. controls ++(105: 140) and ++( 75: §rangei(75,20)) .. cycle;\n}\n\\reflect[split={Grey100 and Grey200}]{\n \\clip (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color](0,-224) \n .. controls ++( 0:64) and ++(270:64) .. ++(96,64)\n .. controls ++( 90:64) and ++(270:64) .. ++(-96,192)\n .. controls ++(270:64) and ++( 90:64) .. ++(-96,-192)\n .. controls ++(270:64) and ++(180:64) .. cycle;\n}\n\\reflect[split={Pink100 and Pink200}]{\n \\fill [fill color](0,-192) ellipse [x radius=28, y radius=32];\n}\n\\reflect[split={BlueGrey800 and BlueGrey900}]{\n \\fill [fill color](0,-144) \n .. controls ++( 0:20) and ++(315:20) .. ++( 40,64)\n .. controls ++(135:20) and ++( 45:20) .. ++(-80, 0)\n .. controls ++(225:20) and ++(180:20) .. cycle;\n \\fill [BlueGrey900] (56, 0) circle [radius=20];\n \\fill [fill color] (-8,-112)\n -- ++(16,0) -- ++(0,-32) arc (180:360:24)\n arc (180:0:8) arc (360:180:40);\n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {dog};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndog/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split=Brown400 and Brown500]{\n \\fill [fill color] (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color] (0, 32) ellipse [x radius=128, y radius=112];\n \\fill [fill color] (32,96)\n .. controls ++( 75:160) and ++(105:190) .. ++(210, -100)\n .. controls ++(285: 96) and ++(285: 96) .. ++(-70,-32)\n .. controls ++(105: 140) and ++( 75: 75) .. cycle;\n}\n\\reflect[split={Grey100 and Grey200}]{\n \\clip (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color](0,-224) \n .. controls ++( 0:64) and ++(270:64) .. ++(96,64)\n .. controls ++( 90:64) and ++(270:64) .. ++(-96,192)\n .. controls ++(270:64) and ++( 90:64) .. ++(-96,-192)\n .. controls ++(270:64) and ++(180:64) .. cycle;\n}\n\\reflect[split={Pink100 and Pink200}]{\n \\fill [fill color](0,-192) ellipse [x radius=28, y radius=32];\n}\n\\reflect[split={BlueGrey800 and BlueGrey900}]{\n \\fill [fill color](0,-144) \n .. controls ++( 0:20) and ++(315:20) .. ++( 40,64)\n .. controls ++(135:20) and ++( 45:20) .. ++(-80, 0)\n .. controls ++(225:20) and ++(180:20) .. cycle;\n \\fill [BlueGrey900] (56, 0) circle [radius=20];\n \\fill [fill color] (-8,-112)\n -- ++(16,0) -- ++(0,-32) arc (180:360:24)\n arc (180:0:8) arc (360:180:40);\n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {dog};\n\\end{tikzpicture}\n\\end{document}" ]
[ 1, 1 ]
dog_red_eyes
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ dog/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \useasboundingbox (-256, -256) (256, 256); \reflect[split=Brown400 and Brown500]{ \fill [fill color] (0,-64) ellipse [x radius=160, y radius=144]; \fill [fill color] (0, 32) ellipse [x radius=128, y radius=112]; \fill [fill color] (32,96) .. controls ++( 75:128) and ++(105:128) .. ++(192, 0) .. controls ++(285: 96) and ++(285: 96) .. ++(-80,-32) .. controls ++(105: 64) and ++( 75: 32) .. cycle; } \reflect[split={Grey100 and Grey200}]{ \clip (0,-64) ellipse [x radius=160, y radius=144]; \fill [fill color](0,-224) .. controls ++( 0:64) and ++(270:64) .. ++(96,64) .. controls ++( 90:64) and ++(270:64) .. ++(-96,192) .. controls ++(270:64) and ++( 90:64) .. ++(-96,-192) .. controls ++(270:64) and ++(180:64) .. cycle; } \reflect[split={Pink100 and Pink200}]{ \fill [fill color](0,-192) ellipse [x radius=28, y radius=32]; } \reflect[split={BlueGrey800 and BlueGrey900}]{ \fill [fill color](0,-144) .. controls ++( 0:20) and ++(315:20) .. ++( 40,64) .. controls ++(135:20) and ++( 45:20) .. ++(-80, 0) .. controls ++(225:20) and ++(180:20) .. cycle; \fill [BlueGrey900] (56, 0) circle [radius=20]; \fill [fill color] (-8,-112) -- ++(16,0) -- ++(0,-32) arc (180:360:24) arc (180:0:8) arc (360:180:40); } \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {dog}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ dog/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \useasboundingbox (-256, -256) (256, 256); \reflect[split=Brown400 and Brown500]{ \fill [fill color] (0,-64) ellipse [x radius=160, y radius=144]; \fill [fill color] (0, 32) ellipse [x radius=128, y radius=112]; \fill [fill color] (32,96) .. controls ++( 75:128) and ++(105:128) .. ++(192, 0) .. controls ++(285: 96) and ++(285: 96) .. ++(-80,-32) .. controls ++(105: 64) and ++( 75: 32) .. cycle; } \reflect[split={Grey100 and Grey200}]{ \clip (0,-64) ellipse [x radius=160, y radius=144]; \fill [fill color](0,-224) .. controls ++( 0:64) and ++(270:64) .. ++(96,64) .. controls ++( 90:64) and ++(270:64) .. ++(-96,192) .. controls ++(270:64) and ++( 90:64) .. ++(-96,-192) .. controls ++(270:64) and ++(180:64) .. cycle; } \reflect[split={Pink100 and Pink200}]{ \fill [fill color](0,-192) ellipse [x radius=28, y radius=32]; } \reflect[split={BlueGrey800 and BlueGrey900}]{ \fill [fill color](0,-144) .. controls ++( 0:20) and ++(315:20) .. ++( 40,64) .. controls ++(135:20) and ++( 45:20) .. ++(-80, 0) .. controls ++(225:20) and ++(180:20) .. cycle; \fill [BlueGrey900] (56, 0) circle [radius=20]; \fill [fill color] (-8,-112) -- ++(16,0) -- ++(0,-32) arc (180:360:24) arc (180:0:8) arc (360:180:40); } \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {dog}; \end{tikzpicture} \end{document}
Change the colors of the dog's eyes to red
A dog with red eyes
easy
update
animal
[ "@@ -49 +49 @@\n\n-\\fill [BlueGrey900] (56, 0) circle [radius=20];\n+\\fill [Red] (56, 0) circle [radius=20];", "@@ -49 +49 @@\n\n-\\fill [BlueGrey900] (56, 0) circle [radius=20];\n+\\fill [Red600] (56, 0) circle [radius=20];" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndog/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split=Brown400 and Brown500]{\n \\fill [fill color] (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color] (0, 32) ellipse [x radius=128, y radius=112];\n \\fill [fill color] (32,96)\n .. controls ++( 75:128) and ++(105:128) .. ++(192, 0)\n .. controls ++(285: 96) and ++(285: 96) .. ++(-80,-32)\n .. controls ++(105: 64) and ++( 75: 32) .. cycle;\n}\n\\reflect[split={Grey100 and Grey200}]{\n \\clip (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color](0,-224) \n .. controls ++( 0:64) and ++(270:64) .. ++(96,64)\n .. controls ++( 90:64) and ++(270:64) .. ++(-96,192)\n .. controls ++(270:64) and ++( 90:64) .. ++(-96,-192)\n .. controls ++(270:64) and ++(180:64) .. cycle;\n}\n\\reflect[split={Pink100 and Pink200}]{\n \\fill [fill color](0,-192) ellipse [x radius=28, y radius=32];\n}\n\\reflect[split={BlueGrey800 and BlueGrey900}]{\n \\fill [fill color](0,-144) \n .. controls ++( 0:20) and ++(315:20) .. ++( 40,64)\n .. controls ++(135:20) and ++( 45:20) .. ++(-80, 0)\n .. controls ++(225:20) and ++(180:20) .. cycle;\n \\fill [Red] (56, 0) circle [radius=20];\n \\fill [fill color] (-8,-112)\n -- ++(16,0) -- ++(0,-32) arc (180:360:24)\n arc (180:0:8) arc (360:180:40);\n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {dog};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndog/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split=Brown400 and Brown500]{\n \\fill [fill color] (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color] (0, 32) ellipse [x radius=128, y radius=112];\n \\fill [fill color] (32,96)\n .. controls ++( 75:128) and ++(105:128) .. ++(192, 0)\n .. controls ++(285: 96) and ++(285: 96) .. ++(-80,-32)\n .. controls ++(105: 64) and ++( 75: 32) .. cycle;\n}\n\\reflect[split={Grey100 and Grey200}]{\n \\clip (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color](0,-224) \n .. controls ++( 0:64) and ++(270:64) .. ++(96,64)\n .. controls ++( 90:64) and ++(270:64) .. ++(-96,192)\n .. controls ++(270:64) and ++( 90:64) .. ++(-96,-192)\n .. controls ++(270:64) and ++(180:64) .. cycle;\n}\n\\reflect[split={Pink100 and Pink200}]{\n \\fill [fill color](0,-192) ellipse [x radius=28, y radius=32];\n}\n\\reflect[split={BlueGrey800 and BlueGrey900}]{\n \\fill [fill color](0,-144) \n .. controls ++( 0:20) and ++(315:20) .. ++( 40,64)\n .. controls ++(135:20) and ++( 45:20) .. ++(-80, 0)\n .. controls ++(225:20) and ++(180:20) .. cycle;\n \\fill [Red§choice([300,400,500,600,700,800,900],600)] (56, 0) circle [radius=20];\n \\fill [fill color] (-8,-112)\n -- ++(16,0) -- ++(0,-32) arc (180:360:24)\n arc (180:0:8) arc (360:180:40);\n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {dog};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndog/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split=Brown400 and Brown500]{\n \\fill [fill color] (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color] (0, 32) ellipse [x radius=128, y radius=112];\n \\fill [fill color] (32,96)\n .. controls ++( 75:128) and ++(105:128) .. ++(192, 0)\n .. controls ++(285: 96) and ++(285: 96) .. ++(-80,-32)\n .. controls ++(105: 64) and ++( 75: 32) .. cycle;\n}\n\\reflect[split={Grey100 and Grey200}]{\n \\clip (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color](0,-224) \n .. controls ++( 0:64) and ++(270:64) .. ++(96,64)\n .. controls ++( 90:64) and ++(270:64) .. ++(-96,192)\n .. controls ++(270:64) and ++( 90:64) .. ++(-96,-192)\n .. controls ++(270:64) and ++(180:64) .. cycle;\n}\n\\reflect[split={Pink100 and Pink200}]{\n \\fill [fill color](0,-192) ellipse [x radius=28, y radius=32];\n}\n\\reflect[split={BlueGrey800 and BlueGrey900}]{\n \\fill [fill color](0,-144) \n .. controls ++( 0:20) and ++(315:20) .. ++( 40,64)\n .. controls ++(135:20) and ++( 45:20) .. ++(-80, 0)\n .. controls ++(225:20) and ++(180:20) .. cycle;\n \\fill [Red] (56, 0) circle [radius=20];\n \\fill [fill color] (-8,-112)\n -- ++(16,0) -- ++(0,-32) arc (180:360:24)\n arc (180:0:8) arc (360:180:40);\n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {dog};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndog/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split=Brown400 and Brown500]{\n \\fill [fill color] (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color] (0, 32) ellipse [x radius=128, y radius=112];\n \\fill [fill color] (32,96)\n .. controls ++( 75:128) and ++(105:128) .. ++(192, 0)\n .. controls ++(285: 96) and ++(285: 96) .. ++(-80,-32)\n .. controls ++(105: 64) and ++( 75: 32) .. cycle;\n}\n\\reflect[split={Grey100 and Grey200}]{\n \\clip (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color](0,-224) \n .. controls ++( 0:64) and ++(270:64) .. ++(96,64)\n .. controls ++( 90:64) and ++(270:64) .. ++(-96,192)\n .. controls ++(270:64) and ++( 90:64) .. ++(-96,-192)\n .. controls ++(270:64) and ++(180:64) .. cycle;\n}\n\\reflect[split={Pink100 and Pink200}]{\n \\fill [fill color](0,-192) ellipse [x radius=28, y radius=32];\n}\n\\reflect[split={BlueGrey800 and BlueGrey900}]{\n \\fill [fill color](0,-144) \n .. controls ++( 0:20) and ++(315:20) .. ++( 40,64)\n .. controls ++(135:20) and ++( 45:20) .. ++(-80, 0)\n .. controls ++(225:20) and ++(180:20) .. cycle;\n \\fill [Red600] (56, 0) circle [radius=20];\n \\fill [fill color] (-8,-112)\n -- ++(16,0) -- ++(0,-32) arc (180:360:24)\n arc (180:0:8) arc (360:180:40);\n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {dog};\n\\end{tikzpicture}\n\\end{document}" ]
[ 14 ]
dog_white_eyes_with_pupils
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ dog/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \useasboundingbox (-256, -256) (256, 256); \reflect[split=Brown400 and Brown500]{ \fill [fill color] (0,-64) ellipse [x radius=160, y radius=144]; \fill [fill color] (0, 32) ellipse [x radius=128, y radius=112]; \fill [fill color] (32,96) .. controls ++( 75:128) and ++(105:128) .. ++(192, 0) .. controls ++(285: 96) and ++(285: 96) .. ++(-80,-32) .. controls ++(105: 64) and ++( 75: 32) .. cycle; } \reflect[split={Grey100 and Grey200}]{ \clip (0,-64) ellipse [x radius=160, y radius=144]; \fill [fill color](0,-224) .. controls ++( 0:64) and ++(270:64) .. ++(96,64) .. controls ++( 90:64) and ++(270:64) .. ++(-96,192) .. controls ++(270:64) and ++( 90:64) .. ++(-96,-192) .. controls ++(270:64) and ++(180:64) .. cycle; } \reflect[split={Pink100 and Pink200}]{ \fill [fill color](0,-192) ellipse [x radius=28, y radius=32]; } \reflect[split={BlueGrey800 and BlueGrey900}]{ \fill [fill color](0,-144) .. controls ++( 0:20) and ++(315:20) .. ++( 40,64) .. controls ++(135:20) and ++( 45:20) .. ++(-80, 0) .. controls ++(225:20) and ++(180:20) .. cycle; \fill [BlueGrey900] (56, 0) circle [radius=20]; \fill [fill color] (-8,-112) -- ++(16,0) -- ++(0,-32) arc (180:360:24) arc (180:0:8) arc (360:180:40); } \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {dog}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ dog/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \useasboundingbox (-256, -256) (256, 256); \reflect[split=Brown400 and Brown500]{ \fill [fill color] (0,-64) ellipse [x radius=160, y radius=144]; \fill [fill color] (0, 32) ellipse [x radius=128, y radius=112]; \fill [fill color] (32,96) .. controls ++( 75:128) and ++(105:128) .. ++(192, 0) .. controls ++(285: 96) and ++(285: 96) .. ++(-80,-32) .. controls ++(105: 64) and ++( 75: 32) .. cycle; } \reflect[split={Grey100 and Grey200}]{ \clip (0,-64) ellipse [x radius=160, y radius=144]; \fill [fill color](0,-224) .. controls ++( 0:64) and ++(270:64) .. ++(96,64) .. controls ++( 90:64) and ++(270:64) .. ++(-96,192) .. controls ++(270:64) and ++( 90:64) .. ++(-96,-192) .. controls ++(270:64) and ++(180:64) .. cycle; } \reflect[split={Pink100 and Pink200}]{ \fill [fill color](0,-192) ellipse [x radius=28, y radius=32]; } \reflect[split={BlueGrey800 and BlueGrey900}]{ \fill [fill color](0,-144) .. controls ++( 0:20) and ++(315:20) .. ++( 40,64) .. controls ++(135:20) and ++( 45:20) .. ++(-80, 0) .. controls ++(225:20) and ++(180:20) .. cycle; \fill [BlueGrey900] (56, 0) circle [radius=20]; \fill [fill color] (-8,-112) -- ++(16,0) -- ++(0,-32) arc (180:360:24) arc (180:0:8) arc (360:180:40); } \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {dog}; \end{tikzpicture} \end{document}
Add a white circle behid the exsting black eyes of the dog. Making his eyes have pupils.
a dog with big white circular eyes, and black pupils
medium
add
animal
[ "@@ -48,0 +49 @@\n\n+\\fill [Grey100] (60, 0) circle [radius=35];" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndog/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split=Brown400 and Brown500]{\n \\fill [fill color] (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color] (0, 32) ellipse [x radius=128, y radius=112];\n \\fill [fill color] (32,96)\n .. controls ++( 75:128) and ++(105:128) .. ++(192, 0)\n .. controls ++(285: 96) and ++(285: 96) .. ++(-80,-32)\n .. controls ++(105: 64) and ++( 75: 32) .. cycle;\n}\n\\reflect[split={Grey100 and Grey200}]{\n \\clip (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color](0,-224) \n .. controls ++( 0:64) and ++(270:64) .. ++(96,64)\n .. controls ++( 90:64) and ++(270:64) .. ++(-96,192)\n .. controls ++(270:64) and ++( 90:64) .. ++(-96,-192)\n .. controls ++(270:64) and ++(180:64) .. cycle;\n}\n\\reflect[split={Pink100 and Pink200}]{\n \\fill [fill color](0,-192) ellipse [x radius=28, y radius=32];\n}\n\\reflect[split={BlueGrey800 and BlueGrey900}]{\n \\fill [fill color](0,-144) \n .. controls ++( 0:20) and ++(315:20) .. ++( 40,64)\n .. controls ++(135:20) and ++( 45:20) .. ++(-80, 0)\n .. controls ++(225:20) and ++(180:20) .. cycle;\n \\fill [§choice([\"Grey100\",\"White\"],Grey100)] (60, 0) circle [radius=§rangei(35,10)];\n \\fill [BlueGrey900] (56, 0) circle [radius=20];\n \\fill [fill color] (-8,-112)\n -- ++(16,0) -- ++(0,-32) arc (180:360:24)\n arc (180:0:8) arc (360:180:40);\n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {dog};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndog/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split=Brown400 and Brown500]{\n \\fill [fill color] (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color] (0, 32) ellipse [x radius=128, y radius=112];\n \\fill [fill color] (32,96)\n .. controls ++( 75:128) and ++(105:128) .. ++(192, 0)\n .. controls ++(285: 96) and ++(285: 96) .. ++(-80,-32)\n .. controls ++(105: 64) and ++( 75: 32) .. cycle;\n}\n\\reflect[split={Grey100 and Grey200}]{\n \\clip (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color](0,-224) \n .. controls ++( 0:64) and ++(270:64) .. ++(96,64)\n .. controls ++( 90:64) and ++(270:64) .. ++(-96,192)\n .. controls ++(270:64) and ++( 90:64) .. ++(-96,-192)\n .. controls ++(270:64) and ++(180:64) .. cycle;\n}\n\\reflect[split={Pink100 and Pink200}]{\n \\fill [fill color](0,-192) ellipse [x radius=28, y radius=32];\n}\n\\reflect[split={BlueGrey800 and BlueGrey900}]{\n \\fill [fill color](0,-144) \n .. controls ++( 0:20) and ++(315:20) .. ++( 40,64)\n .. controls ++(135:20) and ++( 45:20) .. ++(-80, 0)\n .. controls ++(225:20) and ++(180:20) .. cycle;\n \\fill [Grey100] (60, 0) circle [radius=35];\n \\fill [BlueGrey900] (56, 0) circle [radius=20];\n \\fill [fill color] (-8,-112)\n -- ++(16,0) -- ++(0,-32) arc (180:360:24)\n arc (180:0:8) arc (360:180:40);\n}\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {dog};\n\\end{tikzpicture}\n\\end{document}" ]
[ 14, 13 ]
dog_winking
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ dog/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \useasboundingbox (-256, -256) (256, 256); \reflect[split=Brown400 and Brown500]{ \fill [fill color] (0,-64) ellipse [x radius=160, y radius=144]; \fill [fill color] (0, 32) ellipse [x radius=128, y radius=112]; \fill [fill color] (32,96) .. controls ++( 75:128) and ++(105:128) .. ++(192, 0) .. controls ++(285: 96) and ++(285: 96) .. ++(-80,-32) .. controls ++(105: 64) and ++( 75: 32) .. cycle; } \reflect[split={Grey100 and Grey200}]{ \clip (0,-64) ellipse [x radius=160, y radius=144]; \fill [fill color](0,-224) .. controls ++( 0:64) and ++(270:64) .. ++(96,64) .. controls ++( 90:64) and ++(270:64) .. ++(-96,192) .. controls ++(270:64) and ++( 90:64) .. ++(-96,-192) .. controls ++(270:64) and ++(180:64) .. cycle; } \reflect[split={Pink100 and Pink200}]{ \fill [fill color](0,-192) ellipse [x radius=28, y radius=32]; } \reflect[split={BlueGrey800 and BlueGrey900}]{ \fill [fill color](0,-144) .. controls ++( 0:20) and ++(315:20) .. ++( 40,64) .. controls ++(135:20) and ++( 45:20) .. ++(-80, 0) .. controls ++(225:20) and ++(180:20) .. cycle; \fill [BlueGrey900] (56, 0) circle [radius=20]; \fill [fill color] (-8,-112) -- ++(16,0) -- ++(0,-32) arc (180:360:24) arc (180:0:8) arc (360:180:40); } \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {dog}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ dog/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \useasboundingbox (-256, -256) (256, 256); \reflect[split=Brown400 and Brown500]{ \fill [fill color] (0,-64) ellipse [x radius=160, y radius=144]; \fill [fill color] (0, 32) ellipse [x radius=128, y radius=112]; \fill [fill color] (32,96) .. controls ++( 75:128) and ++(105:128) .. ++(192, 0) .. controls ++(285: 96) and ++(285: 96) .. ++(-80,-32) .. controls ++(105: 64) and ++( 75: 32) .. cycle; } \reflect[split={Grey100 and Grey200}]{ \clip (0,-64) ellipse [x radius=160, y radius=144]; \fill [fill color](0,-224) .. controls ++( 0:64) and ++(270:64) .. ++(96,64) .. controls ++( 90:64) and ++(270:64) .. ++(-96,192) .. controls ++(270:64) and ++( 90:64) .. ++(-96,-192) .. controls ++(270:64) and ++(180:64) .. cycle; } \reflect[split={Pink100 and Pink200}]{ \fill [fill color](0,-192) ellipse [x radius=28, y radius=32]; } \reflect[split={BlueGrey800 and BlueGrey900}]{ \fill [fill color](0,-144) .. controls ++( 0:20) and ++(315:20) .. ++( 40,64) .. controls ++(135:20) and ++( 45:20) .. ++(-80, 0) .. controls ++(225:20) and ++(180:20) .. cycle; \fill [BlueGrey900] (56, 0) circle [radius=20]; \fill [fill color] (-8,-112) -- ++(16,0) -- ++(0,-32) arc (180:360:24) arc (180:0:8) arc (360:180:40); } \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {dog}; \end{tikzpicture} \end{document}
Make the dog wink
A dog winking
medium
add
animal
[ "@@ -49 +48,0 @@\n\n-\\fill [BlueGrey900] (56, 0) circle [radius=20];\n@@ -53,0 +53,2 @@\n\n+\\fill [BlueGrey900] (56, 0) circle [radius=20];\n+\\draw[BlueGrey900, line width=3pt] (-35, 5) -- (-80, 5);", "@@ -49 +48,0 @@\n\n-\\fill [BlueGrey900] (56, 0) circle [radius=20];\n@@ -53,0 +53,2 @@\n\n+\\fill [BlueGrey900] (56, 0) circle [radius=20];\n+\\fill[BlueGrey900, rounded corners=2pt] (-36, -10) rectangle(-80, 8);" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndog/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split=Brown400 and Brown500]{\n \\fill [fill color] (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color] (0, 32) ellipse [x radius=128, y radius=112];\n \\fill [fill color] (32,96)\n .. controls ++( 75:128) and ++(105:128) .. ++(192, 0)\n .. controls ++(285: 96) and ++(285: 96) .. ++(-80,-32)\n .. controls ++(105: 64) and ++( 75: 32) .. cycle;\n}\n\\reflect[split={Grey100 and Grey200}]{\n \\clip (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color](0,-224) \n .. controls ++( 0:64) and ++(270:64) .. ++(96,64)\n .. controls ++( 90:64) and ++(270:64) .. ++(-96,192)\n .. controls ++(270:64) and ++( 90:64) .. ++(-96,-192)\n .. controls ++(270:64) and ++(180:64) .. cycle;\n}\n\\reflect[split={Pink100 and Pink200}]{\n \\fill [fill color](0,-192) ellipse [x radius=28, y radius=32];\n}\n\\reflect[split={BlueGrey800 and BlueGrey900}]{\n \\fill [fill color](0,-144) \n .. controls ++( 0:20) and ++(315:20) .. ++( 40,64)\n .. controls ++(135:20) and ++( 45:20) .. ++(-80, 0)\n .. controls ++(225:20) and ++(180:20) .. cycle;\n \\fill [fill color] (-8,-112)\n -- ++(16,0) -- ++(0,-32) arc (180:360:24)\n arc (180:0:8) arc (360:180:40);\n}\n\\fill [BlueGrey900] (56, 0) circle [radius=20];\n\\draw[BlueGrey900, line width=§range(2,3,3)pt] (§rangei(-35,5), 5) -- (§rangei(-80,10), 5);\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {dog};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndog/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split=Brown400 and Brown500]{\n \\fill [fill color] (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color] (0, 32) ellipse [x radius=128, y radius=112];\n \\fill [fill color] (32,96)\n .. controls ++( 75:128) and ++(105:128) .. ++(192, 0)\n .. controls ++(285: 96) and ++(285: 96) .. ++(-80,-32)\n .. controls ++(105: 64) and ++( 75: 32) .. cycle;\n}\n\\reflect[split={Grey100 and Grey200}]{\n \\clip (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color](0,-224) \n .. controls ++( 0:64) and ++(270:64) .. ++(96,64)\n .. controls ++( 90:64) and ++(270:64) .. ++(-96,192)\n .. controls ++(270:64) and ++( 90:64) .. ++(-96,-192)\n .. controls ++(270:64) and ++(180:64) .. cycle;\n}\n\\reflect[split={Pink100 and Pink200}]{\n \\fill [fill color](0,-192) ellipse [x radius=28, y radius=32];\n}\n\\reflect[split={BlueGrey800 and BlueGrey900}]{\n \\fill [fill color](0,-144) \n .. controls ++( 0:20) and ++(315:20) .. ++( 40,64)\n .. controls ++(135:20) and ++( 45:20) .. ++(-80, 0)\n .. controls ++(225:20) and ++(180:20) .. cycle;\n \\fill [fill color] (-8,-112)\n -- ++(16,0) -- ++(0,-32) arc (180:360:24)\n arc (180:0:8) arc (360:180:40);\n}\n\\fill [BlueGrey900] (56, 0) circle [radius=20];\n\\fill[BlueGrey900, rounded corners=2pt] (-36, -10) rectangle(§rangei(-80,15), §rangei(8,2));\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {dog};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndog/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split=Brown400 and Brown500]{\n \\fill [fill color] (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color] (0, 32) ellipse [x radius=128, y radius=112];\n \\fill [fill color] (32,96)\n .. controls ++( 75:128) and ++(105:128) .. ++(192, 0)\n .. controls ++(285: 96) and ++(285: 96) .. ++(-80,-32)\n .. controls ++(105: 64) and ++( 75: 32) .. cycle;\n}\n\\reflect[split={Grey100 and Grey200}]{\n \\clip (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color](0,-224) \n .. controls ++( 0:64) and ++(270:64) .. ++(96,64)\n .. controls ++( 90:64) and ++(270:64) .. ++(-96,192)\n .. controls ++(270:64) and ++( 90:64) .. ++(-96,-192)\n .. controls ++(270:64) and ++(180:64) .. cycle;\n}\n\\reflect[split={Pink100 and Pink200}]{\n \\fill [fill color](0,-192) ellipse [x radius=28, y radius=32];\n}\n\\reflect[split={BlueGrey800 and BlueGrey900}]{\n \\fill [fill color](0,-144) \n .. controls ++( 0:20) and ++(315:20) .. ++( 40,64)\n .. controls ++(135:20) and ++( 45:20) .. ++(-80, 0)\n .. controls ++(225:20) and ++(180:20) .. cycle;\n \\fill [fill color] (-8,-112)\n -- ++(16,0) -- ++(0,-32) arc (180:360:24)\n arc (180:0:8) arc (360:180:40);\n}\n\\fill [BlueGrey900] (56, 0) circle [radius=20];\n\\draw[BlueGrey900, line width=3pt] (-35, 5) -- (-80, 5);\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {dog};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndog/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split=Brown400 and Brown500]{\n \\fill [fill color] (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color] (0, 32) ellipse [x radius=128, y radius=112];\n \\fill [fill color] (32,96)\n .. controls ++( 75:128) and ++(105:128) .. ++(192, 0)\n .. controls ++(285: 96) and ++(285: 96) .. ++(-80,-32)\n .. controls ++(105: 64) and ++( 75: 32) .. cycle;\n}\n\\reflect[split={Grey100 and Grey200}]{\n \\clip (0,-64) ellipse [x radius=160, y radius=144];\n \\fill [fill color](0,-224) \n .. controls ++( 0:64) and ++(270:64) .. ++(96,64)\n .. controls ++( 90:64) and ++(270:64) .. ++(-96,192)\n .. controls ++(270:64) and ++( 90:64) .. ++(-96,-192)\n .. controls ++(270:64) and ++(180:64) .. cycle;\n}\n\\reflect[split={Pink100 and Pink200}]{\n \\fill [fill color](0,-192) ellipse [x radius=28, y radius=32];\n}\n\\reflect[split={BlueGrey800 and BlueGrey900}]{\n \\fill [fill color](0,-144) \n .. controls ++( 0:20) and ++(315:20) .. ++( 40,64)\n .. controls ++(135:20) and ++( 45:20) .. ++(-80, 0)\n .. controls ++(225:20) and ++(180:20) .. cycle;\n \\fill [fill color] (-8,-112)\n -- ++(16,0) -- ++(0,-32) arc (180:360:24)\n arc (180:0:8) arc (360:180:40);\n}\n\\fill [BlueGrey900] (56, 0) circle [radius=20];\n\\fill[BlueGrey900, rounded corners=2pt] (-36, -10) rectangle(-80, 8);\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {dog};\n\\end{tikzpicture}\n\\end{document}" ]
[ 4 ]
donkey_angled_nostrils
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ donkey/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \reflect[ on left ={color alias=ears as BlueGrey500}, on right={color alias=ears as BlueGrey700}, outer ear/.style={fill=ears}, inner ear/.style={fill=BlueGrey900} ]{ \foreach \s [count=\j from 0] in {outer ear, inner ear} \fill [style=\s] [shift={(88,120)}, rotate=75, scale=9/10-\j/3, xscale=3/2] (-72,0) .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48) .. controls ++( 0:16) and ++( 90:12) .. (88, 0) .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48) .. controls ++(180: 8) and ++(270: 8) .. cycle; } \reflect[split=BlueGrey500 and BlueGrey700]{ \fill [fill color] (-56,-160) .. controls ++( 90:112) and ++(270: 128) .. (-112, 48) arc (180:0:112 and 96) .. controls ++(270: 128) and ++( 90:112) .. ( 56,-160) -- cycle; } \reflect[split=Grey500 and Grey600]{ \fill [fill color] (0,-164) ellipse [x radius=56, y radius=56]; } \reflect[split=Grey700 and Grey800]{ \fill [fill color] (0,-164) ellipse [x radius=48, y radius=40]; } \reflect[split=Grey500 and Grey600]{ \fill [fill color] (0,-144) ellipse [x radius=64, y radius=48]; \fill [fill color] (36, -128) ellipse [x radius=24, y radius=40]; \fill [BlueGrey900] (36, -128) ellipse [x radius=12, y radius=24]; } \fill [BlueGrey900] (-72, 40) ellipse [radius=20] ( 72, 40) ellipse [radius=20] (-8,160) to [bend left] ++( 16, 32) to [bend right] ++( 16,-48) to [bend left] ++( 16, 32) to [bend right] ++( 16,-48) to [bend right] ++(-32,-48) to [bend left] ++(-16, 32) to [bend right] ++(-32,-32) to [bend left] ++( 0, 32) to [bend right] ++(-32,-16) to [bend left] ++( 16, 40) to [bend right] ++(-16, 32) to [bend left] cycle; \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {donkey}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ donkey/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \reflect[ on left ={color alias=ears as BlueGrey500}, on right={color alias=ears as BlueGrey700}, outer ear/.style={fill=ears}, inner ear/.style={fill=BlueGrey900} ]{ \foreach \s [count=\j from 0] in {outer ear, inner ear} \fill [style=\s] [shift={(88,120)}, rotate=75, scale=9/10-\j/3, xscale=3/2] (-72,0) .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48) .. controls ++( 0:16) and ++( 90:12) .. (88, 0) .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48) .. controls ++(180: 8) and ++(270: 8) .. cycle; } \reflect[split=BlueGrey500 and BlueGrey700]{% \fill [fill color] (-56,-160) .. controls ++( 90:112) and ++(270: 128) .. (-112, 48) arc (180:0:112 and 96) .. controls ++(270: 128) and ++( 90:112) .. ( 56,-160) -- cycle; } \reflect[split=Grey500 and Grey600]{% \fill [fill color] (0,-164) ellipse [x radius=56, y radius=56]; } \reflect[split=Grey700 and Grey800]{% \fill [fill color] (0,-164) ellipse [x radius=48, y radius=40]; } \reflect[split=Grey500 and Grey600]{% \fill [fill color] (0,-144) ellipse [x radius=64, y radius=48]; \fill [fill color] (36, -128) ellipse [x radius=24, y radius=40]; \fill [BlueGrey900] (36, -128) ellipse [x radius=12, y radius=24]; } \fill [BlueGrey900] (-72, 40) ellipse [radius=20] ( 72, 40) ellipse [radius=20] (-8,160) to [bend left] ++( 16, 32) to [bend right] ++( 16,-48) to [bend left] ++( 16, 32) to [bend right] ++( 16,-48) to [bend right] ++(-32,-48) to [bend left] ++(-16, 32) to [bend right] ++(-32,-32) to [bend left] ++( 0, 32) to [bend right] ++(-32,-16) to [bend left] ++( 16, 40) to [bend right] ++(-16, 32) to [bend left] cycle; \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {donkey}; \end{tikzpicture} \end{document}
Tilt the nostrils of the donkey outward
A donkey with its nostrils tilted outward
medium
update
animal
[ "@@ -52,2 +52,2 @@\n\n-\\fill [fill color] (36, -128) ellipse [x radius=24, y radius=40];\n-\\fill [BlueGrey900] (36, -128) ellipse [x radius=12, y radius=24];\n+\\fill [fill color, rotate=20] (-5, -128) ellipse [x radius=24, y radius=40];\n+\\fill [BlueGrey900, rotate=20] (-5, -128) ellipse [x radius=12, y radius=24];" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndonkey/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\reflect[\n on left ={color alias=ears as BlueGrey500},\n on right={color alias=ears as BlueGrey700},\n outer ear/.style={fill=ears}, inner ear/.style={fill=BlueGrey900}\n]{\n \\foreach \\s [count=\\j from 0] in {outer ear, inner ear}\n \\fill [style=\\s]\n [shift={(88,120)}, rotate=75, scale=9/10-\\j/3, xscale=3/2]\n (-72,0)\n .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48)\n .. controls ++( 0:16) and ++( 90:12) .. (88, 0)\n .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48)\n .. controls ++(180: 8) and ++(270: 8) .. cycle;\n}\n\\reflect[split=BlueGrey500 and BlueGrey700]{\n \\fill [fill color] (-56,-160)\n .. controls ++( 90:112) and ++(270: 128) .. (-112, 48)\n arc (180:0:112 and 96)\n .. controls ++(270: 128) and ++( 90:112) .. ( 56,-160) -- cycle;\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-164) ellipse [x radius=56, y radius=56];\n}\n\\reflect[split=Grey700 and Grey800]{\n \\fill [fill color] (0,-164) ellipse [x radius=48, y radius=40];\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-144) ellipse [x radius=64, y radius=48];\n \\fill [fill color, rotate=§rangei(20,5)] (§rangei(-5,10), -128) ellipse [x radius=24, y radius=40];\n \\fill [BlueGrey900, rotate=§rangei(20,5)] (§rangei(-5,10), -128) ellipse [x radius=12, y radius=24];\n}\n\\fill [BlueGrey900]\n (-72, 40) ellipse [radius=20]\n ( 72, 40) ellipse [radius=20]\n (-8,160)\n to [bend left] ++( 16, 32) to [bend right] ++( 16,-48)\n to [bend left] ++( 16, 32) to [bend right] ++( 16,-48)\n to [bend right] ++(-32,-48) to [bend left] ++(-16, 32)\n to [bend right] ++(-32,-32) to [bend left] ++( 0, 32)\n to [bend right] ++(-32,-16) to [bend left] ++( 16, 40)\n to [bend right] ++(-16, 32) to [bend left] cycle;\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {donkey};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndonkey/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\reflect[\n on left ={color alias=ears as BlueGrey500},\n on right={color alias=ears as BlueGrey700},\n outer ear/.style={fill=ears}, inner ear/.style={fill=BlueGrey900}\n]{\n \\foreach \\s [count=\\j from 0] in {outer ear, inner ear}\n \\fill [style=\\s]\n [shift={(88,120)}, rotate=75, scale=9/10-\\j/3, xscale=3/2]\n (-72,0)\n .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48)\n .. controls ++( 0:16) and ++( 90:12) .. (88, 0)\n .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48)\n .. controls ++(180: 8) and ++(270: 8) .. cycle;\n}\n\\reflect[split=BlueGrey500 and BlueGrey700]{\n \\fill [fill color] (-56,-160)\n .. controls ++( 90:112) and ++(270: 128) .. (-112, 48)\n arc (180:0:112 and 96)\n .. controls ++(270: 128) and ++( 90:112) .. ( 56,-160) -- cycle;\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-164) ellipse [x radius=56, y radius=56];\n}\n\\reflect[split=Grey700 and Grey800]{\n \\fill [fill color] (0,-164) ellipse [x radius=48, y radius=40];\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-144) ellipse [x radius=64, y radius=48];\n \\fill [fill color, rotate=20] (-5, -128) ellipse [x radius=24, y radius=40];\n \\fill [BlueGrey900, rotate=20] (-5, -128) ellipse [x radius=12, y radius=24];\n}\n\\fill [BlueGrey900]\n (-72, 40) ellipse [radius=20]\n ( 72, 40) ellipse [radius=20]\n (-8,160)\n to [bend left] ++( 16, 32) to [bend right] ++( 16,-48)\n to [bend left] ++( 16, 32) to [bend right] ++( 16,-48)\n to [bend right] ++(-32,-48) to [bend left] ++(-16, 32)\n to [bend right] ++(-32,-32) to [bend left] ++( 0, 32)\n to [bend right] ++(-32,-16) to [bend left] ++( 16, 40)\n to [bend right] ++(-16, 32) to [bend left] cycle;\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {donkey};\n\\end{tikzpicture}\n\\end{document}" ]
[ 2 ]
donkey_centered_eyes
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ donkey/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \reflect[ on left ={color alias=ears as BlueGrey500}, on right={color alias=ears as BlueGrey700}, outer ear/.style={fill=ears}, inner ear/.style={fill=BlueGrey900} ]{ \foreach \s [count=\j from 0] in {outer ear, inner ear} \fill [style=\s] [shift={(88,120)}, rotate=75, scale=9/10-\j/3, xscale=3/2] (-72,0) .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48) .. controls ++( 0:16) and ++( 90:12) .. (88, 0) .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48) .. controls ++(180: 8) and ++(270: 8) .. cycle; } \reflect[split=BlueGrey500 and BlueGrey700]{ \fill [fill color] (-56,-160) .. controls ++( 90:112) and ++(270: 128) .. (-112, 48) arc (180:0:112 and 96) .. controls ++(270: 128) and ++( 90:112) .. ( 56,-160) -- cycle; } \reflect[split=Grey500 and Grey600]{ \fill [fill color] (0,-164) ellipse [x radius=56, y radius=56]; } \reflect[split=Grey700 and Grey800]{ \fill [fill color] (0,-164) ellipse [x radius=48, y radius=40]; } \reflect[split=Grey500 and Grey600]{ \fill [fill color] (0,-144) ellipse [x radius=64, y radius=48]; \fill [fill color] (36, -128) ellipse [x radius=24, y radius=40]; \fill [BlueGrey900] (36, -128) ellipse [x radius=12, y radius=24]; } \fill [BlueGrey900] (-72, 40) ellipse [radius=20] ( 72, 40) ellipse [radius=20] (-8,160) to [bend left] ++( 16, 32) to [bend right] ++( 16,-48) to [bend left] ++( 16, 32) to [bend right] ++( 16,-48) to [bend right] ++(-32,-48) to [bend left] ++(-16, 32) to [bend right] ++(-32,-32) to [bend left] ++( 0, 32) to [bend right] ++(-32,-16) to [bend left] ++( 16, 40) to [bend right] ++(-16, 32) to [bend left] cycle; \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {donkey}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ donkey/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \reflect[ on left ={color alias=ears as BlueGrey500}, on right={color alias=ears as BlueGrey700}, outer ear/.style={fill=ears}, inner ear/.style={fill=BlueGrey900} ]{ \foreach \s [count=\j from 0] in {outer ear, inner ear} \fill [style=\s] [shift={(88,120)}, rotate=75, scale=9/10-\j/3, xscale=3/2] (-72,0) .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48) .. controls ++( 0:16) and ++( 90:12) .. (88, 0) .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48) .. controls ++(180: 8) and ++(270: 8) .. cycle; } \reflect[split=BlueGrey500 and BlueGrey700]{% \fill [fill color] (-56,-160) .. controls ++( 90:112) and ++(270: 128) .. (-112, 48) arc (180:0:112 and 96) .. controls ++(270: 128) and ++( 90:112) .. ( 56,-160) -- cycle; } \reflect[split=Grey500 and Grey600]{% \fill [fill color] (0,-164) ellipse [x radius=56, y radius=56]; } \reflect[split=Grey700 and Grey800]{% \fill [fill color] (0,-164) ellipse [x radius=48, y radius=40]; } \reflect[split=Grey500 and Grey600]{% \fill [fill color] (0,-144) ellipse [x radius=64, y radius=48]; \fill [fill color] (36, -128) ellipse [x radius=24, y radius=40]; \fill [BlueGrey900] (36, -128) ellipse [x radius=12, y radius=24]; } \fill [BlueGrey900] (-72, 40) ellipse [radius=20] ( 72, 40) ellipse [radius=20] (-8,160) to [bend left] ++( 16, 32) to [bend right] ++( 16,-48) to [bend left] ++( 16, 32) to [bend right] ++( 16,-48) to [bend right] ++(-32,-48) to [bend left] ++(-16, 32) to [bend right] ++(-32,-32) to [bend left] ++( 0, 32) to [bend right] ++(-32,-16) to [bend left] ++( 16, 40) to [bend right] ++(-16, 32) to [bend left] cycle; \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {donkey}; \end{tikzpicture} \end{document}
Move the donkey's eyes closer together.
A donkey with its eyes centered
easy
update
animal
[ "@@ -56,2 +56,2 @@\n\n-(-72, 40) ellipse [radius=20]\n-( 72, 40) ellipse [radius=20]\n+(-42, 40) ellipse [radius=20]\n+(42, 40) ellipse [radius=20]" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndonkey/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\reflect[\n on left ={color alias=ears as BlueGrey500},\n on right={color alias=ears as BlueGrey700},\n outer ear/.style={fill=ears}, inner ear/.style={fill=BlueGrey900}\n]{\n \\foreach \\s [count=\\j from 0] in {outer ear, inner ear}\n \\fill [style=\\s]\n [shift={(88,120)}, rotate=75, scale=9/10-\\j/3, xscale=3/2]\n (-72,0)\n .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48)\n .. controls ++( 0:16) and ++( 90:12) .. (88, 0)\n .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48)\n .. controls ++(180: 8) and ++(270: 8) .. cycle;\n}\n\\reflect[split=BlueGrey500 and BlueGrey700]{\n \\fill [fill color] (-56,-160)\n .. controls ++( 90:112) and ++(270: 128) .. (-112, 48)\n arc (180:0:112 and 96)\n .. controls ++(270: 128) and ++( 90:112) .. ( 56,-160) -- cycle;\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-164) ellipse [x radius=56, y radius=56];\n}\n\\reflect[split=Grey700 and Grey800]{\n \\fill [fill color] (0,-164) ellipse [x radius=48, y radius=40];\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-144) ellipse [x radius=64, y radius=48];\n \\fill [fill color] (36, -128) ellipse [x radius=24, y radius=40];\n \\fill [BlueGrey900] (36, -128) ellipse [x radius=12, y radius=24];\n}\n\\fill [BlueGrey900]\n (§rangei(-42,10), 40) ellipse [radius=20]\n (§rangei(42,10), 40) ellipse [radius=20]\n (-8,160)\n to [bend left] ++( 16, 32) to [bend right] ++( 16,-48)\n to [bend left] ++( 16, 32) to [bend right] ++( 16,-48)\n to [bend right] ++(-32,-48) to [bend left] ++(-16, 32)\n to [bend right] ++(-32,-32) to [bend left] ++( 0, 32)\n to [bend right] ++(-32,-16) to [bend left] ++( 16, 40)\n to [bend right] ++(-16, 32) to [bend left] cycle;\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {donkey};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndonkey/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\reflect[\n on left ={color alias=ears as BlueGrey500},\n on right={color alias=ears as BlueGrey700},\n outer ear/.style={fill=ears}, inner ear/.style={fill=BlueGrey900}\n]{\n \\foreach \\s [count=\\j from 0] in {outer ear, inner ear}\n \\fill [style=\\s]\n [shift={(88,120)}, rotate=75, scale=9/10-\\j/3, xscale=3/2]\n (-72,0)\n .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48)\n .. controls ++( 0:16) and ++( 90:12) .. (88, 0)\n .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48)\n .. controls ++(180: 8) and ++(270: 8) .. cycle;\n}\n\\reflect[split=BlueGrey500 and BlueGrey700]{\n \\fill [fill color] (-56,-160)\n .. controls ++( 90:112) and ++(270: 128) .. (-112, 48)\n arc (180:0:112 and 96)\n .. controls ++(270: 128) and ++( 90:112) .. ( 56,-160) -- cycle;\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-164) ellipse [x radius=56, y radius=56];\n}\n\\reflect[split=Grey700 and Grey800]{\n \\fill [fill color] (0,-164) ellipse [x radius=48, y radius=40];\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-144) ellipse [x radius=64, y radius=48];\n \\fill [fill color] (36, -128) ellipse [x radius=24, y radius=40];\n \\fill [BlueGrey900] (36, -128) ellipse [x radius=12, y radius=24];\n}\n\\fill [BlueGrey900]\n (-42, 40) ellipse [radius=20]\n (42, 40) ellipse [radius=20]\n (-8,160)\n to [bend left] ++( 16, 32) to [bend right] ++( 16,-48)\n to [bend left] ++( 16, 32) to [bend right] ++( 16,-48)\n to [bend right] ++(-32,-48) to [bend left] ++(-16, 32)\n to [bend right] ++(-32,-32) to [bend left] ++( 0, 32)\n to [bend right] ++(-32,-16) to [bend left] ++( 16, 40)\n to [bend right] ++(-16, 32) to [bend left] cycle;\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {donkey};\n\\end{tikzpicture}\n\\end{document}" ]
[ 5 ]
donkey_higher_mane
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ donkey/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \reflect[ on left ={color alias=ears as BlueGrey500}, on right={color alias=ears as BlueGrey700}, outer ear/.style={fill=ears}, inner ear/.style={fill=BlueGrey900} ]{ \foreach \s [count=\j from 0] in {outer ear, inner ear} \fill [style=\s] [shift={(88,120)}, rotate=75, scale=9/10-\j/3, xscale=3/2] (-72,0) .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48) .. controls ++( 0:16) and ++( 90:12) .. (88, 0) .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48) .. controls ++(180: 8) and ++(270: 8) .. cycle; } \reflect[split=BlueGrey500 and BlueGrey700]{ \fill [fill color] (-56,-160) .. controls ++( 90:112) and ++(270: 128) .. (-112, 48) arc (180:0:112 and 96) .. controls ++(270: 128) and ++( 90:112) .. ( 56,-160) -- cycle; } \reflect[split=Grey500 and Grey600]{ \fill [fill color] (0,-164) ellipse [x radius=56, y radius=56]; } \reflect[split=Grey700 and Grey800]{ \fill [fill color] (0,-164) ellipse [x radius=48, y radius=40]; } \reflect[split=Grey500 and Grey600]{ \fill [fill color] (0,-144) ellipse [x radius=64, y radius=48]; \fill [fill color] (36, -128) ellipse [x radius=24, y radius=40]; \fill [BlueGrey900] (36, -128) ellipse [x radius=12, y radius=24]; } \fill [BlueGrey900] (-72, 40) ellipse [radius=20] ( 72, 40) ellipse [radius=20] (-8,160) to [bend left] ++( 16, 32) to [bend right] ++( 16,-48) to [bend left] ++( 16, 32) to [bend right] ++( 16,-48) to [bend right] ++(-32,-48) to [bend left] ++(-16, 32) to [bend right] ++(-32,-32) to [bend left] ++( 0, 32) to [bend right] ++(-32,-16) to [bend left] ++( 16, 40) to [bend right] ++(-16, 32) to [bend left] cycle; \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {donkey}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ donkey/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \reflect[ on left ={color alias=ears as BlueGrey500}, on right={color alias=ears as BlueGrey700}, outer ear/.style={fill=ears}, inner ear/.style={fill=BlueGrey900} ]{ \foreach \s [count=\j from 0] in {outer ear, inner ear} \fill [style=\s] [shift={(88,120)}, rotate=75, scale=9/10-\j/3, xscale=3/2] (-72,0) .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48) .. controls ++( 0:16) and ++( 90:12) .. (88, 0) .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48) .. controls ++(180: 8) and ++(270: 8) .. cycle; } \reflect[split=BlueGrey500 and BlueGrey700]{% \fill [fill color] (-56,-160) .. controls ++( 90:112) and ++(270: 128) .. (-112, 48) arc (180:0:112 and 96) .. controls ++(270: 128) and ++( 90:112) .. ( 56,-160) -- cycle; } \reflect[split=Grey500 and Grey600]{% \fill [fill color] (0,-164) ellipse [x radius=56, y radius=56]; } \reflect[split=Grey700 and Grey800]{% \fill [fill color] (0,-164) ellipse [x radius=48, y radius=40]; } \reflect[split=Grey500 and Grey600]{% \fill [fill color] (0,-144) ellipse [x radius=64, y radius=48]; \fill [fill color] (36, -128) ellipse [x radius=24, y radius=40]; \fill [BlueGrey900] (36, -128) ellipse [x radius=12, y radius=24]; } \fill [BlueGrey900] (-72, 40) ellipse [radius=20] ( 72, 40) ellipse [radius=20] (-8,160) to [bend left] ++( 16, 32) to [bend right] ++( 16,-48) to [bend left] ++( 16, 32) to [bend right] ++( 16,-48) to [bend right] ++(-32,-48) to [bend left] ++(-16, 32) to [bend right] ++(-32,-32) to [bend left] ++( 0, 32) to [bend right] ++(-32,-16) to [bend left] ++( 16, 40) to [bend right] ++(-16, 32) to [bend left] cycle; \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {donkey}; \end{tikzpicture} \end{document}
Make the mane of the donkey go upward a little more
A donkey with a high mane over its head
hard
update
animal
[ "@@ -59,2 +59,2 @@\n\n-to [bend left] ++( 16, 32) to [bend right] ++( 16,-48)\n-to [bend left] ++( 16, 32) to [bend right] ++( 16,-48)\n+to [bend left] ++( 16, 70) to [bend right] ++( 16,-75)\n+to [bend left] ++( 16, 42) to [bend right] ++( 16,-58)\n@@ -64 +64 @@\n\n-to [bend right] ++(-16, 32) to [bend left] cycle;\n+to [bend right] ++(-28, 62) to [bend left] cycle;" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndonkey/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\reflect[\n on left ={color alias=ears as BlueGrey500},\n on right={color alias=ears as BlueGrey700},\n outer ear/.style={fill=ears}, inner ear/.style={fill=BlueGrey900}\n]{\n \\foreach \\s [count=\\j from 0] in {outer ear, inner ear}\n \\fill [style=\\s]\n [shift={(88,120)}, rotate=75, scale=9/10-\\j/3, xscale=3/2]\n (-72,0)\n .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48)\n .. controls ++( 0:16) and ++( 90:12) .. (88, 0)\n .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48)\n .. controls ++(180: 8) and ++(270: 8) .. cycle;\n}\n\\reflect[split=BlueGrey500 and BlueGrey700]{\n \\fill [fill color] (-56,-160)\n .. controls ++( 90:112) and ++(270: 128) .. (-112, 48)\n arc (180:0:112 and 96)\n .. controls ++(270: 128) and ++( 90:112) .. ( 56,-160) -- cycle;\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-164) ellipse [x radius=56, y radius=56];\n}\n\\reflect[split=Grey700 and Grey800]{\n \\fill [fill color] (0,-164) ellipse [x radius=48, y radius=40];\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-144) ellipse [x radius=64, y radius=48];\n \\fill [fill color] (36, -128) ellipse [x radius=24, y radius=40];\n \\fill [BlueGrey900] (36, -128) ellipse [x radius=12, y radius=24];\n}\n\\fill [BlueGrey900]\n (-72, 40) ellipse [radius=20]\n ( 72, 40) ellipse [radius=20]\n (-8,160)\n to [bend left] ++( 16, §rangei(70,10)) to [bend right] ++( 16,§rangei(-75,10))\n to [bend left] ++( 16, §rangei(42,5)) to [bend right] ++( 16,§rangei(-58,10))\n to [bend right] ++(-32,-48) to [bend left] ++(-16, 32)\n to [bend right] ++(-32,-32) to [bend left] ++( 0, 32)\n to [bend right] ++(-32,-16) to [bend left] ++( 16, 40)\n to [bend right] ++(§rangei(-28,5), 62) to [bend left] cycle;\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {donkey};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndonkey/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\reflect[\n on left ={color alias=ears as BlueGrey500},\n on right={color alias=ears as BlueGrey700},\n outer ear/.style={fill=ears}, inner ear/.style={fill=BlueGrey900}\n]{\n \\foreach \\s [count=\\j from 0] in {outer ear, inner ear}\n \\fill [style=\\s]\n [shift={(88,120)}, rotate=75, scale=9/10-\\j/3, xscale=3/2]\n (-72,0)\n .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48)\n .. controls ++( 0:16) and ++( 90:12) .. (88, 0)\n .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48)\n .. controls ++(180: 8) and ++(270: 8) .. cycle;\n}\n\\reflect[split=BlueGrey500 and BlueGrey700]{\n \\fill [fill color] (-56,-160)\n .. controls ++( 90:112) and ++(270: 128) .. (-112, 48)\n arc (180:0:112 and 96)\n .. controls ++(270: 128) and ++( 90:112) .. ( 56,-160) -- cycle;\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-164) ellipse [x radius=56, y radius=56];\n}\n\\reflect[split=Grey700 and Grey800]{\n \\fill [fill color] (0,-164) ellipse [x radius=48, y radius=40];\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-144) ellipse [x radius=64, y radius=48];\n \\fill [fill color] (36, -128) ellipse [x radius=24, y radius=40];\n \\fill [BlueGrey900] (36, -128) ellipse [x radius=12, y radius=24];\n}\n\\fill [BlueGrey900]\n (-72, 40) ellipse [radius=20]\n ( 72, 40) ellipse [radius=20]\n (-8,160)\n to [bend left] ++( 16, 70) to [bend right] ++( 16,-75)\n to [bend left] ++( 16, 42) to [bend right] ++( 16,-58)\n to [bend right] ++(-32,-48) to [bend left] ++(-16, 32)\n to [bend right] ++(-32,-32) to [bend left] ++( 0, 32)\n to [bend right] ++(-32,-16) to [bend left] ++( 16, 40)\n to [bend right] ++(-28, 62) to [bend left] cycle;\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {donkey};\n\\end{tikzpicture}\n\\end{document}" ]
[ 1, 2 ]
donkey_small_ears
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ donkey/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \reflect[ on left ={color alias=ears as BlueGrey500}, on right={color alias=ears as BlueGrey700}, outer ear/.style={fill=ears}, inner ear/.style={fill=BlueGrey900} ]{ \foreach \s [count=\j from 0] in {outer ear, inner ear} \fill [style=\s] [shift={(88,120)}, rotate=75, scale=9/10-\j/3, xscale=3/2] (-72,0) .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48) .. controls ++( 0:16) and ++( 90:12) .. (88, 0) .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48) .. controls ++(180: 8) and ++(270: 8) .. cycle; } \reflect[split=BlueGrey500 and BlueGrey700]{ \fill [fill color] (-56,-160) .. controls ++( 90:112) and ++(270: 128) .. (-112, 48) arc (180:0:112 and 96) .. controls ++(270: 128) and ++( 90:112) .. ( 56,-160) -- cycle; } \reflect[split=Grey500 and Grey600]{ \fill [fill color] (0,-164) ellipse [x radius=56, y radius=56]; } \reflect[split=Grey700 and Grey800]{ \fill [fill color] (0,-164) ellipse [x radius=48, y radius=40]; } \reflect[split=Grey500 and Grey600]{ \fill [fill color] (0,-144) ellipse [x radius=64, y radius=48]; \fill [fill color] (36, -128) ellipse [x radius=24, y radius=40]; \fill [BlueGrey900] (36, -128) ellipse [x radius=12, y radius=24]; } \fill [BlueGrey900] (-72, 40) ellipse [radius=20] ( 72, 40) ellipse [radius=20] (-8,160) to [bend left] ++( 16, 32) to [bend right] ++( 16,-48) to [bend left] ++( 16, 32) to [bend right] ++( 16,-48) to [bend right] ++(-32,-48) to [bend left] ++(-16, 32) to [bend right] ++(-32,-32) to [bend left] ++( 0, 32) to [bend right] ++(-32,-16) to [bend left] ++( 16, 40) to [bend right] ++(-16, 32) to [bend left] cycle; \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {donkey}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ donkey/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \reflect[ on left ={color alias=ears as BlueGrey500}, on right={color alias=ears as BlueGrey700}, outer ear/.style={fill=ears}, inner ear/.style={fill=BlueGrey900} ]{ \foreach \s [count=\j from 0] in {outer ear, inner ear} \fill [style=\s] [shift={(88,120)}, rotate=75, scale=9/10-\j/3, xscale=3/2] (-72,0) .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48) .. controls ++( 0:16) and ++( 90:12) .. (88, 0) .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48) .. controls ++(180: 8) and ++(270: 8) .. cycle; } \reflect[split=BlueGrey500 and BlueGrey700]{% \fill [fill color] (-56,-160) .. controls ++( 90:112) and ++(270: 128) .. (-112, 48) arc (180:0:112 and 96) .. controls ++(270: 128) and ++( 90:112) .. ( 56,-160) -- cycle; } \reflect[split=Grey500 and Grey600]{% \fill [fill color] (0,-164) ellipse [x radius=56, y radius=56]; } \reflect[split=Grey700 and Grey800]{% \fill [fill color] (0,-164) ellipse [x radius=48, y radius=40]; } \reflect[split=Grey500 and Grey600]{% \fill [fill color] (0,-144) ellipse [x radius=64, y radius=48]; \fill [fill color] (36, -128) ellipse [x radius=24, y radius=40]; \fill [BlueGrey900] (36, -128) ellipse [x radius=12, y radius=24]; } \fill [BlueGrey900] (-72, 40) ellipse [radius=20] ( 72, 40) ellipse [radius=20] (-8,160) to [bend left] ++( 16, 32) to [bend right] ++( 16,-48) to [bend left] ++( 16, 32) to [bend right] ++( 16,-48) to [bend right] ++(-32,-48) to [bend left] ++(-16, 32) to [bend right] ++(-32,-32) to [bend left] ++( 0, 32) to [bend right] ++(-32,-16) to [bend left] ++( 16, 40) to [bend right] ++(-16, 32) to [bend left] cycle; \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {donkey}; \end{tikzpicture} \end{document}
Make the ears of the donkey smaller
A donkey with small ears
medium
update
animal
[ "@@ -31 +31 @@\n\n-[shift={(88,120)}, rotate=75, scale=9/10-\\j/3, xscale=3/2]\n+[shift={(88,80)}, rotate=75, scale=9/10-\\j/3, xscale=3/2]", "@@ -31 +31 @@\n\n-[shift={(88,120)}, rotate=75, scale=9/10-\\j/3, xscale=3/2]\n+[shift={(88,120)}, rotate=75, scale=0.65-\\j/3, xscale=1.4]" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndonkey/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\reflect[\n on left ={color alias=ears as BlueGrey500},\n on right={color alias=ears as BlueGrey700},\n outer ear/.style={fill=ears}, inner ear/.style={fill=BlueGrey900}\n]{\n \\foreach \\s [count=\\j from 0] in {outer ear, inner ear}\n \\fill [style=\\s]\n [shift={(88,§rangei(80,10))}, rotate=75, scale=9/10-\\j/3, xscale=3/2]\n (-72,0)\n .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48)\n .. controls ++( 0:16) and ++( 90:12) .. (88, 0)\n .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48)\n .. controls ++(180: 8) and ++(270: 8) .. cycle;\n}\n\\reflect[split=BlueGrey500 and BlueGrey700]{\n \\fill [fill color] (-56,-160)\n .. controls ++( 90:112) and ++(270: 128) .. (-112, 48)\n arc (180:0:112 and 96)\n .. controls ++(270: 128) and ++( 90:112) .. ( 56,-160) -- cycle;\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-164) ellipse [x radius=56, y radius=56];\n}\n\\reflect[split=Grey700 and Grey800]{\n \\fill [fill color] (0,-164) ellipse [x radius=48, y radius=40];\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-144) ellipse [x radius=64, y radius=48];\n \\fill [fill color] (36, -128) ellipse [x radius=24, y radius=40];\n \\fill [BlueGrey900] (36, -128) ellipse [x radius=12, y radius=24];\n}\n\\fill [BlueGrey900]\n (-72, 40) ellipse [radius=20]\n ( 72, 40) ellipse [radius=20]\n (-8,160)\n to [bend left] ++( 16, 32) to [bend right] ++( 16,-48)\n to [bend left] ++( 16, 32) to [bend right] ++( 16,-48)\n to [bend right] ++(-32,-48) to [bend left] ++(-16, 32)\n to [bend right] ++(-32,-32) to [bend left] ++( 0, 32)\n to [bend right] ++(-32,-16) to [bend left] ++( 16, 40)\n to [bend right] ++(-16, 32) to [bend left] cycle;\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {donkey};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndonkey/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\reflect[\n on left ={color alias=ears as BlueGrey500},\n on right={color alias=ears as BlueGrey700},\n outer ear/.style={fill=ears}, inner ear/.style={fill=BlueGrey900}\n]{\n \\foreach \\s [count=\\j from 0] in {outer ear, inner ear}\n \\fill [style=\\s]\n [shift={(88,120)}, rotate=75, scale=§rangei(0.65,0.1)-\\j/3, xscale=§rangei(1.4,0.25)]\n (-72,0)\n .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48)\n .. controls ++( 0:16) and ++( 90:12) .. (88, 0)\n .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48)\n .. controls ++(180: 8) and ++(270: 8) .. cycle;\n}\n\\reflect[split=BlueGrey500 and BlueGrey700]{\n \\fill [fill color] (-56,-160)\n .. controls ++( 90:112) and ++(270: 128) .. (-112, 48)\n arc (180:0:112 and 96)\n .. controls ++(270: 128) and ++( 90:112) .. ( 56,-160) -- cycle;\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-164) ellipse [x radius=56, y radius=56];\n}\n\\reflect[split=Grey700 and Grey800]{\n \\fill [fill color] (0,-164) ellipse [x radius=48, y radius=40];\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-144) ellipse [x radius=64, y radius=48];\n \\fill [fill color] (36, -128) ellipse [x radius=24, y radius=40];\n \\fill [BlueGrey900] (36, -128) ellipse [x radius=12, y radius=24];\n}\n\\fill [BlueGrey900]\n (-72, 40) ellipse [radius=20]\n ( 72, 40) ellipse [radius=20]\n (-8,160)\n to [bend left] ++( 16, 32) to [bend right] ++( 16,-48)\n to [bend left] ++( 16, 32) to [bend right] ++( 16,-48)\n to [bend right] ++(-32,-48) to [bend left] ++(-16, 32)\n to [bend right] ++(-32,-32) to [bend left] ++( 0, 32)\n to [bend right] ++(-32,-16) to [bend left] ++( 16, 40)\n to [bend right] ++(-16, 32) to [bend left] cycle;\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {donkey};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndonkey/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\reflect[\n on left ={color alias=ears as BlueGrey500},\n on right={color alias=ears as BlueGrey700},\n outer ear/.style={fill=ears}, inner ear/.style={fill=BlueGrey900}\n]{\n \\foreach \\s [count=\\j from 0] in {outer ear, inner ear}\n \\fill [style=\\s]\n [shift={(88,80)}, rotate=75, scale=9/10-\\j/3, xscale=3/2]\n (-72,0)\n .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48)\n .. controls ++( 0:16) and ++( 90:12) .. (88, 0)\n .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48)\n .. controls ++(180: 8) and ++(270: 8) .. cycle;\n}\n\\reflect[split=BlueGrey500 and BlueGrey700]{\n \\fill [fill color] (-56,-160)\n .. controls ++( 90:112) and ++(270: 128) .. (-112, 48)\n arc (180:0:112 and 96)\n .. controls ++(270: 128) and ++( 90:112) .. ( 56,-160) -- cycle;\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-164) ellipse [x radius=56, y radius=56];\n}\n\\reflect[split=Grey700 and Grey800]{\n \\fill [fill color] (0,-164) ellipse [x radius=48, y radius=40];\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-144) ellipse [x radius=64, y radius=48];\n \\fill [fill color] (36, -128) ellipse [x radius=24, y radius=40];\n \\fill [BlueGrey900] (36, -128) ellipse [x radius=12, y radius=24];\n}\n\\fill [BlueGrey900]\n (-72, 40) ellipse [radius=20]\n ( 72, 40) ellipse [radius=20]\n (-8,160)\n to [bend left] ++( 16, 32) to [bend right] ++( 16,-48)\n to [bend left] ++( 16, 32) to [bend right] ++( 16,-48)\n to [bend right] ++(-32,-48) to [bend left] ++(-16, 32)\n to [bend right] ++(-32,-32) to [bend left] ++( 0, 32)\n to [bend right] ++(-32,-16) to [bend left] ++( 16, 40)\n to [bend right] ++(-16, 32) to [bend left] cycle;\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {donkey};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndonkey/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\reflect[\n on left ={color alias=ears as BlueGrey500},\n on right={color alias=ears as BlueGrey700},\n outer ear/.style={fill=ears}, inner ear/.style={fill=BlueGrey900}\n]{\n \\foreach \\s [count=\\j from 0] in {outer ear, inner ear}\n \\fill [style=\\s]\n [shift={(88,120)}, rotate=75, scale=0.65-\\j/3, xscale=1.4]\n (-72,0)\n .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48)\n .. controls ++( 0:16) and ++( 90:12) .. (88, 0)\n .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48)\n .. controls ++(180: 8) and ++(270: 8) .. cycle;\n}\n\\reflect[split=BlueGrey500 and BlueGrey700]{\n \\fill [fill color] (-56,-160)\n .. controls ++( 90:112) and ++(270: 128) .. (-112, 48)\n arc (180:0:112 and 96)\n .. controls ++(270: 128) and ++( 90:112) .. ( 56,-160) -- cycle;\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-164) ellipse [x radius=56, y radius=56];\n}\n\\reflect[split=Grey700 and Grey800]{\n \\fill [fill color] (0,-164) ellipse [x radius=48, y radius=40];\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-144) ellipse [x radius=64, y radius=48];\n \\fill [fill color] (36, -128) ellipse [x radius=24, y radius=40];\n \\fill [BlueGrey900] (36, -128) ellipse [x radius=12, y radius=24];\n}\n\\fill [BlueGrey900]\n (-72, 40) ellipse [radius=20]\n ( 72, 40) ellipse [radius=20]\n (-8,160)\n to [bend left] ++( 16, 32) to [bend right] ++( 16,-48)\n to [bend left] ++( 16, 32) to [bend right] ++( 16,-48)\n to [bend right] ++(-32,-48) to [bend left] ++(-16, 32)\n to [bend right] ++(-32,-32) to [bend left] ++( 0, 32)\n to [bend right] ++(-32,-16) to [bend left] ++( 16, 40)\n to [bend right] ++(-16, 32) to [bend left] cycle;\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {donkey};\n\\end{tikzpicture}\n\\end{document}" ]
[ 3, 3 ]
donkey_white
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ donkey/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \reflect[ on left ={color alias=ears as BlueGrey500}, on right={color alias=ears as BlueGrey700}, outer ear/.style={fill=ears}, inner ear/.style={fill=BlueGrey900} ]{ \foreach \s [count=\j from 0] in {outer ear, inner ear} \fill [style=\s] [shift={(88,120)}, rotate=75, scale=9/10-\j/3, xscale=3/2] (-72,0) .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48) .. controls ++( 0:16) and ++( 90:12) .. (88, 0) .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48) .. controls ++(180: 8) and ++(270: 8) .. cycle; } \reflect[split=BlueGrey500 and BlueGrey700]{ \fill [fill color] (-56,-160) .. controls ++( 90:112) and ++(270: 128) .. (-112, 48) arc (180:0:112 and 96) .. controls ++(270: 128) and ++( 90:112) .. ( 56,-160) -- cycle; } \reflect[split=Grey500 and Grey600]{ \fill [fill color] (0,-164) ellipse [x radius=56, y radius=56]; } \reflect[split=Grey700 and Grey800]{ \fill [fill color] (0,-164) ellipse [x radius=48, y radius=40]; } \reflect[split=Grey500 and Grey600]{ \fill [fill color] (0,-144) ellipse [x radius=64, y radius=48]; \fill [fill color] (36, -128) ellipse [x radius=24, y radius=40]; \fill [BlueGrey900] (36, -128) ellipse [x radius=12, y radius=24]; } \fill [BlueGrey900] (-72, 40) ellipse [radius=20] ( 72, 40) ellipse [radius=20] (-8,160) to [bend left] ++( 16, 32) to [bend right] ++( 16,-48) to [bend left] ++( 16, 32) to [bend right] ++( 16,-48) to [bend right] ++(-32,-48) to [bend left] ++(-16, 32) to [bend right] ++(-32,-32) to [bend left] ++( 0, 32) to [bend right] ++(-32,-16) to [bend left] ++( 16, 40) to [bend right] ++(-16, 32) to [bend left] cycle; \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {donkey}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ donkey/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \reflect[ on left ={color alias=ears as BlueGrey500}, on right={color alias=ears as BlueGrey700}, outer ear/.style={fill=ears}, inner ear/.style={fill=BlueGrey900} ]{ \foreach \s [count=\j from 0] in {outer ear, inner ear} \fill [style=\s] [shift={(88,120)}, rotate=75, scale=9/10-\j/3, xscale=3/2] (-72,0) .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48) .. controls ++( 0:16) and ++( 90:12) .. (88, 0) .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48) .. controls ++(180: 8) and ++(270: 8) .. cycle; } \reflect[split=BlueGrey500 and BlueGrey700]{% \fill [fill color] (-56,-160) .. controls ++( 90:112) and ++(270: 128) .. (-112, 48) arc (180:0:112 and 96) .. controls ++(270: 128) and ++( 90:112) .. ( 56,-160) -- cycle; } \reflect[split=Grey500 and Grey600]{% \fill [fill color] (0,-164) ellipse [x radius=56, y radius=56]; } \reflect[split=Grey700 and Grey800]{% \fill [fill color] (0,-164) ellipse [x radius=48, y radius=40]; } \reflect[split=Grey500 and Grey600]{% \fill [fill color] (0,-144) ellipse [x radius=64, y radius=48]; \fill [fill color] (36, -128) ellipse [x radius=24, y radius=40]; \fill [BlueGrey900] (36, -128) ellipse [x radius=12, y radius=24]; } \fill [BlueGrey900] (-72, 40) ellipse [radius=20] ( 72, 40) ellipse [radius=20] (-8,160) to [bend left] ++( 16, 32) to [bend right] ++( 16,-48) to [bend left] ++( 16, 32) to [bend right] ++( 16,-48) to [bend right] ++(-32,-48) to [bend left] ++(-16, 32) to [bend right] ++(-32,-32) to [bend left] ++( 0, 32) to [bend right] ++(-32,-16) to [bend left] ++( 16, 40) to [bend right] ++(-16, 32) to [bend left] cycle; \end{scope}} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {donkey}; \end{tikzpicture} \end{document}
Make the donkey white
A white donkey
easy
update
animal
[ "@@ -25,2 +25,2 @@\n\n-on left ={color alias=ears as BlueGrey500},\n-on right={color alias=ears as BlueGrey700},\n+on left ={color alias=ears as White},\n+on right={color alias=ears as White},\n@@ -38 +38 @@\n\n-\\reflect[split=BlueGrey500 and BlueGrey700]{\n+\\reflect[split=White and White]{", "@@ -25,2 +25,2 @@\n\n-on left ={color alias=ears as BlueGrey500},\n-on right={color alias=ears as BlueGrey700},\n+on left ={color alias=ears as Grey200},\n+on right={color alias=ears as Grey300},\n@@ -38 +38 @@\n\n-\\reflect[split=BlueGrey500 and BlueGrey700]{\n+\\reflect[split=Grey200 and Grey300]{" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndonkey/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\reflect[\n on left ={color alias=ears as White},\n on right={color alias=ears as White},\n outer ear/.style={fill=ears}, inner ear/.style={fill=BlueGrey900}\n]{\n \\foreach \\s [count=\\j from 0] in {outer ear, inner ear}\n \\fill [style=\\s]\n [shift={(88,120)}, rotate=75, scale=9/10-\\j/3, xscale=3/2]\n (-72,0)\n .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48)\n .. controls ++( 0:16) and ++( 90:12) .. (88, 0)\n .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48)\n .. controls ++(180: 8) and ++(270: 8) .. cycle;\n}\n\\reflect[split=White and White]{\n \\fill [fill color] (-56,-160)\n .. controls ++( 90:112) and ++(270: 128) .. (-112, 48)\n arc (180:0:112 and 96)\n .. controls ++(270: 128) and ++( 90:112) .. ( 56,-160) -- cycle;\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-164) ellipse [x radius=56, y radius=56];\n}\n\\reflect[split=Grey700 and Grey800]{\n \\fill [fill color] (0,-164) ellipse [x radius=48, y radius=40];\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-144) ellipse [x radius=64, y radius=48];\n \\fill [fill color] (36, -128) ellipse [x radius=24, y radius=40];\n \\fill [BlueGrey900] (36, -128) ellipse [x radius=12, y radius=24];\n}\n\\fill [BlueGrey900]\n (-72, 40) ellipse [radius=20]\n ( 72, 40) ellipse [radius=20]\n (-8,160)\n to [bend left] ++( 16, 32) to [bend right] ++( 16,-48)\n to [bend left] ++( 16, 32) to [bend right] ++( 16,-48)\n to [bend right] ++(-32,-48) to [bend left] ++(-16, 32)\n to [bend right] ++(-32,-32) to [bend left] ++( 0, 32)\n to [bend right] ++(-32,-16) to [bend left] ++( 16, 40)\n to [bend right] ++(-16, 32) to [bend left] cycle;\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {donkey};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndonkey/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\reflect[\n on left ={color alias=ears as Grey§choice([100,200,300,400],200)},\n on right={color alias=ears as Grey§choice([100,200,300,400],300)},\n outer ear/.style={fill=ears}, inner ear/.style={fill=BlueGrey900}\n]{\n \\foreach \\s [count=\\j from 0] in {outer ear, inner ear}\n \\fill [style=\\s]\n [shift={(88,120)}, rotate=75, scale=9/10-\\j/3, xscale=3/2]\n (-72,0)\n .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48)\n .. controls ++( 0:16) and ++( 90:12) .. (88, 0)\n .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48)\n .. controls ++(180: 8) and ++(270: 8) .. cycle;\n}\n\\reflect[split=Grey§choice([100,200,300,400],200) and Grey§choice([100,200,300,400],300)]{\n \\fill [fill color] (-56,-160)\n .. controls ++( 90:112) and ++(270: 128) .. (-112, 48)\n arc (180:0:112 and 96)\n .. controls ++(270: 128) and ++( 90:112) .. ( 56,-160) -- cycle;\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-164) ellipse [x radius=56, y radius=56];\n}\n\\reflect[split=Grey700 and Grey800]{\n \\fill [fill color] (0,-164) ellipse [x radius=48, y radius=40];\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-144) ellipse [x radius=64, y radius=48];\n \\fill [fill color] (36, -128) ellipse [x radius=24, y radius=40];\n \\fill [BlueGrey900] (36, -128) ellipse [x radius=12, y radius=24];\n}\n\\fill [BlueGrey900]\n (-72, 40) ellipse [radius=20]\n ( 72, 40) ellipse [radius=20]\n (-8,160)\n to [bend left] ++( 16, 32) to [bend right] ++( 16,-48)\n to [bend left] ++( 16, 32) to [bend right] ++( 16,-48)\n to [bend right] ++(-32,-48) to [bend left] ++(-16, 32)\n to [bend right] ++(-32,-32) to [bend left] ++( 0, 32)\n to [bend right] ++(-32,-16) to [bend left] ++( 16, 40)\n to [bend right] ++(-16, 32) to [bend left] cycle;\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {donkey};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndonkey/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\reflect[\n on left ={color alias=ears as White},\n on right={color alias=ears as White},\n outer ear/.style={fill=ears}, inner ear/.style={fill=BlueGrey900}\n]{\n \\foreach \\s [count=\\j from 0] in {outer ear, inner ear}\n \\fill [style=\\s]\n [shift={(88,120)}, rotate=75, scale=9/10-\\j/3, xscale=3/2]\n (-72,0)\n .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48)\n .. controls ++( 0:16) and ++( 90:12) .. (88, 0)\n .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48)\n .. controls ++(180: 8) and ++(270: 8) .. cycle;\n}\n\\reflect[split=White and White]{\n \\fill [fill color] (-56,-160)\n .. controls ++( 90:112) and ++(270: 128) .. (-112, 48)\n arc (180:0:112 and 96)\n .. controls ++(270: 128) and ++( 90:112) .. ( 56,-160) -- cycle;\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-164) ellipse [x radius=56, y radius=56];\n}\n\\reflect[split=Grey700 and Grey800]{\n \\fill [fill color] (0,-164) ellipse [x radius=48, y radius=40];\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-144) ellipse [x radius=64, y radius=48];\n \\fill [fill color] (36, -128) ellipse [x radius=24, y radius=40];\n \\fill [BlueGrey900] (36, -128) ellipse [x radius=12, y radius=24];\n}\n\\fill [BlueGrey900]\n (-72, 40) ellipse [radius=20]\n ( 72, 40) ellipse [radius=20]\n (-8,160)\n to [bend left] ++( 16, 32) to [bend right] ++( 16,-48)\n to [bend left] ++( 16, 32) to [bend right] ++( 16,-48)\n to [bend right] ++(-32,-48) to [bend left] ++(-16, 32)\n to [bend right] ++(-32,-32) to [bend left] ++( 0, 32)\n to [bend right] ++(-32,-16) to [bend left] ++( 16, 40)\n to [bend right] ++(-16, 32) to [bend left] cycle;\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {donkey};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\ndonkey/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\reflect[\n on left ={color alias=ears as Grey200},\n on right={color alias=ears as Grey300},\n outer ear/.style={fill=ears}, inner ear/.style={fill=BlueGrey900}\n]{\n \\foreach \\s [count=\\j from 0] in {outer ear, inner ear}\n \\fill [style=\\s]\n [shift={(88,120)}, rotate=75, scale=9/10-\\j/3, xscale=3/2]\n (-72,0)\n .. controls ++( 90: 8) and ++(180:16) .. ( 0, 48)\n .. controls ++( 0:16) and ++( 90:12) .. (88, 0)\n .. controls ++(270:12) and ++( 0: 8) .. ( 0,-48)\n .. controls ++(180: 8) and ++(270: 8) .. cycle;\n}\n\\reflect[split=Grey200 and Grey300]{\n \\fill [fill color] (-56,-160)\n .. controls ++( 90:112) and ++(270: 128) .. (-112, 48)\n arc (180:0:112 and 96)\n .. controls ++(270: 128) and ++( 90:112) .. ( 56,-160) -- cycle;\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-164) ellipse [x radius=56, y radius=56];\n}\n\\reflect[split=Grey700 and Grey800]{\n \\fill [fill color] (0,-164) ellipse [x radius=48, y radius=40];\n}\n\\reflect[split=Grey500 and Grey600]{\n \\fill [fill color] (0,-144) ellipse [x radius=64, y radius=48];\n \\fill [fill color] (36, -128) ellipse [x radius=24, y radius=40];\n \\fill [BlueGrey900] (36, -128) ellipse [x radius=12, y radius=24];\n}\n\\fill [BlueGrey900]\n (-72, 40) ellipse [radius=20]\n ( 72, 40) ellipse [radius=20]\n (-8,160)\n to [bend left] ++( 16, 32) to [bend right] ++( 16,-48)\n to [bend left] ++( 16, 32) to [bend right] ++( 16,-48)\n to [bend right] ++(-32,-48) to [bend left] ++(-16, 32)\n to [bend right] ++(-32,-32) to [bend left] ++( 0, 32)\n to [bend right] ++(-32,-16) to [bend left] ++( 16, 40)\n to [bend right] ++(-16, 32) to [bend left] cycle;\n\\end{scope}}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {donkey};\n\\end{tikzpicture}\n\\end{document}" ]
[ 2 ]
duck_long_feet
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ duck/.pic={ \tikzset{x=3cm/100,y=3cm/100, shift={(-50,-50)}} \fill [Amber800] (58,28) .. controls (56,28) and (55,27) .. (55,26) .. controls (55,25) and (56,16) .. (55,15) .. controls (54,14) and (54,12) .. (55,11) .. controls (56,10) and (66, 7) .. (68, 7) .. controls (70, 7) and (75,15) .. (73,15) .. controls (71,15) and (62,13) .. (60,15) .. controls (58,17) and (60,25) .. (60,26) .. controls (60,27) and (59,28) .. (58,28) -- cycle; \fill [BlueGrey900] (1,57) .. controls ( 0,51) and ( 4,44) .. (10,42) .. controls (16,40) and (23,40) .. (24,47) -- cycle; \begin{scope} \clip [preaction={fill=LightGreen}] (74,96) .. controls (66,96) and (62,92) .. (60,88) .. controls (58,84) and (58,76) .. (61,68) -- (76,68) .. controls (72,72) and (74,74) .. (75,75) .. controls (82,75) and (88,76) .. (88,84) .. controls (88,92) and (82,96) .. (74,96) -- cycle; \fill [Grey100] (57,68) rectangle +(20,4); \end{scope} \fill [BlueGrey50] (14,48) .. controls (14,34) and (32,21) .. (53,21) .. controls (55,21) and (57,21) .. (61,22) .. controls (81,27) and (92,36) .. (92,48) -- cycle; \fill [Brown500] (61,68) .. controls (65,52) and (68,40) .. (61,22) .. controls (84,26) and (92,36) .. (92,48) .. controls (92,60) and (82,65) .. (76,68) -- cycle; \fill [BlueGrey400] (56,64) .. controls (45,64) and (40,60) .. (32,56) .. controls (24,52) and ( 8,52) .. ( 8,48) .. controls (8, 44) and (24,36) .. (40,36) .. controls (56,36) and (68,44) .. (72,48) .. controls (76,52) and (72,56) .. (68,60) .. controls (64,64) and (60,64) .. (56,64) -- cycle; \fill [Amber500] (88,84) .. controls (86,84) and ( 87,82) .. (86,81) .. controls (85,80) and ( 80,79) .. (83,76) .. controls (86,73) and ( 95,71) .. (97,71) .. controls (99,71) and (100,72) .. (99,73) .. controls (98,74) and ( 92,77) .. (91,80) .. controls (90,83) and ( 90,84) .. (88,84) -- cycle; \fill (78,87) .. controls (77,85) and (80,82) .. (83,84) .. controls (83,87) and (80,88) .. (78,87) -- cycle; \fill [Amber700] (50,25) .. controls (48,25) and (47,24) .. (47,23) .. controls (47,22) and (48,13) .. (47,12) .. controls (46,11) and (46, 9) .. (47, 8) .. controls (48, 7) and (58, 4) .. (60, 4) .. controls (62, 4) and (67,12) .. (65,12) .. controls (63,12) and (54,10) .. (52,12) .. controls (50,14) and (52,22) .. (52,23) .. controls (52,24) and (51,25) .. (50,25) -- cycle;} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {duck}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ duck/.pic={ \tikzset{x=3cm/100,y=3cm/100, shift={(-50,-50)}} \fill [Amber800] (58,28) .. controls (56,28) and (55,27) .. (55,26) .. controls (55,25) and (56,16) .. (55,15) .. controls (54,14) and (54,12) .. (55,11) .. controls (56,10) and (66, 7) .. (68, 7) .. controls (70, 7) and (75,15) .. (73,15) .. controls (71,15) and (62,13) .. (60,15) .. controls (58,17) and (60,25) .. (60,26) .. controls (60,27) and (59,28) .. (58,28) -- cycle; \fill [BlueGrey900] (1,57) .. controls ( 0,51) and ( 4,44) .. (10,42) .. controls (16,40) and (23,40) .. (24,47) -- cycle; \begin{scope} \clip [preaction={fill=LightGreen}] (74,96) .. controls (66,96) and (62,92) .. (60,88) .. controls (58,84) and (58,76) .. (61,68) -- (76,68) .. controls (72,72) and (74,74) .. (75,75) .. controls (82,75) and (88,76) .. (88,84) .. controls (88,92) and (82,96) .. (74,96) -- cycle; \fill [Grey100] (57,68) rectangle +(20,4); \end{scope} \fill [BlueGrey50] (14,48) .. controls (14,34) and (32,21) .. (53,21) .. controls (55,21) and (57,21) .. (61,22) .. controls (81,27) and (92,36) .. (92,48) -- cycle; \fill [Brown500] (61,68) .. controls (65,52) and (68,40) .. (61,22) .. controls (84,26) and (92,36) .. (92,48) .. controls (92,60) and (82,65) .. (76,68) -- cycle; \fill [BlueGrey400] (56,64) .. controls (45,64) and (40,60) .. (32,56) .. controls (24,52) and ( 8,52) .. ( 8,48) .. controls (8, 44) and (24,36) .. (40,36) .. controls (56,36) and (68,44) .. (72,48) .. controls (76,52) and (72,56) .. (68,60) .. controls (64,64) and (60,64) .. (56,64) -- cycle; \fill [Amber500] (88,84) .. controls (86,84) and ( 87,82) .. (86,81) .. controls (85,80) and ( 80,79) .. (83,76) .. controls (86,73) and ( 95,71) .. (97,71) .. controls (99,71) and (100,72) .. (99,73) .. controls (98,74) and ( 92,77) .. (91,80) .. controls (90,83) and ( 90,84) .. (88,84) -- cycle; \fill (78,87) .. controls (77,85) and (80,82) .. (83,84) .. controls (83,87) and (80,88) .. (78,87) -- cycle; \fill [Amber700] (50,25) .. controls (48,25) and (47,24) .. (47,23) .. controls (47,22) and (48,13) .. (47,12) .. controls (46,11) and (46, 9) .. (47, 8) .. controls (48, 7) and (58, 4) .. (60, 4) .. controls (62, 4) and (67,12) .. (65,12) .. controls (63,12) and (54,10) .. (52,12) .. controls (50,14) and (52,22) .. (52,23) .. controls (52,24) and (51,25) .. (50,25) -- cycle;} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {duck}; \end{tikzpicture} \end{document}
Make the feet fo the duck longer
A duck with long yellow feet
medium
update
animal
[ "@@ -28,2 +28,2 @@\n\n-.. controls (56,10) and (66, 7) .. (68, 7)\n-.. controls (70, 7) and (75,15) .. (73,15)\n+.. controls (66,10) and (76, 7) .. (78, 7)\n+.. controls (80, 7) and (85,15) .. (83,15)\n@@ -84,2 +84,2 @@\n\n-.. controls (48, 7) and (58, 4) .. (60, 4)\n-.. controls (62, 4) and (67,12) .. (65,12)\n+.. controls (58, 7) and (68, 4) .. (70, 4)\n+.. controls (72, 4) and (77,12) .. (75,12)" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nduck/.pic={\n\\tikzset{x=3cm/100,y=3cm/100, shift={(-50,-50)}}\n\\fill [Amber800] (58,28)\n .. controls (56,28) and (55,27) .. (55,26)\n .. controls (55,25) and (56,16) .. (55,15)\n .. controls (54,14) and (54,12) .. (55,11)\n .. controls (§rangei(66,5),10) and (§rangei(76,5), 7) .. (§rangei(78,5), 7)\n .. controls (§rangei(80,5), 7) and (§rangei(85,5),15) .. (§rangei(83,5),15)\n .. controls (71,15) and (62,13) .. (60,15)\n .. controls (58,17) and (60,25) .. (60,26)\n .. controls (60,27) and (59,28) .. (58,28)\n -- cycle;\n\\fill [BlueGrey900] (1,57)\n .. controls ( 0,51) and ( 4,44) .. (10,42)\n .. controls (16,40) and (23,40) .. (24,47)\n -- cycle;\n\\begin{scope}\n\\clip [preaction={fill=LightGreen}] (74,96)\n .. controls (66,96) and (62,92) .. (60,88)\n .. controls (58,84) and (58,76) .. (61,68)\n -- (76,68)\n .. controls (72,72) and (74,74) .. (75,75)\n .. controls (82,75) and (88,76) .. (88,84)\n .. controls (88,92) and (82,96) .. (74,96)\n -- cycle;\n\\fill [Grey100] (57,68) rectangle +(20,4);\n\\end{scope}\n\\fill [BlueGrey50]\n (14,48)\n .. controls (14,34) and (32,21) .. (53,21)\n .. controls (55,21) and (57,21) .. (61,22)\n .. controls (81,27) and (92,36) .. (92,48)\n -- cycle;\n\\fill [Brown500] (61,68)\n .. controls (65,52) and (68,40) .. (61,22)\n .. controls (84,26) and (92,36) .. (92,48)\n .. controls (92,60) and (82,65) .. (76,68)\n -- cycle;\n\\fill [BlueGrey400] (56,64)\n .. controls (45,64) and (40,60) .. (32,56)\n .. controls (24,52) and ( 8,52) .. ( 8,48)\n .. controls (8, 44) and (24,36) .. (40,36)\n .. controls (56,36) and (68,44) .. (72,48)\n .. controls (76,52) and (72,56) .. (68,60)\n .. controls (64,64) and (60,64) .. (56,64)\n -- cycle;\n\\fill [Amber500] (88,84)\n .. controls (86,84) and ( 87,82) .. (86,81)\n .. controls (85,80) and ( 80,79) .. (83,76)\n .. controls (86,73) and ( 95,71) .. (97,71)\n .. controls (99,71) and (100,72) .. (99,73)\n .. controls (98,74) and ( 92,77) .. (91,80)\n .. controls (90,83) and ( 90,84) .. (88,84)\n -- cycle;\n\\fill (78,87)\n .. controls (77,85) and (80,82) .. (83,84)\n .. controls (83,87) and (80,88) .. (78,87)\n -- cycle;\n\\fill [Amber700] (50,25)\n .. controls (48,25) and (47,24) .. (47,23)\n .. controls (47,22) and (48,13) .. (47,12)\n .. controls (46,11) and (46, 9) .. (47, 8)\n .. controls (§rangei(58,5), 7) and (§rangei(68,5), 4) .. (§rangei(70,5), 4)\n .. controls (§rangei(72,5), 4) and (§rangei(77,5),12) .. (§rangei(75,5),12)\n .. controls (63,12) and (54,10) .. (52,12)\n .. controls (50,14) and (52,22) .. (52,23)\n .. controls (52,24) and (51,25) .. (50,25)\n -- cycle;}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {duck};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nduck/.pic={\n\\tikzset{x=3cm/100,y=3cm/100, shift={(-50,-50)}}\n\\fill [Amber800] (58,28)\n .. controls (56,28) and (55,27) .. (55,26)\n .. controls (55,25) and (56,16) .. (55,15)\n .. controls (54,14) and (54,12) .. (55,11)\n .. controls (66,10) and (76, 7) .. (78, 7)\n .. controls (80, 7) and (85,15) .. (83,15)\n .. controls (71,15) and (62,13) .. (60,15)\n .. controls (58,17) and (60,25) .. (60,26)\n .. controls (60,27) and (59,28) .. (58,28)\n -- cycle;\n\\fill [BlueGrey900] (1,57)\n .. controls ( 0,51) and ( 4,44) .. (10,42)\n .. controls (16,40) and (23,40) .. (24,47)\n -- cycle;\n\\begin{scope}\n\\clip [preaction={fill=LightGreen}] (74,96)\n .. controls (66,96) and (62,92) .. (60,88)\n .. controls (58,84) and (58,76) .. (61,68)\n -- (76,68)\n .. controls (72,72) and (74,74) .. (75,75)\n .. controls (82,75) and (88,76) .. (88,84)\n .. controls (88,92) and (82,96) .. (74,96)\n -- cycle;\n\\fill [Grey100] (57,68) rectangle +(20,4);\n\\end{scope}\n\\fill [BlueGrey50]\n (14,48)\n .. controls (14,34) and (32,21) .. (53,21)\n .. controls (55,21) and (57,21) .. (61,22)\n .. controls (81,27) and (92,36) .. (92,48)\n -- cycle;\n\\fill [Brown500] (61,68)\n .. controls (65,52) and (68,40) .. (61,22)\n .. controls (84,26) and (92,36) .. (92,48)\n .. controls (92,60) and (82,65) .. (76,68)\n -- cycle;\n\\fill [BlueGrey400] (56,64)\n .. controls (45,64) and (40,60) .. (32,56)\n .. controls (24,52) and ( 8,52) .. ( 8,48)\n .. controls (8, 44) and (24,36) .. (40,36)\n .. controls (56,36) and (68,44) .. (72,48)\n .. controls (76,52) and (72,56) .. (68,60)\n .. controls (64,64) and (60,64) .. (56,64)\n -- cycle;\n\\fill [Amber500] (88,84)\n .. controls (86,84) and ( 87,82) .. (86,81)\n .. controls (85,80) and ( 80,79) .. (83,76)\n .. controls (86,73) and ( 95,71) .. (97,71)\n .. controls (99,71) and (100,72) .. (99,73)\n .. controls (98,74) and ( 92,77) .. (91,80)\n .. controls (90,83) and ( 90,84) .. (88,84)\n -- cycle;\n\\fill (78,87)\n .. controls (77,85) and (80,82) .. (83,84)\n .. controls (83,87) and (80,88) .. (78,87)\n -- cycle;\n\\fill [Amber700] (50,25)\n .. controls (48,25) and (47,24) .. (47,23)\n .. controls (47,22) and (48,13) .. (47,12)\n .. controls (46,11) and (46, 9) .. (47, 8)\n .. controls (58, 7) and (68, 4) .. (70, 4)\n .. controls (72, 4) and (77,12) .. (75,12)\n .. controls (63,12) and (54,10) .. (52,12)\n .. controls (50,14) and (52,22) .. (52,23)\n .. controls (52,24) and (51,25) .. (50,25)\n -- cycle;}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {duck};\n\\end{tikzpicture}\n\\end{document}" ]
[ 6 ]
duck_no_tail
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ duck/.pic={ \tikzset{x=3cm/100,y=3cm/100, shift={(-50,-50)}} \fill [Amber800] (58,28) .. controls (56,28) and (55,27) .. (55,26) .. controls (55,25) and (56,16) .. (55,15) .. controls (54,14) and (54,12) .. (55,11) .. controls (56,10) and (66, 7) .. (68, 7) .. controls (70, 7) and (75,15) .. (73,15) .. controls (71,15) and (62,13) .. (60,15) .. controls (58,17) and (60,25) .. (60,26) .. controls (60,27) and (59,28) .. (58,28) -- cycle; \fill [BlueGrey900] (1,57) .. controls ( 0,51) and ( 4,44) .. (10,42) .. controls (16,40) and (23,40) .. (24,47) -- cycle; \begin{scope} \clip [preaction={fill=LightGreen}] (74,96) .. controls (66,96) and (62,92) .. (60,88) .. controls (58,84) and (58,76) .. (61,68) -- (76,68) .. controls (72,72) and (74,74) .. (75,75) .. controls (82,75) and (88,76) .. (88,84) .. controls (88,92) and (82,96) .. (74,96) -- cycle; \fill [Grey100] (57,68) rectangle +(20,4); \end{scope} \fill [BlueGrey50] (14,48) .. controls (14,34) and (32,21) .. (53,21) .. controls (55,21) and (57,21) .. (61,22) .. controls (81,27) and (92,36) .. (92,48) -- cycle; \fill [Brown500] (61,68) .. controls (65,52) and (68,40) .. (61,22) .. controls (84,26) and (92,36) .. (92,48) .. controls (92,60) and (82,65) .. (76,68) -- cycle; \fill [BlueGrey400] (56,64) .. controls (45,64) and (40,60) .. (32,56) .. controls (24,52) and ( 8,52) .. ( 8,48) .. controls (8, 44) and (24,36) .. (40,36) .. controls (56,36) and (68,44) .. (72,48) .. controls (76,52) and (72,56) .. (68,60) .. controls (64,64) and (60,64) .. (56,64) -- cycle; \fill [Amber500] (88,84) .. controls (86,84) and ( 87,82) .. (86,81) .. controls (85,80) and ( 80,79) .. (83,76) .. controls (86,73) and ( 95,71) .. (97,71) .. controls (99,71) and (100,72) .. (99,73) .. controls (98,74) and ( 92,77) .. (91,80) .. controls (90,83) and ( 90,84) .. (88,84) -- cycle; \fill (78,87) .. controls (77,85) and (80,82) .. (83,84) .. controls (83,87) and (80,88) .. (78,87) -- cycle; \fill [Amber700] (50,25) .. controls (48,25) and (47,24) .. (47,23) .. controls (47,22) and (48,13) .. (47,12) .. controls (46,11) and (46, 9) .. (47, 8) .. controls (48, 7) and (58, 4) .. (60, 4) .. controls (62, 4) and (67,12) .. (65,12) .. controls (63,12) and (54,10) .. (52,12) .. controls (50,14) and (52,22) .. (52,23) .. controls (52,24) and (51,25) .. (50,25) -- cycle;} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {duck}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ duck/.pic={ \tikzset{x=3cm/100,y=3cm/100, shift={(-50,-50)}} \fill [Amber800] (58,28) .. controls (56,28) and (55,27) .. (55,26) .. controls (55,25) and (56,16) .. (55,15) .. controls (54,14) and (54,12) .. (55,11) .. controls (56,10) and (66, 7) .. (68, 7) .. controls (70, 7) and (75,15) .. (73,15) .. controls (71,15) and (62,13) .. (60,15) .. controls (58,17) and (60,25) .. (60,26) .. controls (60,27) and (59,28) .. (58,28) -- cycle; \fill [BlueGrey900] (1,57) .. controls ( 0,51) and ( 4,44) .. (10,42) .. controls (16,40) and (23,40) .. (24,47) -- cycle; \begin{scope} \clip [preaction={fill=LightGreen}] (74,96) .. controls (66,96) and (62,92) .. (60,88) .. controls (58,84) and (58,76) .. (61,68) -- (76,68) .. controls (72,72) and (74,74) .. (75,75) .. controls (82,75) and (88,76) .. (88,84) .. controls (88,92) and (82,96) .. (74,96) -- cycle; \fill [Grey100] (57,68) rectangle +(20,4); \end{scope} \fill [BlueGrey50] (14,48) .. controls (14,34) and (32,21) .. (53,21) .. controls (55,21) and (57,21) .. (61,22) .. controls (81,27) and (92,36) .. (92,48) -- cycle; \fill [Brown500] (61,68) .. controls (65,52) and (68,40) .. (61,22) .. controls (84,26) and (92,36) .. (92,48) .. controls (92,60) and (82,65) .. (76,68) -- cycle; \fill [BlueGrey400] (56,64) .. controls (45,64) and (40,60) .. (32,56) .. controls (24,52) and ( 8,52) .. ( 8,48) .. controls (8, 44) and (24,36) .. (40,36) .. controls (56,36) and (68,44) .. (72,48) .. controls (76,52) and (72,56) .. (68,60) .. controls (64,64) and (60,64) .. (56,64) -- cycle; \fill [Amber500] (88,84) .. controls (86,84) and ( 87,82) .. (86,81) .. controls (85,80) and ( 80,79) .. (83,76) .. controls (86,73) and ( 95,71) .. (97,71) .. controls (99,71) and (100,72) .. (99,73) .. controls (98,74) and ( 92,77) .. (91,80) .. controls (90,83) and ( 90,84) .. (88,84) -- cycle; \fill (78,87) .. controls (77,85) and (80,82) .. (83,84) .. controls (83,87) and (80,88) .. (78,87) -- cycle; \fill [Amber700] (50,25) .. controls (48,25) and (47,24) .. (47,23) .. controls (47,22) and (48,13) .. (47,12) .. controls (46,11) and (46, 9) .. (47, 8) .. controls (48, 7) and (58, 4) .. (60, 4) .. controls (62, 4) and (67,12) .. (65,12) .. controls (63,12) and (54,10) .. (52,12) .. controls (50,14) and (52,22) .. (52,23) .. controls (52,24) and (51,25) .. (50,25) -- cycle;} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {duck}; \end{tikzpicture} \end{document}
Remove the black tail of the duck
A duck without a tail
easy
remove
animal
[ "@@ -33,4 +32,0 @@\n\n--- cycle;\n-\\fill [BlueGrey900] (1,57)\n-.. controls ( 0,51) and ( 4,44) .. (10,42)\n-.. controls (16,40) and (23,40) .. (24,47)" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nduck/.pic={\n\\tikzset{x=3cm/100,y=3cm/100, shift={(-50,-50)}}\n\\fill [Amber800] (58,28)\n .. controls (56,28) and (55,27) .. (55,26)\n .. controls (55,25) and (56,16) .. (55,15)\n .. controls (54,14) and (54,12) .. (55,11)\n .. controls (56,10) and (66, 7) .. (68, 7)\n .. controls (70, 7) and (75,15) .. (73,15)\n .. controls (71,15) and (62,13) .. (60,15)\n .. controls (58,17) and (60,25) .. (60,26)\n .. controls (60,27) and (59,28) .. (58,28)\n -- cycle;\n\\begin{scope}\n\\clip [preaction={fill=LightGreen}] (74,96)\n .. controls (66,96) and (62,92) .. (60,88)\n .. controls (58,84) and (58,76) .. (61,68)\n -- (76,68)\n .. controls (72,72) and (74,74) .. (75,75)\n .. controls (82,75) and (88,76) .. (88,84)\n .. controls (88,92) and (82,96) .. (74,96)\n -- cycle;\n\\fill [Grey100] (57,68) rectangle +(20,4);\n\\end{scope}\n\\fill [BlueGrey50]\n (14,48)\n .. controls (14,34) and (32,21) .. (53,21)\n .. controls (55,21) and (57,21) .. (61,22)\n .. controls (81,27) and (92,36) .. (92,48)\n -- cycle;\n\\fill [Brown500] (61,68)\n .. controls (65,52) and (68,40) .. (61,22)\n .. controls (84,26) and (92,36) .. (92,48)\n .. controls (92,60) and (82,65) .. (76,68)\n -- cycle;\n\\fill [BlueGrey400] (56,64)\n .. controls (45,64) and (40,60) .. (32,56)\n .. controls (24,52) and ( 8,52) .. ( 8,48)\n .. controls (8, 44) and (24,36) .. (40,36)\n .. controls (56,36) and (68,44) .. (72,48)\n .. controls (76,52) and (72,56) .. (68,60)\n .. controls (64,64) and (60,64) .. (56,64)\n -- cycle;\n\\fill [Amber500] (88,84)\n .. controls (86,84) and ( 87,82) .. (86,81)\n .. controls (85,80) and ( 80,79) .. (83,76)\n .. controls (86,73) and ( 95,71) .. (97,71)\n .. controls (99,71) and (100,72) .. (99,73)\n .. controls (98,74) and ( 92,77) .. (91,80)\n .. controls (90,83) and ( 90,84) .. (88,84)\n -- cycle;\n\\fill (78,87)\n .. controls (77,85) and (80,82) .. (83,84)\n .. controls (83,87) and (80,88) .. (78,87)\n -- cycle;\n\\fill [Amber700] (50,25)\n .. controls (48,25) and (47,24) .. (47,23)\n .. controls (47,22) and (48,13) .. (47,12)\n .. controls (46,11) and (46, 9) .. (47, 8)\n .. controls (48, 7) and (58, 4) .. (60, 4)\n .. controls (62, 4) and (67,12) .. (65,12)\n .. controls (63,12) and (54,10) .. (52,12)\n .. controls (50,14) and (52,22) .. (52,23)\n .. controls (52,24) and (51,25) .. (50,25)\n -- cycle;}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {duck};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nduck/.pic={\n\\tikzset{x=3cm/100,y=3cm/100, shift={(-50,-50)}}\n\\fill [Amber800] (58,28)\n .. controls (56,28) and (55,27) .. (55,26)\n .. controls (55,25) and (56,16) .. (55,15)\n .. controls (54,14) and (54,12) .. (55,11)\n .. controls (56,10) and (66, 7) .. (68, 7)\n .. controls (70, 7) and (75,15) .. (73,15)\n .. controls (71,15) and (62,13) .. (60,15)\n .. controls (58,17) and (60,25) .. (60,26)\n .. controls (60,27) and (59,28) .. (58,28)\n -- cycle;\n\\begin{scope}\n\\clip [preaction={fill=LightGreen}] (74,96)\n .. controls (66,96) and (62,92) .. (60,88)\n .. controls (58,84) and (58,76) .. (61,68)\n -- (76,68)\n .. controls (72,72) and (74,74) .. (75,75)\n .. controls (82,75) and (88,76) .. (88,84)\n .. controls (88,92) and (82,96) .. (74,96)\n -- cycle;\n\\fill [Grey100] (57,68) rectangle +(20,4);\n\\end{scope}\n\\fill [BlueGrey50]\n (14,48)\n .. controls (14,34) and (32,21) .. (53,21)\n .. controls (55,21) and (57,21) .. (61,22)\n .. controls (81,27) and (92,36) .. (92,48)\n -- cycle;\n\\fill [Brown500] (61,68)\n .. controls (65,52) and (68,40) .. (61,22)\n .. controls (84,26) and (92,36) .. (92,48)\n .. controls (92,60) and (82,65) .. (76,68)\n -- cycle;\n\\fill [BlueGrey400] (56,64)\n .. controls (45,64) and (40,60) .. (32,56)\n .. controls (24,52) and ( 8,52) .. ( 8,48)\n .. controls (8, 44) and (24,36) .. (40,36)\n .. controls (56,36) and (68,44) .. (72,48)\n .. controls (76,52) and (72,56) .. (68,60)\n .. controls (64,64) and (60,64) .. (56,64)\n -- cycle;\n\\fill [Amber500] (88,84)\n .. controls (86,84) and ( 87,82) .. (86,81)\n .. controls (85,80) and ( 80,79) .. (83,76)\n .. controls (86,73) and ( 95,71) .. (97,71)\n .. controls (99,71) and (100,72) .. (99,73)\n .. controls (98,74) and ( 92,77) .. (91,80)\n .. controls (90,83) and ( 90,84) .. (88,84)\n -- cycle;\n\\fill (78,87)\n .. controls (77,85) and (80,82) .. (83,84)\n .. controls (83,87) and (80,88) .. (78,87)\n -- cycle;\n\\fill [Amber700] (50,25)\n .. controls (48,25) and (47,24) .. (47,23)\n .. controls (47,22) and (48,13) .. (47,12)\n .. controls (46,11) and (46, 9) .. (47, 8)\n .. controls (48, 7) and (58, 4) .. (60, 4)\n .. controls (62, 4) and (67,12) .. (65,12)\n .. controls (63,12) and (54,10) .. (52,12)\n .. controls (50,14) and (52,22) .. (52,23)\n .. controls (52,24) and (51,25) .. (50,25)\n -- cycle;}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {duck};\n\\end{tikzpicture}\n\\end{document}" ]
[ 6 ]
duck_opened_wings
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ duck/.pic={ \tikzset{x=3cm/100,y=3cm/100, shift={(-50,-50)}} \fill [Amber800] (58,28) .. controls (56,28) and (55,27) .. (55,26) .. controls (55,25) and (56,16) .. (55,15) .. controls (54,14) and (54,12) .. (55,11) .. controls (56,10) and (66, 7) .. (68, 7) .. controls (70, 7) and (75,15) .. (73,15) .. controls (71,15) and (62,13) .. (60,15) .. controls (58,17) and (60,25) .. (60,26) .. controls (60,27) and (59,28) .. (58,28) -- cycle; \fill [BlueGrey900] (1,57) .. controls ( 0,51) and ( 4,44) .. (10,42) .. controls (16,40) and (23,40) .. (24,47) -- cycle; \begin{scope} \clip [preaction={fill=LightGreen}] (74,96) .. controls (66,96) and (62,92) .. (60,88) .. controls (58,84) and (58,76) .. (61,68) -- (76,68) .. controls (72,72) and (74,74) .. (75,75) .. controls (82,75) and (88,76) .. (88,84) .. controls (88,92) and (82,96) .. (74,96) -- cycle; \fill [Grey100] (57,68) rectangle +(20,4); \end{scope} \fill [BlueGrey50] (14,48) .. controls (14,34) and (32,21) .. (53,21) .. controls (55,21) and (57,21) .. (61,22) .. controls (81,27) and (92,36) .. (92,48) -- cycle; \fill [Brown500] (61,68) .. controls (65,52) and (68,40) .. (61,22) .. controls (84,26) and (92,36) .. (92,48) .. controls (92,60) and (82,65) .. (76,68) -- cycle; \fill [BlueGrey400] (56,64) .. controls (45,64) and (40,60) .. (32,56) .. controls (24,52) and ( 8,52) .. ( 8,48) .. controls (8, 44) and (24,36) .. (40,36) .. controls (56,36) and (68,44) .. (72,48) .. controls (76,52) and (72,56) .. (68,60) .. controls (64,64) and (60,64) .. (56,64) -- cycle; \fill [Amber500] (88,84) .. controls (86,84) and ( 87,82) .. (86,81) .. controls (85,80) and ( 80,79) .. (83,76) .. controls (86,73) and ( 95,71) .. (97,71) .. controls (99,71) and (100,72) .. (99,73) .. controls (98,74) and ( 92,77) .. (91,80) .. controls (90,83) and ( 90,84) .. (88,84) -- cycle; \fill (78,87) .. controls (77,85) and (80,82) .. (83,84) .. controls (83,87) and (80,88) .. (78,87) -- cycle; \fill [Amber700] (50,25) .. controls (48,25) and (47,24) .. (47,23) .. controls (47,22) and (48,13) .. (47,12) .. controls (46,11) and (46, 9) .. (47, 8) .. controls (48, 7) and (58, 4) .. (60, 4) .. controls (62, 4) and (67,12) .. (65,12) .. controls (63,12) and (54,10) .. (52,12) .. controls (50,14) and (52,22) .. (52,23) .. controls (52,24) and (51,25) .. (50,25) -- cycle;} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {duck}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ duck/.pic={ \tikzset{x=3cm/100,y=3cm/100, shift={(-50,-50)}} \fill [Amber800] (58,28) .. controls (56,28) and (55,27) .. (55,26) .. controls (55,25) and (56,16) .. (55,15) .. controls (54,14) and (54,12) .. (55,11) .. controls (56,10) and (66, 7) .. (68, 7) .. controls (70, 7) and (75,15) .. (73,15) .. controls (71,15) and (62,13) .. (60,15) .. controls (58,17) and (60,25) .. (60,26) .. controls (60,27) and (59,28) .. (58,28) -- cycle; \fill [BlueGrey900] (1,57) .. controls ( 0,51) and ( 4,44) .. (10,42) .. controls (16,40) and (23,40) .. (24,47) -- cycle; \begin{scope} \clip [preaction={fill=LightGreen}] (74,96) .. controls (66,96) and (62,92) .. (60,88) .. controls (58,84) and (58,76) .. (61,68) -- (76,68) .. controls (72,72) and (74,74) .. (75,75) .. controls (82,75) and (88,76) .. (88,84) .. controls (88,92) and (82,96) .. (74,96) -- cycle; \fill [Grey100] (57,68) rectangle +(20,4); \end{scope} \fill [BlueGrey50] (14,48) .. controls (14,34) and (32,21) .. (53,21) .. controls (55,21) and (57,21) .. (61,22) .. controls (81,27) and (92,36) .. (92,48) -- cycle; \fill [Brown500] (61,68) .. controls (65,52) and (68,40) .. (61,22) .. controls (84,26) and (92,36) .. (92,48) .. controls (92,60) and (82,65) .. (76,68) -- cycle; \fill [BlueGrey400] (56,64) .. controls (45,64) and (40,60) .. (32,56) .. controls (24,52) and ( 8,52) .. ( 8,48) .. controls (8, 44) and (24,36) .. (40,36) .. controls (56,36) and (68,44) .. (72,48) .. controls (76,52) and (72,56) .. (68,60) .. controls (64,64) and (60,64) .. (56,64) -- cycle; \fill [Amber500] (88,84) .. controls (86,84) and ( 87,82) .. (86,81) .. controls (85,80) and ( 80,79) .. (83,76) .. controls (86,73) and ( 95,71) .. (97,71) .. controls (99,71) and (100,72) .. (99,73) .. controls (98,74) and ( 92,77) .. (91,80) .. controls (90,83) and ( 90,84) .. (88,84) -- cycle; \fill (78,87) .. controls (77,85) and (80,82) .. (83,84) .. controls (83,87) and (80,88) .. (78,87) -- cycle; \fill [Amber700] (50,25) .. controls (48,25) and (47,24) .. (47,23) .. controls (47,22) and (48,13) .. (47,12) .. controls (46,11) and (46, 9) .. (47, 8) .. controls (48, 7) and (58, 4) .. (60, 4) .. controls (62, 4) and (67,12) .. (65,12) .. controls (63,12) and (54,10) .. (52,12) .. controls (50,14) and (52,22) .. (52,23) .. controls (52,24) and (51,25) .. (50,25) -- cycle;} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {duck}; \end{tikzpicture} \end{document}
Make the duck open its wings
A duck with its wings opened
hard
update
animal
[ "@@ -50,2 +50,2 @@\n\n-(14,48)\n-.. controls (14,34) and (32,21) .. (53,21)\n+(30,60)\n+.. controls (-15,40) and (32,21) .. (53,21)\n@@ -60 +60 @@\n\n-\\fill [BlueGrey400] (56,64)\n+\\fill [BlueGrey400 , rotate=-40, shift={(-50,25)}] (56,64)" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nduck/.pic={\n\\tikzset{x=3cm/100,y=3cm/100, shift={(-50,-50)}}\n\\fill [Amber800] (58,28)\n .. controls (56,28) and (55,27) .. (55,26)\n .. controls (55,25) and (56,16) .. (55,15)\n .. controls (54,14) and (54,12) .. (55,11)\n .. controls (56,10) and (66, 7) .. (68, 7)\n .. controls (70, 7) and (75,15) .. (73,15)\n .. controls (71,15) and (62,13) .. (60,15)\n .. controls (58,17) and (60,25) .. (60,26)\n .. controls (60,27) and (59,28) .. (58,28)\n -- cycle;\n\\fill [BlueGrey900] (1,57)\n .. controls ( 0,51) and ( 4,44) .. (10,42)\n .. controls (16,40) and (23,40) .. (24,47)\n -- cycle;\n\\begin{scope}\n\\clip [preaction={fill=LightGreen}] (74,96)\n .. controls (66,96) and (62,92) .. (60,88)\n .. controls (58,84) and (58,76) .. (61,68)\n -- (76,68)\n .. controls (72,72) and (74,74) .. (75,75)\n .. controls (82,75) and (88,76) .. (88,84)\n .. controls (88,92) and (82,96) .. (74,96)\n -- cycle;\n\\fill [Grey100] (57,68) rectangle +(20,4);\n\\end{scope}\n\\fill [BlueGrey50]\n (§rangei(30,5),§rangei(60,5))\n .. controls (§rangei(-15,5),§rangei(40,10)) and (32,21) .. (53,21)\n .. controls (55,21) and (57,21) .. (61,22)\n .. controls (81,27) and (92,36) .. (92,48)\n -- cycle;\n\\fill [Brown500] (61,68)\n .. controls (65,52) and (68,40) .. (61,22)\n .. controls (84,26) and (92,36) .. (92,48)\n .. controls (92,60) and (82,65) .. (76,68)\n -- cycle;\n\\fill [BlueGrey400 , rotate=§rangei(-40,5), shift={(§rangei(-50,4),§rangei(25,5))}] (56,64)\n .. controls (45,64) and (40,60) .. (32,56)\n .. controls (24,52) and ( 8,52) .. ( 8,48)\n .. controls (8, 44) and (24,36) .. (40,36)\n .. controls (56,36) and (68,44) .. (72,48)\n .. controls (76,52) and (72,56) .. (68,60)\n .. controls (64,64) and (60,64) .. (56,64)\n -- cycle;\n\\fill [Amber500] (88,84)\n .. controls (86,84) and ( 87,82) .. (86,81)\n .. controls (85,80) and ( 80,79) .. (83,76)\n .. controls (86,73) and ( 95,71) .. (97,71)\n .. controls (99,71) and (100,72) .. (99,73)\n .. controls (98,74) and ( 92,77) .. (91,80)\n .. controls (90,83) and ( 90,84) .. (88,84)\n -- cycle;\n\\fill (78,87)\n .. controls (77,85) and (80,82) .. (83,84)\n .. controls (83,87) and (80,88) .. (78,87)\n -- cycle;\n\\fill [Amber700] (50,25)\n .. controls (48,25) and (47,24) .. (47,23)\n .. controls (47,22) and (48,13) .. (47,12)\n .. controls (46,11) and (46, 9) .. (47, 8)\n .. controls (48, 7) and (58, 4) .. (60, 4)\n .. controls (62, 4) and (67,12) .. (65,12)\n .. controls (63,12) and (54,10) .. (52,12)\n .. controls (50,14) and (52,22) .. (52,23)\n .. controls (52,24) and (51,25) .. (50,25)\n -- cycle;}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {duck};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nduck/.pic={\n\\tikzset{x=3cm/100,y=3cm/100, shift={(-50,-50)}}\n\\fill [Amber800] (58,28)\n .. controls (56,28) and (55,27) .. (55,26)\n .. controls (55,25) and (56,16) .. (55,15)\n .. controls (54,14) and (54,12) .. (55,11)\n .. controls (56,10) and (66, 7) .. (68, 7)\n .. controls (70, 7) and (75,15) .. (73,15)\n .. controls (71,15) and (62,13) .. (60,15)\n .. controls (58,17) and (60,25) .. (60,26)\n .. controls (60,27) and (59,28) .. (58,28)\n -- cycle;\n\\fill [BlueGrey900] (1,57)\n .. controls ( 0,51) and ( 4,44) .. (10,42)\n .. controls (16,40) and (23,40) .. (24,47)\n -- cycle;\n\\begin{scope}\n\\clip [preaction={fill=LightGreen}] (74,96)\n .. controls (66,96) and (62,92) .. (60,88)\n .. controls (58,84) and (58,76) .. (61,68)\n -- (76,68)\n .. controls (72,72) and (74,74) .. (75,75)\n .. controls (82,75) and (88,76) .. (88,84)\n .. controls (88,92) and (82,96) .. (74,96)\n -- cycle;\n\\fill [Grey100] (57,68) rectangle +(20,4);\n\\end{scope}\n\\fill [BlueGrey50]\n (30,60)\n .. controls (-15,40) and (32,21) .. (53,21)\n .. controls (55,21) and (57,21) .. (61,22)\n .. controls (81,27) and (92,36) .. (92,48)\n -- cycle;\n\\fill [Brown500] (61,68)\n .. controls (65,52) and (68,40) .. (61,22)\n .. controls (84,26) and (92,36) .. (92,48)\n .. controls (92,60) and (82,65) .. (76,68)\n -- cycle;\n\\fill [BlueGrey400 , rotate=-40, shift={(-50,25)}] (56,64)\n .. controls (45,64) and (40,60) .. (32,56)\n .. controls (24,52) and ( 8,52) .. ( 8,48)\n .. controls (8, 44) and (24,36) .. (40,36)\n .. controls (56,36) and (68,44) .. (72,48)\n .. controls (76,52) and (72,56) .. (68,60)\n .. controls (64,64) and (60,64) .. (56,64)\n -- cycle;\n\\fill [Amber500] (88,84)\n .. controls (86,84) and ( 87,82) .. (86,81)\n .. controls (85,80) and ( 80,79) .. (83,76)\n .. controls (86,73) and ( 95,71) .. (97,71)\n .. controls (99,71) and (100,72) .. (99,73)\n .. controls (98,74) and ( 92,77) .. (91,80)\n .. controls (90,83) and ( 90,84) .. (88,84)\n -- cycle;\n\\fill (78,87)\n .. controls (77,85) and (80,82) .. (83,84)\n .. controls (83,87) and (80,88) .. (78,87)\n -- cycle;\n\\fill [Amber700] (50,25)\n .. controls (48,25) and (47,24) .. (47,23)\n .. controls (47,22) and (48,13) .. (47,12)\n .. controls (46,11) and (46, 9) .. (47, 8)\n .. controls (48, 7) and (58, 4) .. (60, 4)\n .. controls (62, 4) and (67,12) .. (65,12)\n .. controls (63,12) and (54,10) .. (52,12)\n .. controls (50,14) and (52,22) .. (52,23)\n .. controls (52,24) and (51,25) .. (50,25)\n -- cycle;}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {duck};\n\\end{tikzpicture}\n\\end{document}" ]
[ 1 ]
duck_wide_eyes
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ duck/.pic={ \tikzset{x=3cm/100,y=3cm/100, shift={(-50,-50)}} \fill [Amber800] (58,28) .. controls (56,28) and (55,27) .. (55,26) .. controls (55,25) and (56,16) .. (55,15) .. controls (54,14) and (54,12) .. (55,11) .. controls (56,10) and (66, 7) .. (68, 7) .. controls (70, 7) and (75,15) .. (73,15) .. controls (71,15) and (62,13) .. (60,15) .. controls (58,17) and (60,25) .. (60,26) .. controls (60,27) and (59,28) .. (58,28) -- cycle; \fill [BlueGrey900] (1,57) .. controls ( 0,51) and ( 4,44) .. (10,42) .. controls (16,40) and (23,40) .. (24,47) -- cycle; \begin{scope} \clip [preaction={fill=LightGreen}] (74,96) .. controls (66,96) and (62,92) .. (60,88) .. controls (58,84) and (58,76) .. (61,68) -- (76,68) .. controls (72,72) and (74,74) .. (75,75) .. controls (82,75) and (88,76) .. (88,84) .. controls (88,92) and (82,96) .. (74,96) -- cycle; \fill [Grey100] (57,68) rectangle +(20,4); \end{scope} \fill [BlueGrey50] (14,48) .. controls (14,34) and (32,21) .. (53,21) .. controls (55,21) and (57,21) .. (61,22) .. controls (81,27) and (92,36) .. (92,48) -- cycle; \fill [Brown500] (61,68) .. controls (65,52) and (68,40) .. (61,22) .. controls (84,26) and (92,36) .. (92,48) .. controls (92,60) and (82,65) .. (76,68) -- cycle; \fill [BlueGrey400] (56,64) .. controls (45,64) and (40,60) .. (32,56) .. controls (24,52) and ( 8,52) .. ( 8,48) .. controls (8, 44) and (24,36) .. (40,36) .. controls (56,36) and (68,44) .. (72,48) .. controls (76,52) and (72,56) .. (68,60) .. controls (64,64) and (60,64) .. (56,64) -- cycle; \fill [Amber500] (88,84) .. controls (86,84) and ( 87,82) .. (86,81) .. controls (85,80) and ( 80,79) .. (83,76) .. controls (86,73) and ( 95,71) .. (97,71) .. controls (99,71) and (100,72) .. (99,73) .. controls (98,74) and ( 92,77) .. (91,80) .. controls (90,83) and ( 90,84) .. (88,84) -- cycle; \fill (78,87) .. controls (77,85) and (80,82) .. (83,84) .. controls (83,87) and (80,88) .. (78,87) -- cycle; \fill [Amber700] (50,25) .. controls (48,25) and (47,24) .. (47,23) .. controls (47,22) and (48,13) .. (47,12) .. controls (46,11) and (46, 9) .. (47, 8) .. controls (48, 7) and (58, 4) .. (60, 4) .. controls (62, 4) and (67,12) .. (65,12) .. controls (63,12) and (54,10) .. (52,12) .. controls (50,14) and (52,22) .. (52,23) .. controls (52,24) and (51,25) .. (50,25) -- cycle;} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {duck}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ duck/.pic={ \tikzset{x=3cm/100,y=3cm/100, shift={(-50,-50)}} \fill [Amber800] (58,28) .. controls (56,28) and (55,27) .. (55,26) .. controls (55,25) and (56,16) .. (55,15) .. controls (54,14) and (54,12) .. (55,11) .. controls (56,10) and (66, 7) .. (68, 7) .. controls (70, 7) and (75,15) .. (73,15) .. controls (71,15) and (62,13) .. (60,15) .. controls (58,17) and (60,25) .. (60,26) .. controls (60,27) and (59,28) .. (58,28) -- cycle; \fill [BlueGrey900] (1,57) .. controls ( 0,51) and ( 4,44) .. (10,42) .. controls (16,40) and (23,40) .. (24,47) -- cycle; \begin{scope} \clip [preaction={fill=LightGreen}] (74,96) .. controls (66,96) and (62,92) .. (60,88) .. controls (58,84) and (58,76) .. (61,68) -- (76,68) .. controls (72,72) and (74,74) .. (75,75) .. controls (82,75) and (88,76) .. (88,84) .. controls (88,92) and (82,96) .. (74,96) -- cycle; \fill [Grey100] (57,68) rectangle +(20,4); \end{scope} \fill [BlueGrey50] (14,48) .. controls (14,34) and (32,21) .. (53,21) .. controls (55,21) and (57,21) .. (61,22) .. controls (81,27) and (92,36) .. (92,48) -- cycle; \fill [Brown500] (61,68) .. controls (65,52) and (68,40) .. (61,22) .. controls (84,26) and (92,36) .. (92,48) .. controls (92,60) and (82,65) .. (76,68) -- cycle; \fill [BlueGrey400] (56,64) .. controls (45,64) and (40,60) .. (32,56) .. controls (24,52) and ( 8,52) .. ( 8,48) .. controls (8, 44) and (24,36) .. (40,36) .. controls (56,36) and (68,44) .. (72,48) .. controls (76,52) and (72,56) .. (68,60) .. controls (64,64) and (60,64) .. (56,64) -- cycle; \fill [Amber500] (88,84) .. controls (86,84) and ( 87,82) .. (86,81) .. controls (85,80) and ( 80,79) .. (83,76) .. controls (86,73) and ( 95,71) .. (97,71) .. controls (99,71) and (100,72) .. (99,73) .. controls (98,74) and ( 92,77) .. (91,80) .. controls (90,83) and ( 90,84) .. (88,84) -- cycle; \fill (78,87) .. controls (77,85) and (80,82) .. (83,84) .. controls (83,87) and (80,88) .. (78,87) -- cycle; \fill [Amber700] (50,25) .. controls (48,25) and (47,24) .. (47,23) .. controls (47,22) and (48,13) .. (47,12) .. controls (46,11) and (46, 9) .. (47, 8) .. controls (48, 7) and (58, 4) .. (60, 4) .. controls (62, 4) and (67,12) .. (65,12) .. controls (63,12) and (54,10) .. (52,12) .. controls (50,14) and (52,22) .. (52,23) .. controls (52,24) and (51,25) .. (50,25) -- cycle;} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {duck}; \end{tikzpicture} \end{document}
Made the eyes of the duck longer
A duck with wide pointy eyes
easy
update
animal
[ "@@ -76,3 +76,3 @@\n\n-\\fill (78,87)\n-.. controls (77,85) and (80,82) .. (83,84)\n-.. controls (83,87) and (80,88) .. (78,87)\n+\\fill (76,88)\n+.. controls (77,85) and (80,82) .. (85,83)\n+.. controls (83,87) and (80,88) .. (76,88)" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nduck/.pic={\n\\tikzset{x=3cm/100,y=3cm/100, shift={(-50,-50)}}\n\\fill [Amber800] (58,28)\n .. controls (56,28) and (55,27) .. (55,26)\n .. controls (55,25) and (56,16) .. (55,15)\n .. controls (54,14) and (54,12) .. (55,11)\n .. controls (56,10) and (66, 7) .. (68, 7)\n .. controls (70, 7) and (75,15) .. (73,15)\n .. controls (71,15) and (62,13) .. (60,15)\n .. controls (58,17) and (60,25) .. (60,26)\n .. controls (60,27) and (59,28) .. (58,28)\n -- cycle;\n\\fill [BlueGrey900] (1,57)\n .. controls ( 0,51) and ( 4,44) .. (10,42)\n .. controls (16,40) and (23,40) .. (24,47)\n -- cycle;\n\\begin{scope}\n\\clip [preaction={fill=LightGreen}] (74,96)\n .. controls (66,96) and (62,92) .. (60,88)\n .. controls (58,84) and (58,76) .. (61,68)\n -- (76,68)\n .. controls (72,72) and (74,74) .. (75,75)\n .. controls (82,75) and (88,76) .. (88,84)\n .. controls (88,92) and (82,96) .. (74,96)\n -- cycle;\n\\fill [Grey100] (57,68) rectangle +(20,4);\n\\end{scope}\n\\fill [BlueGrey50]\n (14,48)\n .. controls (14,34) and (32,21) .. (53,21)\n .. controls (55,21) and (57,21) .. (61,22)\n .. controls (81,27) and (92,36) .. (92,48)\n -- cycle;\n\\fill [Brown500] (61,68)\n .. controls (65,52) and (68,40) .. (61,22)\n .. controls (84,26) and (92,36) .. (92,48)\n .. controls (92,60) and (82,65) .. (76,68)\n -- cycle;\n\\fill [BlueGrey400] (56,64)\n .. controls (45,64) and (40,60) .. (32,56)\n .. controls (24,52) and ( 8,52) .. ( 8,48)\n .. controls (8, 44) and (24,36) .. (40,36)\n .. controls (56,36) and (68,44) .. (72,48)\n .. controls (76,52) and (72,56) .. (68,60)\n .. controls (64,64) and (60,64) .. (56,64)\n -- cycle;\n\\fill [Amber500] (88,84)\n .. controls (86,84) and ( 87,82) .. (86,81)\n .. controls (85,80) and ( 80,79) .. (83,76)\n .. controls (86,73) and ( 95,71) .. (97,71)\n .. controls (99,71) and (100,72) .. (99,73)\n .. controls (98,74) and ( 92,77) .. (91,80)\n .. controls (90,83) and ( 90,84) .. (88,84)\n -- cycle;\n\\fill (76,88)\n .. controls (77,85) and (80,82) .. (§rangei(85,1),§rangei(83,1))\n .. controls (83,87) and (80,88) .. (§rangei(76,1),§rangei(88,1))\n -- cycle;\n\\fill [Amber700] (50,25)\n .. controls (48,25) and (47,24) .. (47,23)\n .. controls (47,22) and (48,13) .. (47,12)\n .. controls (46,11) and (46, 9) .. (47, 8)\n .. controls (48, 7) and (58, 4) .. (60, 4)\n .. controls (62, 4) and (67,12) .. (65,12)\n .. controls (63,12) and (54,10) .. (52,12)\n .. controls (50,14) and (52,22) .. (52,23)\n .. controls (52,24) and (51,25) .. (50,25)\n -- cycle;}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {duck};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nduck/.pic={\n\\tikzset{x=3cm/100,y=3cm/100, shift={(-50,-50)}}\n\\fill [Amber800] (58,28)\n .. controls (56,28) and (55,27) .. (55,26)\n .. controls (55,25) and (56,16) .. (55,15)\n .. controls (54,14) and (54,12) .. (55,11)\n .. controls (56,10) and (66, 7) .. (68, 7)\n .. controls (70, 7) and (75,15) .. (73,15)\n .. controls (71,15) and (62,13) .. (60,15)\n .. controls (58,17) and (60,25) .. (60,26)\n .. controls (60,27) and (59,28) .. (58,28)\n -- cycle;\n\\fill [BlueGrey900] (1,57)\n .. controls ( 0,51) and ( 4,44) .. (10,42)\n .. controls (16,40) and (23,40) .. (24,47)\n -- cycle;\n\\begin{scope}\n\\clip [preaction={fill=LightGreen}] (74,96)\n .. controls (66,96) and (62,92) .. (60,88)\n .. controls (58,84) and (58,76) .. (61,68)\n -- (76,68)\n .. controls (72,72) and (74,74) .. (75,75)\n .. controls (82,75) and (88,76) .. (88,84)\n .. controls (88,92) and (82,96) .. (74,96)\n -- cycle;\n\\fill [Grey100] (57,68) rectangle +(20,4);\n\\end{scope}\n\\fill [BlueGrey50]\n (14,48)\n .. controls (14,34) and (32,21) .. (53,21)\n .. controls (55,21) and (57,21) .. (61,22)\n .. controls (81,27) and (92,36) .. (92,48)\n -- cycle;\n\\fill [Brown500] (61,68)\n .. controls (65,52) and (68,40) .. (61,22)\n .. controls (84,26) and (92,36) .. (92,48)\n .. controls (92,60) and (82,65) .. (76,68)\n -- cycle;\n\\fill [BlueGrey400] (56,64)\n .. controls (45,64) and (40,60) .. (32,56)\n .. controls (24,52) and ( 8,52) .. ( 8,48)\n .. controls (8, 44) and (24,36) .. (40,36)\n .. controls (56,36) and (68,44) .. (72,48)\n .. controls (76,52) and (72,56) .. (68,60)\n .. controls (64,64) and (60,64) .. (56,64)\n -- cycle;\n\\fill [Amber500] (88,84)\n .. controls (86,84) and ( 87,82) .. (86,81)\n .. controls (85,80) and ( 80,79) .. (83,76)\n .. controls (86,73) and ( 95,71) .. (97,71)\n .. controls (99,71) and (100,72) .. (99,73)\n .. controls (98,74) and ( 92,77) .. (91,80)\n .. controls (90,83) and ( 90,84) .. (88,84)\n -- cycle;\n\\fill (76,88)\n .. controls (77,85) and (80,82) .. (85,83)\n .. controls (83,87) and (80,88) .. (76,88)\n -- cycle;\n\\fill [Amber700] (50,25)\n .. controls (48,25) and (47,24) .. (47,23)\n .. controls (47,22) and (48,13) .. (47,12)\n .. controls (46,11) and (46, 9) .. (47, 8)\n .. controls (48, 7) and (58, 4) .. (60, 4)\n .. controls (62, 4) and (67,12) .. (65,12)\n .. controls (63,12) and (54,10) .. (52,12)\n .. controls (50,14) and (52,22) .. (52,23)\n .. controls (52,24) and (51,25) .. (50,25)\n -- cycle;}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {duck};\n\\end{tikzpicture}\n\\end{document}" ]
[ 12 ]
duck_with_duckling
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ duck/.pic={ \tikzset{x=3cm/100,y=3cm/100, shift={(-50,-50)}} \fill [Amber800] (58,28) .. controls (56,28) and (55,27) .. (55,26) .. controls (55,25) and (56,16) .. (55,15) .. controls (54,14) and (54,12) .. (55,11) .. controls (56,10) and (66, 7) .. (68, 7) .. controls (70, 7) and (75,15) .. (73,15) .. controls (71,15) and (62,13) .. (60,15) .. controls (58,17) and (60,25) .. (60,26) .. controls (60,27) and (59,28) .. (58,28) -- cycle; \fill [BlueGrey900] (1,57) .. controls ( 0,51) and ( 4,44) .. (10,42) .. controls (16,40) and (23,40) .. (24,47) -- cycle; \begin{scope} \clip [preaction={fill=LightGreen}] (74,96) .. controls (66,96) and (62,92) .. (60,88) .. controls (58,84) and (58,76) .. (61,68) -- (76,68) .. controls (72,72) and (74,74) .. (75,75) .. controls (82,75) and (88,76) .. (88,84) .. controls (88,92) and (82,96) .. (74,96) -- cycle; \fill [Grey100] (57,68) rectangle +(20,4); \end{scope} \fill [BlueGrey50] (14,48) .. controls (14,34) and (32,21) .. (53,21) .. controls (55,21) and (57,21) .. (61,22) .. controls (81,27) and (92,36) .. (92,48) -- cycle; \fill [Brown500] (61,68) .. controls (65,52) and (68,40) .. (61,22) .. controls (84,26) and (92,36) .. (92,48) .. controls (92,60) and (82,65) .. (76,68) -- cycle; \fill [BlueGrey400] (56,64) .. controls (45,64) and (40,60) .. (32,56) .. controls (24,52) and ( 8,52) .. ( 8,48) .. controls (8, 44) and (24,36) .. (40,36) .. controls (56,36) and (68,44) .. (72,48) .. controls (76,52) and (72,56) .. (68,60) .. controls (64,64) and (60,64) .. (56,64) -- cycle; \fill [Amber500] (88,84) .. controls (86,84) and ( 87,82) .. (86,81) .. controls (85,80) and ( 80,79) .. (83,76) .. controls (86,73) and ( 95,71) .. (97,71) .. controls (99,71) and (100,72) .. (99,73) .. controls (98,74) and ( 92,77) .. (91,80) .. controls (90,83) and ( 90,84) .. (88,84) -- cycle; \fill (78,87) .. controls (77,85) and (80,82) .. (83,84) .. controls (83,87) and (80,88) .. (78,87) -- cycle; \fill [Amber700] (50,25) .. controls (48,25) and (47,24) .. (47,23) .. controls (47,22) and (48,13) .. (47,12) .. controls (46,11) and (46, 9) .. (47, 8) .. controls (48, 7) and (58, 4) .. (60, 4) .. controls (62, 4) and (67,12) .. (65,12) .. controls (63,12) and (54,10) .. (52,12) .. controls (50,14) and (52,22) .. (52,23) .. controls (52,24) and (51,25) .. (50,25) -- cycle;} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {duck}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ duck/.pic={ \tikzset{x=3cm/100,y=3cm/100, shift={(-50,-50)}} \fill [Amber800] (58,28) .. controls (56,28) and (55,27) .. (55,26) .. controls (55,25) and (56,16) .. (55,15) .. controls (54,14) and (54,12) .. (55,11) .. controls (56,10) and (66, 7) .. (68, 7) .. controls (70, 7) and (75,15) .. (73,15) .. controls (71,15) and (62,13) .. (60,15) .. controls (58,17) and (60,25) .. (60,26) .. controls (60,27) and (59,28) .. (58,28) -- cycle; \fill [BlueGrey900] (1,57) .. controls ( 0,51) and ( 4,44) .. (10,42) .. controls (16,40) and (23,40) .. (24,47) -- cycle; \begin{scope} \clip [preaction={fill=LightGreen}] (74,96) .. controls (66,96) and (62,92) .. (60,88) .. controls (58,84) and (58,76) .. (61,68) -- (76,68) .. controls (72,72) and (74,74) .. (75,75) .. controls (82,75) and (88,76) .. (88,84) .. controls (88,92) and (82,96) .. (74,96) -- cycle; \fill [Grey100] (57,68) rectangle +(20,4); \end{scope} \fill [BlueGrey50] (14,48) .. controls (14,34) and (32,21) .. (53,21) .. controls (55,21) and (57,21) .. (61,22) .. controls (81,27) and (92,36) .. (92,48) -- cycle; \fill [Brown500] (61,68) .. controls (65,52) and (68,40) .. (61,22) .. controls (84,26) and (92,36) .. (92,48) .. controls (92,60) and (82,65) .. (76,68) -- cycle; \fill [BlueGrey400] (56,64) .. controls (45,64) and (40,60) .. (32,56) .. controls (24,52) and ( 8,52) .. ( 8,48) .. controls (8, 44) and (24,36) .. (40,36) .. controls (56,36) and (68,44) .. (72,48) .. controls (76,52) and (72,56) .. (68,60) .. controls (64,64) and (60,64) .. (56,64) -- cycle; \fill [Amber500] (88,84) .. controls (86,84) and ( 87,82) .. (86,81) .. controls (85,80) and ( 80,79) .. (83,76) .. controls (86,73) and ( 95,71) .. (97,71) .. controls (99,71) and (100,72) .. (99,73) .. controls (98,74) and ( 92,77) .. (91,80) .. controls (90,83) and ( 90,84) .. (88,84) -- cycle; \fill (78,87) .. controls (77,85) and (80,82) .. (83,84) .. controls (83,87) and (80,88) .. (78,87) -- cycle; \fill [Amber700] (50,25) .. controls (48,25) and (47,24) .. (47,23) .. controls (47,22) and (48,13) .. (47,12) .. controls (46,11) and (46, 9) .. (47, 8) .. controls (48, 7) and (58, 4) .. (60, 4) .. controls (62, 4) and (67,12) .. (65,12) .. controls (63,12) and (54,10) .. (52,12) .. controls (50,14) and (52,22) .. (52,23) .. controls (52,24) and (51,25) .. (50,25) -- cycle;} } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {duck}; \end{tikzpicture} \end{document}
Add a duckling on the bottom left side of the frame, essentially a smaller copy of the existing duck
A duck with a smaller copy of it on its bottom left side
medium
add
animal
[ "@@ -94,0 +95 @@\n\n+\\pic[scale=0.5, shift={(-2cm, -2cm)}] {duck};" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nduck/.pic={\n\\tikzset{x=3cm/100,y=3cm/100, shift={(-50,-50)}}\n\\fill [Amber800] (58,28)\n .. controls (56,28) and (55,27) .. (55,26)\n .. controls (55,25) and (56,16) .. (55,15)\n .. controls (54,14) and (54,12) .. (55,11)\n .. controls (56,10) and (66, 7) .. (68, 7)\n .. controls (70, 7) and (75,15) .. (73,15)\n .. controls (71,15) and (62,13) .. (60,15)\n .. controls (58,17) and (60,25) .. (60,26)\n .. controls (60,27) and (59,28) .. (58,28)\n -- cycle;\n\\fill [BlueGrey900] (1,57)\n .. controls ( 0,51) and ( 4,44) .. (10,42)\n .. controls (16,40) and (23,40) .. (24,47)\n -- cycle;\n\\begin{scope}\n\\clip [preaction={fill=LightGreen}] (74,96)\n .. controls (66,96) and (62,92) .. (60,88)\n .. controls (58,84) and (58,76) .. (61,68)\n -- (76,68)\n .. controls (72,72) and (74,74) .. (75,75)\n .. controls (82,75) and (88,76) .. (88,84)\n .. controls (88,92) and (82,96) .. (74,96)\n -- cycle;\n\\fill [Grey100] (57,68) rectangle +(20,4);\n\\end{scope}\n\\fill [BlueGrey50]\n (14,48)\n .. controls (14,34) and (32,21) .. (53,21)\n .. controls (55,21) and (57,21) .. (61,22)\n .. controls (81,27) and (92,36) .. (92,48)\n -- cycle;\n\\fill [Brown500] (61,68)\n .. controls (65,52) and (68,40) .. (61,22)\n .. controls (84,26) and (92,36) .. (92,48)\n .. controls (92,60) and (82,65) .. (76,68)\n -- cycle;\n\\fill [BlueGrey400] (56,64)\n .. controls (45,64) and (40,60) .. (32,56)\n .. controls (24,52) and ( 8,52) .. ( 8,48)\n .. controls (8, 44) and (24,36) .. (40,36)\n .. controls (56,36) and (68,44) .. (72,48)\n .. controls (76,52) and (72,56) .. (68,60)\n .. controls (64,64) and (60,64) .. (56,64)\n -- cycle;\n\\fill [Amber500] (88,84)\n .. controls (86,84) and ( 87,82) .. (86,81)\n .. controls (85,80) and ( 80,79) .. (83,76)\n .. controls (86,73) and ( 95,71) .. (97,71)\n .. controls (99,71) and (100,72) .. (99,73)\n .. controls (98,74) and ( 92,77) .. (91,80)\n .. controls (90,83) and ( 90,84) .. (88,84)\n -- cycle;\n\\fill (78,87)\n .. controls (77,85) and (80,82) .. (83,84)\n .. controls (83,87) and (80,88) .. (78,87)\n -- cycle;\n\\fill [Amber700] (50,25)\n .. controls (48,25) and (47,24) .. (47,23)\n .. controls (47,22) and (48,13) .. (47,12)\n .. controls (46,11) and (46, 9) .. (47, 8)\n .. controls (48, 7) and (58, 4) .. (60, 4)\n .. controls (62, 4) and (67,12) .. (65,12)\n .. controls (63,12) and (54,10) .. (52,12)\n .. controls (50,14) and (52,22) .. (52,23)\n .. controls (52,24) and (51,25) .. (50,25)\n -- cycle;}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {duck};\n\\pic[scale=§rangei(0.5,0.25), shift={(§rangei(-2,1)cm, §rangei(-2,1)cm)}] {duck};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nduck/.pic={\n\\tikzset{x=3cm/100,y=3cm/100, shift={(-50,-50)}}\n\\fill [Amber800] (58,28)\n .. controls (56,28) and (55,27) .. (55,26)\n .. controls (55,25) and (56,16) .. (55,15)\n .. controls (54,14) and (54,12) .. (55,11)\n .. controls (56,10) and (66, 7) .. (68, 7)\n .. controls (70, 7) and (75,15) .. (73,15)\n .. controls (71,15) and (62,13) .. (60,15)\n .. controls (58,17) and (60,25) .. (60,26)\n .. controls (60,27) and (59,28) .. (58,28)\n -- cycle;\n\\fill [BlueGrey900] (1,57)\n .. controls ( 0,51) and ( 4,44) .. (10,42)\n .. controls (16,40) and (23,40) .. (24,47)\n -- cycle;\n\\begin{scope}\n\\clip [preaction={fill=LightGreen}] (74,96)\n .. controls (66,96) and (62,92) .. (60,88)\n .. controls (58,84) and (58,76) .. (61,68)\n -- (76,68)\n .. controls (72,72) and (74,74) .. (75,75)\n .. controls (82,75) and (88,76) .. (88,84)\n .. controls (88,92) and (82,96) .. (74,96)\n -- cycle;\n\\fill [Grey100] (57,68) rectangle +(20,4);\n\\end{scope}\n\\fill [BlueGrey50]\n (14,48)\n .. controls (14,34) and (32,21) .. (53,21)\n .. controls (55,21) and (57,21) .. (61,22)\n .. controls (81,27) and (92,36) .. (92,48)\n -- cycle;\n\\fill [Brown500] (61,68)\n .. controls (65,52) and (68,40) .. (61,22)\n .. controls (84,26) and (92,36) .. (92,48)\n .. controls (92,60) and (82,65) .. (76,68)\n -- cycle;\n\\fill [BlueGrey400] (56,64)\n .. controls (45,64) and (40,60) .. (32,56)\n .. controls (24,52) and ( 8,52) .. ( 8,48)\n .. controls (8, 44) and (24,36) .. (40,36)\n .. controls (56,36) and (68,44) .. (72,48)\n .. controls (76,52) and (72,56) .. (68,60)\n .. controls (64,64) and (60,64) .. (56,64)\n -- cycle;\n\\fill [Amber500] (88,84)\n .. controls (86,84) and ( 87,82) .. (86,81)\n .. controls (85,80) and ( 80,79) .. (83,76)\n .. controls (86,73) and ( 95,71) .. (97,71)\n .. controls (99,71) and (100,72) .. (99,73)\n .. controls (98,74) and ( 92,77) .. (91,80)\n .. controls (90,83) and ( 90,84) .. (88,84)\n -- cycle;\n\\fill (78,87)\n .. controls (77,85) and (80,82) .. (83,84)\n .. controls (83,87) and (80,88) .. (78,87)\n -- cycle;\n\\fill [Amber700] (50,25)\n .. controls (48,25) and (47,24) .. (47,23)\n .. controls (47,22) and (48,13) .. (47,12)\n .. controls (46,11) and (46, 9) .. (47, 8)\n .. controls (48, 7) and (58, 4) .. (60, 4)\n .. controls (62, 4) and (67,12) .. (65,12)\n .. controls (63,12) and (54,10) .. (52,12)\n .. controls (50,14) and (52,22) .. (52,23)\n .. controls (52,24) and (51,25) .. (50,25)\n -- cycle;}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {duck};\n\\pic[scale=0.5, shift={(-2cm, -2cm)}] {duck};\n\\end{tikzpicture}\n\\end{document}" ]
[ 2 ]
egraph_colored
\documentclass[tikz,border=5]{standalone} \usepackage{amssymb,enumerate,psfrag,graphicx,amsfonts,amsrefs,amsthm,mathrsfs,amsmath,amscd,version,graphicx} \usepackage{xcolor} \usepackage{tikz-cd} \usepackage{tikz} \usetikzlibrary{arrows} \tikzset{ vertex/.style={draw,circle,inner sep=2 pt, minimum size=6pt}, edge/.style={thick}, dedge/.style ={->,> = latex',thick} } \usetikzlibrary{decorations.markings} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture} \draw[ultra thick, gray,opacity=0.5, rounded corners] (-0.6,-1.5) rectangle (2.6,1.5); \node[gray,left] at (-0.6,1){$E_1$}; \draw[ultra thick, gray,opacity=0.5,rounded corners] (1.4,0.5) rectangle (5,3); \node[gray,above] at (3,3){$E_2$}; \draw[ultra thick, gray,opacity=0.5,rounded corners] (1.5,-0.5) rectangle (4.5,-1.8); \node[gray,below] at (3,-1.8){$E_5$}; \draw[ultra thick, gray,opacity=0.5,rounded corners] (3.4,-1.5) rectangle (6.6,1.5); \node[gray,right] at (6.5,-0.3){$E_4$}; \draw[ultra thick, gray,opacity=0.5,rounded corners] (3.5,2.5)--(4.6,3.6)--(7.1,1.1)--(6,0)--cycle; \node[gray] at (6.2,2.6){$E_3$}; \node[vertex] (1) at (0,0){}; \node[vertex] (2) at (2,1) {}; \node[vertex] (3) at (2,-1) {}; \node[vertex] (4) at (4,-1) {}; \node[vertex] (5) at (4,1) {}; \node[vertex] (6) at (6,-1) {}; \node[vertex] (7) at (6,1) {}; \node[vertex] (8) at (4.5,2.5) {}; \draw[dedge] (1) -- (2) node[midway, above,sloped] {\small $a$}; \draw[dedge] (2) -- (3) node[midway, right] {\small $b$}; \draw[dedge] (1) -- (3) node[midway, below,sloped] {\small $ab$}; \draw[dedge] (2) -- (5) node[midway, above,sloped] {\small $c$}; \draw[dedge] (8) -- (5) node[midway,left] {\small $c$}; \draw[edge] (2) -- (8) node[midway, above,sloped] {\tiny }; \draw[edge] (8) -- (7) node[midway, above,sloped] {\tiny }; \draw[dedge] (3) -- (4) node[midway, above,sloped] {\small $d$}; \draw[edge] (4) -- (5) node[midway, left] {\tiny }; \draw[edge] (4) -- (6) node[midway, below,sloped] {\tiny }; \draw[edge] (4) -- (7) node[pos=0.35, above,sloped] {\tiny }; \draw[edge] (5) -- (6) node[pos=0.65, above,sloped] {\tiny }; \draw[edge] (5) -- (7) node[pos=0.67, above,sloped] {\tiny }; \draw[edge] (6) -- (7) node[midway, right] {\tiny }; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{amssymb,enumerate,psfrag,graphicx,amsfonts,amsrefs,amsthm,mathrsfs,amsmath,amscd,version,graphicx} \usepackage{xcolor} \usepackage{tikz-cd} \usepackage{tikz} \usetikzlibrary{arrows} \tikzset{ vertex/.style={draw,circle,inner sep=2 pt, minimum size=6pt}, edge/.style={thick}, dedge/.style ={->,> = latex',thick} } \usetikzlibrary{decorations.markings} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture} \draw[ultra thick, gray,opacity=0.5, rounded corners] (-0.6,-1.5) rectangle (2.6,1.5); \node[gray,left] at (-0.6,1){$E_1$}; \draw[ultra thick, gray,opacity=0.5,rounded corners] (1.4,0.5) rectangle (5,3); \node[gray,above] at (3,3){$E_2$}; \draw[ultra thick, gray,opacity=0.5,rounded corners] (1.5,-0.5) rectangle (4.5,-1.8); \node[gray,below] at (3,-1.8){$E_5$}; \draw[ultra thick, gray,opacity=0.5,rounded corners] (3.4,-1.5) rectangle (6.6,1.5); \node[gray,right] at (6.5,-0.3){$E_4$}; \draw[ultra thick, gray,opacity=0.5,rounded corners] (3.5,2.5)--(4.6,3.6)--(7.1,1.1)--(6,0)--cycle; \node[gray] at (6.2,2.6){$E_3$}; % vertices \node[vertex] (1) at (0,0){}; \node[vertex] (2) at (2,1) {}; \node[vertex] (3) at (2,-1) {}; \node[vertex] (4) at (4,-1) {}; \node[vertex] (5) at (4,1) {}; \node[vertex] (6) at (6,-1) {}; \node[vertex] (7) at (6,1) {}; \node[vertex] (8) at (4.5,2.5) {}; %edges \draw[dedge] (1) -- (2) node[midway, above,sloped] {\small $a$}; \draw[dedge] (2) -- (3) node[midway, right] {\small $b$}; \draw[dedge] (1) -- (3) node[midway, below,sloped] {\small $ab$}; \draw[dedge] (2) -- (5) node[midway, above,sloped] {\small $c$}; \draw[dedge] (8) -- (5) node[midway,left] {\small $c$}; \draw[edge] (2) -- (8) node[midway, above,sloped] {\tiny }; \draw[edge] (8) -- (7) node[midway, above,sloped] {\tiny }; \draw[dedge] (3) -- (4) node[midway, above,sloped] {\small $d$}; \draw[edge] (4) -- (5) node[midway, left] {\tiny }; \draw[edge] (4) -- (6) node[midway, below,sloped] {\tiny }; \draw[edge] (4) -- (7) node[pos=0.35, above,sloped] {\tiny }; \draw[edge] (5) -- (6) node[pos=0.65, above,sloped] {\tiny }; \draw[edge] (5) -- (7) node[pos=0.67, above,sloped] {\tiny }; \draw[edge] (6) -- (7) node[midway, right] {\tiny }; \end{tikzpicture} \end{document}
Color the vertices within E_5 in blue(filled).
A graph with two blue nodes contained in a area E_5
easy
update
scientific
[ "@@ -28,2 +28,2 @@\n\n-\\node[vertex] (3) at (2,-1) {};\n-\\node[vertex] (4) at (4,-1) {};\n+\\node[vertex, fill = blue] (3) at (2,-1) {};\n+\\node[vertex, fill = blue] (4) at (4,-1) {};" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amssymb,enumerate,psfrag,graphicx,amsfonts,amsrefs,amsthm,mathrsfs,amsmath,amscd,version,graphicx}\n\\usepackage{xcolor}\n\\usepackage{tikz-cd}\n\\usepackage{tikz}\n\\usetikzlibrary{arrows}\n\\tikzset{\n vertex/.style={draw,circle,inner sep=2 pt, minimum size=6pt},\n edge/.style={thick},\n dedge/.style ={->,> = latex',thick}\n }\n\\usetikzlibrary{decorations.markings}\n\\usetikzlibrary{arrows.meta}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n\\draw[ultra thick, gray,opacity=0.5, rounded corners] (-0.6,-1.5) rectangle (2.6,1.5);\n\\node[gray,left] at (-0.6,1){$E_1$};\n\n\n\\draw[ultra thick, gray,opacity=0.5,rounded corners] (1.4,0.5) rectangle (5,3);\n\\node[gray,above] at (3,3){$E_2$};\n\n\\draw[ultra thick, gray,opacity=0.5,rounded corners] (1.5,-0.5) rectangle (4.5,-1.8);\n\\node[gray,below] at (3,-1.8){$E_5$};\n\n\\draw[ultra thick, gray,opacity=0.5,rounded corners] (3.4,-1.5) rectangle (6.6,1.5);\n\\node[gray,right] at (6.5,-0.3){$E_4$};\n\n\n\\draw[ultra thick, gray,opacity=0.5,rounded corners] (3.5,2.5)--(4.6,3.6)--(7.1,1.1)--(6,0)--cycle;\n\\node[gray] at (6.2,2.6){$E_3$};\n\\node[vertex] (1) at (0,0){};\n\\node[vertex] (2) at (2,1) {};\n\\node[vertex, fill = blue] (3) at (2,-1) {};\n\n\\node[vertex, fill = blue] (4) at (4,-1) {};\n\\node[vertex] (5) at (4,1) {};\n\\node[vertex] (6) at (6,-1) {};\n\\node[vertex] (7) at (6,1) {};\n\\node[vertex] (8) at (4.5,2.5) {};\n\n\n\n\n\\draw[dedge] (1) -- (2) node[midway, above,sloped] {\\small $a$};\n\\draw[dedge] (2) -- (3) node[midway, right] {\\small $b$};\n\\draw[dedge] (1) -- (3) node[midway, below,sloped] {\\small $ab$};\n\n\\draw[dedge] (2) -- (5) node[midway, above,sloped] {\\small $c$};\n\\draw[dedge] (8) -- (5) node[midway,left] {\\small $c$};\n\\draw[edge] (2) -- (8) node[midway, above,sloped] {\\tiny };\n\n\\draw[edge] (8) -- (7) node[midway, above,sloped] {\\tiny };\n\n\\draw[dedge] (3) -- (4) node[midway, above,sloped] {\\small $d$};\n\n\\draw[edge] (4) -- (5) node[midway, left] {\\tiny };\n\\draw[edge] (4) -- (6) node[midway, below,sloped] {\\tiny };\n\\draw[edge] (4) -- (7) node[pos=0.35, above,sloped] {\\tiny };\n\\draw[edge] (5) -- (6) node[pos=0.65, above,sloped] {\\tiny };\n\\draw[edge] (5) -- (7) node[pos=0.67, above,sloped] {\\tiny };\n\\draw[edge] (6) -- (7) node[midway, right] {\\tiny };\n\n\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amssymb,enumerate,psfrag,graphicx,amsfonts,amsrefs,amsthm,mathrsfs,amsmath,amscd,version,graphicx}\n\\usepackage{xcolor}\n\\usepackage{tikz-cd}\n\\usepackage{tikz}\n\\usetikzlibrary{arrows}\n\\tikzset{\n vertex/.style={draw,circle,inner sep=2 pt, minimum size=6pt},\n edge/.style={thick},\n dedge/.style ={->,> = latex',thick}\n }\n\\usetikzlibrary{decorations.markings}\n\\usetikzlibrary{arrows.meta}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n\\draw[ultra thick, gray,opacity=0.5, rounded corners] (-0.6,-1.5) rectangle (2.6,1.5);\n\\node[gray,left] at (-0.6,1){$E_1$};\n\n\n\\draw[ultra thick, gray,opacity=0.5,rounded corners] (1.4,0.5) rectangle (5,3);\n\\node[gray,above] at (3,3){$E_2$};\n\n\\draw[ultra thick, gray,opacity=0.5,rounded corners] (1.5,-0.5) rectangle (4.5,-1.8);\n\\node[gray,below] at (3,-1.8){$E_5$};\n\n\\draw[ultra thick, gray,opacity=0.5,rounded corners] (3.4,-1.5) rectangle (6.6,1.5);\n\\node[gray,right] at (6.5,-0.3){$E_4$};\n\n\n\\draw[ultra thick, gray,opacity=0.5,rounded corners] (3.5,2.5)--(4.6,3.6)--(7.1,1.1)--(6,0)--cycle;\n\\node[gray] at (6.2,2.6){$E_3$};\n\\node[vertex] (1) at (0,0){};\n\\node[vertex] (2) at (2,1) {};\n\\node[vertex, fill = blue] (3) at (2,-1) {};\n\n\\node[vertex, fill = blue] (4) at (4,-1) {};\n\\node[vertex] (5) at (4,1) {};\n\\node[vertex] (6) at (6,-1) {};\n\\node[vertex] (7) at (6,1) {};\n\\node[vertex] (8) at (4.5,2.5) {};\n\n\n\n\n\\draw[dedge] (1) -- (2) node[midway, above,sloped] {\\small $a$};\n\\draw[dedge] (2) -- (3) node[midway, right] {\\small $b$};\n\\draw[dedge] (1) -- (3) node[midway, below,sloped] {\\small $ab$};\n\n\\draw[dedge] (2) -- (5) node[midway, above,sloped] {\\small $c$};\n\\draw[dedge] (8) -- (5) node[midway,left] {\\small $c$};\n\\draw[edge] (2) -- (8) node[midway, above,sloped] {\\tiny };\n\n\\draw[edge] (8) -- (7) node[midway, above,sloped] {\\tiny };\n\n\\draw[dedge] (3) -- (4) node[midway, above,sloped] {\\small $d$};\n\n\\draw[edge] (4) -- (5) node[midway, left] {\\tiny };\n\\draw[edge] (4) -- (6) node[midway, below,sloped] {\\tiny };\n\\draw[edge] (4) -- (7) node[pos=0.35, above,sloped] {\\tiny };\n\\draw[edge] (5) -- (6) node[pos=0.65, above,sloped] {\\tiny };\n\\draw[edge] (5) -- (7) node[pos=0.67, above,sloped] {\\tiny };\n\\draw[edge] (6) -- (7) node[midway, right] {\\tiny };\n\n\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ 20 ]
egraph_e6
\documentclass[tikz,border=5]{standalone} \usepackage{amssymb,enumerate,psfrag,graphicx,amsfonts,amsrefs,amsthm,mathrsfs,amsmath,amscd,version,graphicx} \usepackage{xcolor} \usepackage{tikz-cd} \usepackage{tikz} \usetikzlibrary{arrows} \tikzset{ vertex/.style={draw,circle,inner sep=2 pt, minimum size=6pt}, edge/.style={thick}, dedge/.style ={->,> = latex',thick} } \usetikzlibrary{decorations.markings} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture} \draw[ultra thick, gray,opacity=0.5, rounded corners] (-0.6,-1.5) rectangle (2.6,1.5); \node[gray,left] at (-0.6,1){$E_1$}; \draw[ultra thick, gray,opacity=0.5,rounded corners] (1.4,0.5) rectangle (5,3); \node[gray,above] at (3,3){$E_2$}; \draw[ultra thick, gray,opacity=0.5,rounded corners] (1.5,-0.5) rectangle (4.5,-1.8); \node[gray,below] at (3,-1.8){$E_5$}; \draw[ultra thick, gray,opacity=0.5,rounded corners] (3.4,-1.5) rectangle (6.6,1.5); \node[gray,right] at (6.5,-0.3){$E_4$}; \draw[ultra thick, gray,opacity=0.5,rounded corners] (3.5,2.5)--(4.6,3.6)--(7.1,1.1)--(6,0)--cycle; \node[gray] at (6.2,2.6){$E_3$}; \node[vertex] (1) at (0,0){}; \node[vertex] (2) at (2,1) {}; \node[vertex] (3) at (2,-1) {}; \node[vertex] (4) at (4,-1) {}; \node[vertex] (5) at (4,1) {}; \node[vertex] (6) at (6,-1) {}; \node[vertex] (7) at (6,1) {}; \node[vertex] (8) at (4.5,2.5) {}; \draw[dedge] (1) -- (2) node[midway, above,sloped] {\small $a$}; \draw[dedge] (2) -- (3) node[midway, right] {\small $b$}; \draw[dedge] (1) -- (3) node[midway, below,sloped] {\small $ab$}; \draw[dedge] (2) -- (5) node[midway, above,sloped] {\small $c$}; \draw[dedge] (8) -- (5) node[midway,left] {\small $c$}; \draw[edge] (2) -- (8) node[midway, above,sloped] {\tiny }; \draw[edge] (8) -- (7) node[midway, above,sloped] {\tiny }; \draw[dedge] (3) -- (4) node[midway, above,sloped] {\small $d$}; \draw[edge] (4) -- (5) node[midway, left] {\tiny }; \draw[edge] (4) -- (6) node[midway, below,sloped] {\tiny }; \draw[edge] (4) -- (7) node[pos=0.35, above,sloped] {\tiny }; \draw[edge] (5) -- (6) node[pos=0.65, above,sloped] {\tiny }; \draw[edge] (5) -- (7) node[pos=0.67, above,sloped] {\tiny }; \draw[edge] (6) -- (7) node[midway, right] {\tiny }; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{amssymb,enumerate,psfrag,graphicx,amsfonts,amsrefs,amsthm,mathrsfs,amsmath,amscd,version,graphicx} \usepackage{xcolor} \usepackage{tikz-cd} \usepackage{tikz} \usetikzlibrary{arrows} \tikzset{ vertex/.style={draw,circle,inner sep=2 pt, minimum size=6pt}, edge/.style={thick}, dedge/.style ={->,> = latex',thick} } \usetikzlibrary{decorations.markings} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture} \draw[ultra thick, gray,opacity=0.5, rounded corners] (-0.6,-1.5) rectangle (2.6,1.5); \node[gray,left] at (-0.6,1){$E_1$}; \draw[ultra thick, gray,opacity=0.5,rounded corners] (1.4,0.5) rectangle (5,3); \node[gray,above] at (3,3){$E_2$}; \draw[ultra thick, gray,opacity=0.5,rounded corners] (1.5,-0.5) rectangle (4.5,-1.8); \node[gray,below] at (3,-1.8){$E_5$}; \draw[ultra thick, gray,opacity=0.5,rounded corners] (3.4,-1.5) rectangle (6.6,1.5); \node[gray,right] at (6.5,-0.3){$E_4$}; \draw[ultra thick, gray,opacity=0.5,rounded corners] (3.5,2.5)--(4.6,3.6)--(7.1,1.1)--(6,0)--cycle; \node[gray] at (6.2,2.6){$E_3$}; % vertices \node[vertex] (1) at (0,0){}; \node[vertex] (2) at (2,1) {}; \node[vertex] (3) at (2,-1) {}; \node[vertex] (4) at (4,-1) {}; \node[vertex] (5) at (4,1) {}; \node[vertex] (6) at (6,-1) {}; \node[vertex] (7) at (6,1) {}; \node[vertex] (8) at (4.5,2.5) {}; %edges \draw[dedge] (1) -- (2) node[midway, above,sloped] {\small $a$}; \draw[dedge] (2) -- (3) node[midway, right] {\small $b$}; \draw[dedge] (1) -- (3) node[midway, below,sloped] {\small $ab$}; \draw[dedge] (2) -- (5) node[midway, above,sloped] {\small $c$}; \draw[dedge] (8) -- (5) node[midway,left] {\small $c$}; \draw[edge] (2) -- (8) node[midway, above,sloped] {\tiny }; \draw[edge] (8) -- (7) node[midway, above,sloped] {\tiny }; \draw[dedge] (3) -- (4) node[midway, above,sloped] {\small $d$}; \draw[edge] (4) -- (5) node[midway, left] {\tiny }; \draw[edge] (4) -- (6) node[midway, below,sloped] {\tiny }; \draw[edge] (4) -- (7) node[pos=0.35, above,sloped] {\tiny }; \draw[edge] (5) -- (6) node[pos=0.65, above,sloped] {\tiny }; \draw[edge] (5) -- (7) node[pos=0.67, above,sloped] {\tiny }; \draw[edge] (6) -- (7) node[midway, right] {\tiny }; \end{tikzpicture} \end{document}
Add a E_6 box, that contains the two bottom-left vertices (connected by ab). The box should be angled slightly so that it aligns with the ab arrow.
A graph with nodes contained in areas number E1 to E6
hard
add
scientific
[ "@@ -25,0 +26,2 @@\n\n+\\draw[ultra thick, gray, opacity=0.5, rounded corners] (-0.7,-0.2)--(-0.2,0.8)--(2.6,-0.6)--(2.1,-1.6)--cycle;\n+\\node[gray] at (0.6,-1.2){$E_6$};" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amssymb,enumerate,psfrag,graphicx,amsfonts,amsrefs,amsthm,mathrsfs,amsmath,amscd,version,graphicx}\n\\usepackage{xcolor}\n\\usepackage{tikz-cd}\n\\usepackage{tikz}\n\\usetikzlibrary{arrows}\n\\tikzset{\n vertex/.style={draw,circle,inner sep=2 pt, minimum size=6pt},\n edge/.style={thick},\n dedge/.style ={->,> = latex',thick}\n }\n\\usetikzlibrary{decorations.markings}\n\\usetikzlibrary{arrows.meta}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n\\draw[ultra thick, gray,opacity=0.5, rounded corners] (-0.6,-1.5) rectangle (2.6,1.5);\n\\node[gray,left] at (-0.6,1){$E_1$};\n\n\n\\draw[ultra thick, gray,opacity=0.5,rounded corners] (1.4,0.5) rectangle (5,3);\n\\node[gray,above] at (3,3){$E_2$};\n\n\\draw[ultra thick, gray,opacity=0.5,rounded corners] (1.5,-0.5) rectangle (4.5,-1.8);\n\\node[gray,below] at (3,-1.8){$E_5$};\n\n\\draw[ultra thick, gray,opacity=0.5,rounded corners] (3.4,-1.5) rectangle (6.6,1.5);\n\\node[gray,right] at (6.5,-0.3){$E_4$};\n\n\n\\draw[ultra thick, gray,opacity=0.5,rounded corners] (3.5,2.5)--(4.6,3.6)--(7.1,1.1)--(6,0)--cycle;\n\\node[gray] at (6.2,2.6){$E_3$};\n\n\\draw[ultra thick, gray, opacity=0.5, rounded corners] (§rangei(-0.7,0.2),§rangei(-0.2,0.2))--(§rangei(-0.2,0.2),§rangei(0.8,0.2))--(§rangei(2.6,0.2),§rangei(-0.6,0.2))--(§rangei(2.1,0.2),§rangei(-1.6,0.2))--cycle;\n\\node[gray] at (0.6,-1.2){$E_6$};\n\\node[vertex] (1) at (0,0){};\n\\node[vertex] (2) at (2,1) {};\n\\node[vertex] (3) at (2,-1) {};\n\n\\node[vertex] (4) at (4,-1) {};\n\\node[vertex] (5) at (4,1) {};\n\\node[vertex] (6) at (6,-1) {};\n\\node[vertex] (7) at (6,1) {};\n\\node[vertex] (8) at (4.5,2.5) {};\n\n\n\n\n\\draw[dedge] (1) -- (2) node[midway, above,sloped] {\\small $a$};\n\\draw[dedge] (2) -- (3) node[midway, right] {\\small $b$};\n\\draw[dedge] (1) -- (3) node[midway, below,sloped] {\\small $ab$};\n\n\\draw[dedge] (2) -- (5) node[midway, above,sloped] {\\small $c$};\n\\draw[dedge] (8) -- (5) node[midway,left] {\\small $c$};\n\\draw[edge] (2) -- (8) node[midway, above,sloped] {\\tiny };\n\n\\draw[edge] (8) -- (7) node[midway, above,sloped] {\\tiny };\n\n\\draw[dedge] (3) -- (4) node[midway, above,sloped] {\\small $d$};\n\n\\draw[edge] (4) -- (5) node[midway, left] {\\tiny };\n\\draw[edge] (4) -- (6) node[midway, below,sloped] {\\tiny };\n\\draw[edge] (4) -- (7) node[pos=0.35, above,sloped] {\\tiny };\n\\draw[edge] (5) -- (6) node[pos=0.65, above,sloped] {\\tiny };\n\\draw[edge] (5) -- (7) node[pos=0.67, above,sloped] {\\tiny };\n\\draw[edge] (6) -- (7) node[midway, right] {\\tiny };\n\n\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amssymb,enumerate,psfrag,graphicx,amsfonts,amsrefs,amsthm,mathrsfs,amsmath,amscd,version,graphicx}\n\\usepackage{xcolor}\n\\usepackage{tikz-cd}\n\\usepackage{tikz}\n\\usetikzlibrary{arrows}\n\\tikzset{\n vertex/.style={draw,circle,inner sep=2 pt, minimum size=6pt},\n edge/.style={thick},\n dedge/.style ={->,> = latex',thick}\n }\n\\usetikzlibrary{decorations.markings}\n\\usetikzlibrary{arrows.meta}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n\\draw[ultra thick, gray,opacity=0.5, rounded corners] (-0.6,-1.5) rectangle (2.6,1.5);\n\\node[gray,left] at (-0.6,1){$E_1$};\n\n\n\\draw[ultra thick, gray,opacity=0.5,rounded corners] (1.4,0.5) rectangle (5,3);\n\\node[gray,above] at (3,3){$E_2$};\n\n\\draw[ultra thick, gray,opacity=0.5,rounded corners] (1.5,-0.5) rectangle (4.5,-1.8);\n\\node[gray,below] at (3,-1.8){$E_5$};\n\n\\draw[ultra thick, gray,opacity=0.5,rounded corners] (3.4,-1.5) rectangle (6.6,1.5);\n\\node[gray,right] at (6.5,-0.3){$E_4$};\n\n\n\\draw[ultra thick, gray,opacity=0.5,rounded corners] (3.5,2.5)--(4.6,3.6)--(7.1,1.1)--(6,0)--cycle;\n\\node[gray] at (6.2,2.6){$E_3$};\n\n\\draw[ultra thick, gray, opacity=0.5, rounded corners] (-0.7,-0.2)--(-0.2,0.8)--(2.6,-0.6)--(2.1,-1.6)--cycle;\n\\node[gray] at (0.6,-1.2){$E_6$};\n\\node[vertex] (1) at (0,0){};\n\\node[vertex] (2) at (2,1) {};\n\\node[vertex] (3) at (2,-1) {};\n\n\\node[vertex] (4) at (4,-1) {};\n\\node[vertex] (5) at (4,1) {};\n\\node[vertex] (6) at (6,-1) {};\n\\node[vertex] (7) at (6,1) {};\n\\node[vertex] (8) at (4.5,2.5) {};\n\n\n\n\n\\draw[dedge] (1) -- (2) node[midway, above,sloped] {\\small $a$};\n\\draw[dedge] (2) -- (3) node[midway, right] {\\small $b$};\n\\draw[dedge] (1) -- (3) node[midway, below,sloped] {\\small $ab$};\n\n\\draw[dedge] (2) -- (5) node[midway, above,sloped] {\\small $c$};\n\\draw[dedge] (8) -- (5) node[midway,left] {\\small $c$};\n\\draw[edge] (2) -- (8) node[midway, above,sloped] {\\tiny };\n\n\\draw[edge] (8) -- (7) node[midway, above,sloped] {\\tiny };\n\n\\draw[dedge] (3) -- (4) node[midway, above,sloped] {\\small $d$};\n\n\\draw[edge] (4) -- (5) node[midway, left] {\\tiny };\n\\draw[edge] (4) -- (6) node[midway, below,sloped] {\\tiny };\n\\draw[edge] (4) -- (7) node[pos=0.35, above,sloped] {\\tiny };\n\\draw[edge] (5) -- (6) node[pos=0.65, above,sloped] {\\tiny };\n\\draw[edge] (5) -- (7) node[pos=0.67, above,sloped] {\\tiny };\n\\draw[edge] (6) -- (7) node[midway, right] {\\tiny };\n\n\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ 3 ]
featmodel_moved_4g
\documentclass[tikz,border=5]{standalone} \usetikzlibrary{matrix,arrows,positioning,shadows} \tikzset{ feature/.style={draw, inner sep=1.5mm, font=\small\sffamily, fill=white, drop shadow}, opt/.style={fill=white}} \begin{document} \begin{tikzpicture}[ node distance=.8cm, legendtext/.style={text width=2cm}] \node[feature] (phone) {Phone}; \matrix (sub)[matrix of nodes, below=of phone, column sep=3mm, row sep=0mm, nodes=feature]{ Processor & NFC & Camera & 4G \\ }; \matrix (group)[matrix of nodes, below=of sub-1-1, column sep=3mm, row sep=0mm, nodes=feature]{ ARM & OMAP & Snapdragon \\ }; \draw (phone.south) -- (sub-1-1.north); \draw (phone.south) -- (sub-1-2.north); \draw (phone.south) -- (sub-1-3.north); \draw (phone.south) -- (sub-1-4.north); \draw (sub-1-1.south) -- (group-1-1); \draw (sub-1-1.south) -- (group-1-2); \draw (sub-1-1.south) -- (group-1-3); \draw[-triangle 45,dashed] (sub-1-4) |- (group-1-3) node[pos=.6,anchor=south east] {implies}; \draw[opt] (sub-1-2.north) circle (.8mm); \draw[opt] (sub-1-4.north) circle (.8mm); \fill[draw] (sub-1-1.north) circle (.8mm); \fill[draw] (sub-1-3.north) circle (.8mm); \begin{scope} \path[clip] (sub-1-1.south) -- (group-1-1.center) -- (group-1-3.center) -- cycle; \draw (sub-1-1.south) circle (.5cm); \end{scope} \matrix [draw=black,fill=brown!20,left=1.5cm of phone] { \node[fill=black,draw,circle,inner sep=2pt,outer sep=0pt] (m) at (0,0){}; \draw (m) -- +(0,0.4); & \node[legendtext]{Mandatory}; & \filldraw[fill=white,draw=black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; \draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5);& \node[legendtext]{Alternative}; \\ \node[fill=white,draw=black,circle,inner sep=2pt,outer sep=0pt] (o) at (0,0){}; \draw (m) -- +(0,0.4); & \node[legendtext]{Optional}; & \draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5); \filldraw[black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; & \node[legendtext]{Or}; \\ }; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usetikzlibrary{matrix,arrows,positioning,shadows} \tikzset{ feature/.style={draw, inner sep=1.5mm, font=\small\sffamily, fill=white, drop shadow}, opt/.style={fill=white}} \begin{document} \begin{tikzpicture}[ node distance=.8cm, legendtext/.style={text width=2cm}] \node[feature] (phone) {Phone}; \matrix (sub)[matrix of nodes, below=of phone, column sep=3mm, row sep=0mm, nodes=feature]{ Processor & %sub-1-1 NFC & %sub-1-2 Camera & %sub-1-3 4G \\ %sub-1-4 }; \matrix (group)[matrix of nodes, below=of sub-1-1, column sep=3mm, row sep=0mm, nodes=feature]{ ARM & %group-1-1 OMAP & %group-1-2 Snapdragon \\ %group-1-3 }; \draw (phone.south) -- (sub-1-1.north); \draw (phone.south) -- (sub-1-2.north); \draw (phone.south) -- (sub-1-3.north); \draw (phone.south) -- (sub-1-4.north); \draw (sub-1-1.south) -- (group-1-1); \draw (sub-1-1.south) -- (group-1-2); \draw (sub-1-1.south) -- (group-1-3); %cross-tree constraint \draw[-triangle 45,dashed] (sub-1-4) |- (group-1-3) node[pos=.6,anchor=south east] {implies}; %optional / mandatory \draw[opt] (sub-1-2.north) circle (.8mm); \draw[opt] (sub-1-4.north) circle (.8mm); \fill[draw] (sub-1-1.north) circle (.8mm); \fill[draw] (sub-1-3.north) circle (.8mm); %Group arc \begin{scope} \path[clip] (sub-1-1.south) -- (group-1-1.center) -- (group-1-3.center) -- cycle; \draw (sub-1-1.south) circle (.5cm); \end{scope} \matrix [draw=black,fill=brown!20,left=1.5cm of phone] { \node[fill=black,draw,circle,inner sep=2pt,outer sep=0pt] (m) at (0,0){}; \draw (m) -- +(0,0.4); & \node[legendtext]{Mandatory}; & \filldraw[fill=white,draw=black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; \draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5);& \node[legendtext]{Alternative}; \\ \node[fill=white,draw=black,circle,inner sep=2pt,outer sep=0pt] (o) at (0,0){}; \draw (m) -- +(0,0.4); & \node[legendtext]{Optional}; & \draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5); \filldraw[black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; & \node[legendtext]{Or}; \\ }; \end{tikzpicture} \end{document}
Move the 4g feature in place of the NFC feature. Adapt the connections accordingly.
A feature model, with a 4g feature implying a Snapdragon feature.
medium
update
scientific
[ "@@ -15 +15 @@\n\n-NFC &\n+4g &\n@@ -17 +17 @@\n\n-4G \\\\\n+NFC \\\\\n@@ -33,2 +33,2 @@\n\n-\\draw[-triangle 45,dashed] (sub-1-4) |- (group-1-3)\n-node[pos=.6,anchor=south east] {implies};\n+\\draw[-triangle 45,dashed] (sub-1-2) -- (group-1-3)\n+node[pos=.6,anchor=south west] {implies};" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usetikzlibrary{matrix,arrows,positioning,shadows}\n\\tikzset{\n feature/.style={draw, inner sep=1.5mm, font=\\small\\sffamily, fill=white, drop shadow},\n opt/.style={fill=white}}\n\n\\begin{document}\n\n\\begin{tikzpicture}[\n node distance=.8cm,\n legendtext/.style={text width=2cm}]\n \\node[feature] (phone) {Phone};\n\n \\matrix (sub)[matrix of nodes,\n below=of phone,\n column sep=3mm, row sep=0mm, nodes=feature]{\n Processor & \n 4g & \n Camera & \n NFC \\\\ \n };\n\n \\matrix (group)[matrix of nodes, \n below=of sub-1-1,\n column sep=3mm, row sep=0mm, nodes=feature]{\n ARM & \n OMAP & \n Snapdragon \\\\ \n };\n\n \\draw (phone.south) -- (sub-1-1.north);\n \\draw (phone.south) -- (sub-1-2.north);\n \\draw (phone.south) -- (sub-1-3.north);\n \\draw (phone.south) -- (sub-1-4.north);\n\n \\draw (sub-1-1.south) -- (group-1-1);\n \\draw (sub-1-1.south) -- (group-1-2);\n \\draw (sub-1-1.south) -- (group-1-3);\n\n \\draw[-triangle 45,dashed] (sub-1-2) -- (group-1-3)\n node[pos=.6,anchor=south west] {implies};\n\n \\draw[opt] (sub-1-2.north) circle (.8mm); \n \\draw[opt] (sub-1-4.north) circle (.8mm); \n \\fill[draw] (sub-1-1.north) circle (.8mm); \n \\fill[draw] (sub-1-3.north) circle (.8mm); \n\n \\begin{scope}\n \\path[clip] (sub-1-1.south) -- (group-1-1.center) -- (group-1-3.center) -- cycle;\n \\draw (sub-1-1.south) circle (.5cm);\n \\end{scope}\n\n\\matrix [draw=black,fill=brown!20,left=1.5cm of phone] {\n \\node[fill=black,draw,circle,inner sep=2pt,outer sep=0pt] (m) at (0,0){}; \\draw (m) -- +(0,0.4); & \\node[legendtext]{Mandatory}; & \n \\filldraw[fill=white,draw=black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; \n \\draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5);& \\node[legendtext]{Alternative}; \\\\\n \\node[fill=white,draw=black,circle,inner sep=2pt,outer sep=0pt] (o) at (0,0){}; \\draw (m) -- +(0,0.4); & \\node[legendtext]{Optional}; & \n \\draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5);\n \\filldraw[black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; & \\node[legendtext]{Or}; \n\\\\\n};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usetikzlibrary{matrix,arrows,positioning,shadows}\n\\tikzset{\n feature/.style={draw, inner sep=1.5mm, font=\\small\\sffamily, fill=white, drop shadow},\n opt/.style={fill=white}}\n\n\\begin{document}\n\n\\begin{tikzpicture}[\n node distance=.8cm,\n legendtext/.style={text width=2cm}]\n \\node[feature] (phone) {Phone};\n\n \\matrix (sub)[matrix of nodes,\n below=of phone,\n column sep=3mm, row sep=0mm, nodes=feature]{\n Processor & \n 4g & \n Camera & \n NFC \\\\ \n };\n\n \\matrix (group)[matrix of nodes, \n below=of sub-1-1,\n column sep=3mm, row sep=0mm, nodes=feature]{\n ARM & \n OMAP & \n Snapdragon \\\\ \n };\n\n \\draw (phone.south) -- (sub-1-1.north);\n \\draw (phone.south) -- (sub-1-2.north);\n \\draw (phone.south) -- (sub-1-3.north);\n \\draw (phone.south) -- (sub-1-4.north);\n\n \\draw (sub-1-1.south) -- (group-1-1);\n \\draw (sub-1-1.south) -- (group-1-2);\n \\draw (sub-1-1.south) -- (group-1-3);\n\n \\draw[-triangle 45,dashed] (sub-1-2) -- (group-1-3)\n node[pos=.6,anchor=south west] {implies};\n\n \\draw[opt] (sub-1-2.north) circle (.8mm); \n \\draw[opt] (sub-1-4.north) circle (.8mm); \n \\fill[draw] (sub-1-1.north) circle (.8mm); \n \\fill[draw] (sub-1-3.north) circle (.8mm); \n\n \\begin{scope}\n \\path[clip] (sub-1-1.south) -- (group-1-1.center) -- (group-1-3.center) -- cycle;\n \\draw (sub-1-1.south) circle (.5cm);\n \\end{scope}\n\n\\matrix [draw=black,fill=brown!20,left=1.5cm of phone] {\n \\node[fill=black,draw,circle,inner sep=2pt,outer sep=0pt] (m) at (0,0){}; \\draw (m) -- +(0,0.4); & \\node[legendtext]{Mandatory}; & \n \\filldraw[fill=white,draw=black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; \n \\draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5);& \\node[legendtext]{Alternative}; \\\\\n \\node[fill=white,draw=black,circle,inner sep=2pt,outer sep=0pt] (o) at (0,0){}; \\draw (m) -- +(0,0.4); & \\node[legendtext]{Optional}; & \n \\draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5);\n \\filldraw[black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; & \\node[legendtext]{Or}; \n\\\\\n};\n\\end{tikzpicture}\n\\end{document}" ]
[ 1, 1, 1, 1 ]
featmodel_moved_legend
\documentclass[tikz,border=5]{standalone} \usetikzlibrary{matrix,arrows,positioning,shadows} \tikzset{ feature/.style={draw, inner sep=1.5mm, font=\small\sffamily, fill=white, drop shadow}, opt/.style={fill=white}} \begin{document} \begin{tikzpicture}[ node distance=.8cm, legendtext/.style={text width=2cm}] \node[feature] (phone) {Phone}; \matrix (sub)[matrix of nodes, below=of phone, column sep=3mm, row sep=0mm, nodes=feature]{ Processor & NFC & Camera & 4G \\ }; \matrix (group)[matrix of nodes, below=of sub-1-1, column sep=3mm, row sep=0mm, nodes=feature]{ ARM & OMAP & Snapdragon \\ }; \draw (phone.south) -- (sub-1-1.north); \draw (phone.south) -- (sub-1-2.north); \draw (phone.south) -- (sub-1-3.north); \draw (phone.south) -- (sub-1-4.north); \draw (sub-1-1.south) -- (group-1-1); \draw (sub-1-1.south) -- (group-1-2); \draw (sub-1-1.south) -- (group-1-3); \draw[-triangle 45,dashed] (sub-1-4) |- (group-1-3) node[pos=.6,anchor=south east] {implies}; \draw[opt] (sub-1-2.north) circle (.8mm); \draw[opt] (sub-1-4.north) circle (.8mm); \fill[draw] (sub-1-1.north) circle (.8mm); \fill[draw] (sub-1-3.north) circle (.8mm); \begin{scope} \path[clip] (sub-1-1.south) -- (group-1-1.center) -- (group-1-3.center) -- cycle; \draw (sub-1-1.south) circle (.5cm); \end{scope} \matrix [draw=black,fill=brown!20,left=1.5cm of phone] { \node[fill=black,draw,circle,inner sep=2pt,outer sep=0pt] (m) at (0,0){}; \draw (m) -- +(0,0.4); & \node[legendtext]{Mandatory}; & \filldraw[fill=white,draw=black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; \draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5);& \node[legendtext]{Alternative}; \\ \node[fill=white,draw=black,circle,inner sep=2pt,outer sep=0pt] (o) at (0,0){}; \draw (m) -- +(0,0.4); & \node[legendtext]{Optional}; & \draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5); \filldraw[black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; & \node[legendtext]{Or}; \\ }; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usetikzlibrary{matrix,arrows,positioning,shadows} \tikzset{ feature/.style={draw, inner sep=1.5mm, font=\small\sffamily, fill=white, drop shadow}, opt/.style={fill=white}} \begin{document} \begin{tikzpicture}[ node distance=.8cm, legendtext/.style={text width=2cm}] \node[feature] (phone) {Phone}; \matrix (sub)[matrix of nodes, below=of phone, column sep=3mm, row sep=0mm, nodes=feature]{ Processor & %sub-1-1 NFC & %sub-1-2 Camera & %sub-1-3 4G \\ %sub-1-4 }; \matrix (group)[matrix of nodes, below=of sub-1-1, column sep=3mm, row sep=0mm, nodes=feature]{ ARM & %group-1-1 OMAP & %group-1-2 Snapdragon \\ %group-1-3 }; \draw (phone.south) -- (sub-1-1.north); \draw (phone.south) -- (sub-1-2.north); \draw (phone.south) -- (sub-1-3.north); \draw (phone.south) -- (sub-1-4.north); \draw (sub-1-1.south) -- (group-1-1); \draw (sub-1-1.south) -- (group-1-2); \draw (sub-1-1.south) -- (group-1-3); %cross-tree constraint \draw[-triangle 45,dashed] (sub-1-4) |- (group-1-3) node[pos=.6,anchor=south east] {implies}; %optional / mandatory \draw[opt] (sub-1-2.north) circle (.8mm); \draw[opt] (sub-1-4.north) circle (.8mm); \fill[draw] (sub-1-1.north) circle (.8mm); \fill[draw] (sub-1-3.north) circle (.8mm); %Group arc \begin{scope} \path[clip] (sub-1-1.south) -- (group-1-1.center) -- (group-1-3.center) -- cycle; \draw (sub-1-1.south) circle (.5cm); \end{scope} \matrix [draw=black,fill=brown!20,left=1.5cm of phone] { \node[fill=black,draw,circle,inner sep=2pt,outer sep=0pt] (m) at (0,0){}; \draw (m) -- +(0,0.4); & \node[legendtext]{Mandatory}; & \filldraw[fill=white,draw=black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; \draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5);& \node[legendtext]{Alternative}; \\ \node[fill=white,draw=black,circle,inner sep=2pt,outer sep=0pt] (o) at (0,0){}; \draw (m) -- +(0,0.4); & \node[legendtext]{Optional}; & \draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5); \filldraw[black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; & \node[legendtext]{Or}; \\ }; \end{tikzpicture} \end{document}
Move the legend to the bottom right of the image.
A feature model, with a legend on the bottom right
easy
update
scientific
[ "@@ -43 +43 @@\n\n-\\matrix [draw=black,fill=brown!20,left=1.5cm of phone] {\n+\\matrix [draw=black,fill=brown!20,below=2cm of sub-1-4] {", "@@ -43 +43 @@\n\n-\\matrix [draw=black,fill=brown!20,left=1.5cm of phone] {\n+\\matrix [draw=black,fill=brown!20,xshift=105,yshift=-130] {", "@@ -43 +43 @@\n\n-\\matrix [draw=black,fill=brown!20,left=1.5cm of phone] {\n+\\matrix [draw=black,fill=brown!20,right=2cm of group-1-3] {", "@@ -43 +43 @@\n\n-\\matrix [draw=black,fill=brown!20,left=1.5cm of phone] {\n+\\matrix [draw=black,fill=brown!20,yshift=-130,xshift=105] {" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usetikzlibrary{matrix,arrows,positioning,shadows}\n\\tikzset{\n feature/.style={draw, inner sep=1.5mm, font=\\small\\sffamily, fill=white, drop shadow},\n opt/.style={fill=white}}\n\n\\begin{document}\n\n\\begin{tikzpicture}[\n node distance=.8cm,\n legendtext/.style={text width=2cm}]\n \\node[feature] (phone) {Phone};\n\n \\matrix (sub)[matrix of nodes,\n below=of phone,\n column sep=3mm, row sep=0mm, nodes=feature]{\n Processor & \n NFC & \n Camera & \n 4G \\\\ \n };\n\n \\matrix (group)[matrix of nodes, \n below=of sub-1-1,\n column sep=3mm, row sep=0mm, nodes=feature]{\n ARM & \n OMAP & \n Snapdragon \\\\ \n };\n\n \\draw (phone.south) -- (sub-1-1.north);\n \\draw (phone.south) -- (sub-1-2.north);\n \\draw (phone.south) -- (sub-1-3.north);\n \\draw (phone.south) -- (sub-1-4.north);\n\n \\draw (sub-1-1.south) -- (group-1-1);\n \\draw (sub-1-1.south) -- (group-1-2);\n \\draw (sub-1-1.south) -- (group-1-3);\n\n \\draw[-triangle 45,dashed] (sub-1-4) |- (group-1-3)\n node[pos=.6,anchor=south east] {implies};\n\n \\draw[opt] (sub-1-2.north) circle (.8mm); \n \\draw[opt] (sub-1-4.north) circle (.8mm); \n \\fill[draw] (sub-1-1.north) circle (.8mm); \n \\fill[draw] (sub-1-3.north) circle (.8mm); \n\n \\begin{scope}\n \\path[clip] (sub-1-1.south) -- (group-1-1.center) -- (group-1-3.center) -- cycle;\n \\draw (sub-1-1.south) circle (.5cm);\n \\end{scope}\n\n\\matrix [draw=black,fill=brown!20,below=§range(2,3,2)cm of sub-1-4] {\n \\node[fill=black,draw,circle,inner sep=2pt,outer sep=0pt] (m) at (0,0){}; \\draw (m) -- +(0,0.4); & \\node[legendtext]{Mandatory}; & \n \\filldraw[fill=white,draw=black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; \n \\draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5);& \\node[legendtext]{Alternative}; \\\\\n \\node[fill=white,draw=black,circle,inner sep=2pt,outer sep=0pt] (o) at (0,0){}; \\draw (m) -- +(0,0.4); & \\node[legendtext]{Optional}; & \n \\draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5);\n \\filldraw[black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; & \\node[legendtext]{Or}; \n\\\\\n};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usetikzlibrary{matrix,arrows,positioning,shadows}\n\\tikzset{\n feature/.style={draw, inner sep=1.5mm, font=\\small\\sffamily, fill=white, drop shadow},\n opt/.style={fill=white}}\n\n\\begin{document}\n\n\\begin{tikzpicture}[\n node distance=.8cm,\n legendtext/.style={text width=2cm}]\n \\node[feature] (phone) {Phone};\n\n \\matrix (sub)[matrix of nodes,\n below=of phone,\n column sep=3mm, row sep=0mm, nodes=feature]{\n Processor & \n NFC & \n Camera & \n 4G \\\\ \n };\n\n \\matrix (group)[matrix of nodes, \n below=of sub-1-1,\n column sep=3mm, row sep=0mm, nodes=feature]{\n ARM & \n OMAP & \n Snapdragon \\\\ \n };\n\n \\draw (phone.south) -- (sub-1-1.north);\n \\draw (phone.south) -- (sub-1-2.north);\n \\draw (phone.south) -- (sub-1-3.north);\n \\draw (phone.south) -- (sub-1-4.north);\n\n \\draw (sub-1-1.south) -- (group-1-1);\n \\draw (sub-1-1.south) -- (group-1-2);\n \\draw (sub-1-1.south) -- (group-1-3);\n\n \\draw[-triangle 45,dashed] (sub-1-4) |- (group-1-3)\n node[pos=.6,anchor=south east] {implies};\n\n \\draw[opt] (sub-1-2.north) circle (.8mm); \n \\draw[opt] (sub-1-4.north) circle (.8mm); \n \\fill[draw] (sub-1-1.north) circle (.8mm); \n \\fill[draw] (sub-1-3.north) circle (.8mm); \n\n \\begin{scope}\n \\path[clip] (sub-1-1.south) -- (group-1-1.center) -- (group-1-3.center) -- cycle;\n \\draw (sub-1-1.south) circle (.5cm);\n \\end{scope}\n\n\\matrix [draw=black,fill=brown!20,xshift=§rangei(105,10),yshift=§rangei(-130,20)] {\n \\node[fill=black,draw,circle,inner sep=2pt,outer sep=0pt] (m) at (0,0){}; \\draw (m) -- +(0,0.4); & \\node[legendtext]{Mandatory}; & \n \\filldraw[fill=white,draw=black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; \n \\draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5);& \\node[legendtext]{Alternative}; \\\\\n \\node[fill=white,draw=black,circle,inner sep=2pt,outer sep=0pt] (o) at (0,0){}; \\draw (m) -- +(0,0.4); & \\node[legendtext]{Optional}; & \n \\draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5);\n \\filldraw[black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; & \\node[legendtext]{Or}; \n\\\\\n};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usetikzlibrary{matrix,arrows,positioning,shadows}\n\\tikzset{\n feature/.style={draw, inner sep=1.5mm, font=\\small\\sffamily, fill=white, drop shadow},\n opt/.style={fill=white}}\n\n\\begin{document}\n\n\\begin{tikzpicture}[\n node distance=.8cm,\n legendtext/.style={text width=2cm}]\n \\node[feature] (phone) {Phone};\n\n \\matrix (sub)[matrix of nodes,\n below=of phone,\n column sep=3mm, row sep=0mm, nodes=feature]{\n Processor & \n NFC & \n Camera & \n 4G \\\\ \n };\n\n \\matrix (group)[matrix of nodes, \n below=of sub-1-1,\n column sep=3mm, row sep=0mm, nodes=feature]{\n ARM & \n OMAP & \n Snapdragon \\\\ \n };\n\n \\draw (phone.south) -- (sub-1-1.north);\n \\draw (phone.south) -- (sub-1-2.north);\n \\draw (phone.south) -- (sub-1-3.north);\n \\draw (phone.south) -- (sub-1-4.north);\n\n \\draw (sub-1-1.south) -- (group-1-1);\n \\draw (sub-1-1.south) -- (group-1-2);\n \\draw (sub-1-1.south) -- (group-1-3);\n\n \\draw[-triangle 45,dashed] (sub-1-4) |- (group-1-3)\n node[pos=.6,anchor=south east] {implies};\n\n \\draw[opt] (sub-1-2.north) circle (.8mm); \n \\draw[opt] (sub-1-4.north) circle (.8mm); \n \\fill[draw] (sub-1-1.north) circle (.8mm); \n \\fill[draw] (sub-1-3.north) circle (.8mm); \n\n \\begin{scope}\n \\path[clip] (sub-1-1.south) -- (group-1-1.center) -- (group-1-3.center) -- cycle;\n \\draw (sub-1-1.south) circle (.5cm);\n \\end{scope}\n\n\\matrix [draw=black,fill=brown!20,right=§range(2,3,2)cm of group-1-3] {\n \\node[fill=black,draw,circle,inner sep=2pt,outer sep=0pt] (m) at (0,0){}; \\draw (m) -- +(0,0.4); & \\node[legendtext]{Mandatory}; & \n \\filldraw[fill=white,draw=black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; \n \\draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5);& \\node[legendtext]{Alternative}; \\\\\n \\node[fill=white,draw=black,circle,inner sep=2pt,outer sep=0pt] (o) at (0,0){}; \\draw (m) -- +(0,0.4); & \\node[legendtext]{Optional}; & \n \\draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5);\n \\filldraw[black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; & \\node[legendtext]{Or}; \n\\\\\n};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usetikzlibrary{matrix,arrows,positioning,shadows}\n\\tikzset{\n feature/.style={draw, inner sep=1.5mm, font=\\small\\sffamily, fill=white, drop shadow},\n opt/.style={fill=white}}\n\n\\begin{document}\n\n\\begin{tikzpicture}[\n node distance=.8cm,\n legendtext/.style={text width=2cm}]\n \\node[feature] (phone) {Phone};\n\n \\matrix (sub)[matrix of nodes,\n below=of phone,\n column sep=3mm, row sep=0mm, nodes=feature]{\n Processor & \n NFC & \n Camera & \n 4G \\\\ \n };\n\n \\matrix (group)[matrix of nodes, \n below=of sub-1-1,\n column sep=3mm, row sep=0mm, nodes=feature]{\n ARM & \n OMAP & \n Snapdragon \\\\ \n };\n\n \\draw (phone.south) -- (sub-1-1.north);\n \\draw (phone.south) -- (sub-1-2.north);\n \\draw (phone.south) -- (sub-1-3.north);\n \\draw (phone.south) -- (sub-1-4.north);\n\n \\draw (sub-1-1.south) -- (group-1-1);\n \\draw (sub-1-1.south) -- (group-1-2);\n \\draw (sub-1-1.south) -- (group-1-3);\n\n \\draw[-triangle 45,dashed] (sub-1-4) |- (group-1-3)\n node[pos=.6,anchor=south east] {implies};\n\n \\draw[opt] (sub-1-2.north) circle (.8mm); \n \\draw[opt] (sub-1-4.north) circle (.8mm); \n \\fill[draw] (sub-1-1.north) circle (.8mm); \n \\fill[draw] (sub-1-3.north) circle (.8mm); \n\n \\begin{scope}\n \\path[clip] (sub-1-1.south) -- (group-1-1.center) -- (group-1-3.center) -- cycle;\n \\draw (sub-1-1.south) circle (.5cm);\n \\end{scope}\n\n\\matrix [draw=black,fill=brown!20,yshift=§rangei(-130,20),xshift=§rangei(105,10)] {\n \\node[fill=black,draw,circle,inner sep=2pt,outer sep=0pt] (m) at (0,0){}; \\draw (m) -- +(0,0.4); & \\node[legendtext]{Mandatory}; & \n \\filldraw[fill=white,draw=black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; \n \\draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5);& \\node[legendtext]{Alternative}; \\\\\n \\node[fill=white,draw=black,circle,inner sep=2pt,outer sep=0pt] (o) at (0,0){}; \\draw (m) -- +(0,0.4); & \\node[legendtext]{Optional}; & \n \\draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5);\n \\filldraw[black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; & \\node[legendtext]{Or}; \n\\\\\n};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usetikzlibrary{matrix,arrows,positioning,shadows}\n\\tikzset{\n feature/.style={draw, inner sep=1.5mm, font=\\small\\sffamily, fill=white, drop shadow},\n opt/.style={fill=white}}\n\n\\begin{document}\n\n\\begin{tikzpicture}[\n node distance=.8cm,\n legendtext/.style={text width=2cm}]\n \\node[feature] (phone) {Phone};\n\n \\matrix (sub)[matrix of nodes,\n below=of phone,\n column sep=3mm, row sep=0mm, nodes=feature]{\n Processor & \n NFC & \n Camera & \n 4G \\\\ \n };\n\n \\matrix (group)[matrix of nodes, \n below=of sub-1-1,\n column sep=3mm, row sep=0mm, nodes=feature]{\n ARM & \n OMAP & \n Snapdragon \\\\ \n };\n\n \\draw (phone.south) -- (sub-1-1.north);\n \\draw (phone.south) -- (sub-1-2.north);\n \\draw (phone.south) -- (sub-1-3.north);\n \\draw (phone.south) -- (sub-1-4.north);\n\n \\draw (sub-1-1.south) -- (group-1-1);\n \\draw (sub-1-1.south) -- (group-1-2);\n \\draw (sub-1-1.south) -- (group-1-3);\n\n \\draw[-triangle 45,dashed] (sub-1-4) |- (group-1-3)\n node[pos=.6,anchor=south east] {implies};\n\n \\draw[opt] (sub-1-2.north) circle (.8mm); \n \\draw[opt] (sub-1-4.north) circle (.8mm); \n \\fill[draw] (sub-1-1.north) circle (.8mm); \n \\fill[draw] (sub-1-3.north) circle (.8mm); \n\n \\begin{scope}\n \\path[clip] (sub-1-1.south) -- (group-1-1.center) -- (group-1-3.center) -- cycle;\n \\draw (sub-1-1.south) circle (.5cm);\n \\end{scope}\n\n\\matrix [draw=black,fill=brown!20,below=2cm of sub-1-4] {\n \\node[fill=black,draw,circle,inner sep=2pt,outer sep=0pt] (m) at (0,0){}; \\draw (m) -- +(0,0.4); & \\node[legendtext]{Mandatory}; & \n \\filldraw[fill=white,draw=black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; \n \\draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5);& \\node[legendtext]{Alternative}; \\\\\n \\node[fill=white,draw=black,circle,inner sep=2pt,outer sep=0pt] (o) at (0,0){}; \\draw (m) -- +(0,0.4); & \\node[legendtext]{Optional}; & \n \\draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5);\n \\filldraw[black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; & \\node[legendtext]{Or}; \n\\\\\n};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usetikzlibrary{matrix,arrows,positioning,shadows}\n\\tikzset{\n feature/.style={draw, inner sep=1.5mm, font=\\small\\sffamily, fill=white, drop shadow},\n opt/.style={fill=white}}\n\n\\begin{document}\n\n\\begin{tikzpicture}[\n node distance=.8cm,\n legendtext/.style={text width=2cm}]\n \\node[feature] (phone) {Phone};\n\n \\matrix (sub)[matrix of nodes,\n below=of phone,\n column sep=3mm, row sep=0mm, nodes=feature]{\n Processor & \n NFC & \n Camera & \n 4G \\\\ \n };\n\n \\matrix (group)[matrix of nodes, \n below=of sub-1-1,\n column sep=3mm, row sep=0mm, nodes=feature]{\n ARM & \n OMAP & \n Snapdragon \\\\ \n };\n\n \\draw (phone.south) -- (sub-1-1.north);\n \\draw (phone.south) -- (sub-1-2.north);\n \\draw (phone.south) -- (sub-1-3.north);\n \\draw (phone.south) -- (sub-1-4.north);\n\n \\draw (sub-1-1.south) -- (group-1-1);\n \\draw (sub-1-1.south) -- (group-1-2);\n \\draw (sub-1-1.south) -- (group-1-3);\n\n \\draw[-triangle 45,dashed] (sub-1-4) |- (group-1-3)\n node[pos=.6,anchor=south east] {implies};\n\n \\draw[opt] (sub-1-2.north) circle (.8mm); \n \\draw[opt] (sub-1-4.north) circle (.8mm); \n \\fill[draw] (sub-1-1.north) circle (.8mm); \n \\fill[draw] (sub-1-3.north) circle (.8mm); \n\n \\begin{scope}\n \\path[clip] (sub-1-1.south) -- (group-1-1.center) -- (group-1-3.center) -- cycle;\n \\draw (sub-1-1.south) circle (.5cm);\n \\end{scope}\n\n\\matrix [draw=black,fill=brown!20,xshift=105,yshift=-130] {\n \\node[fill=black,draw,circle,inner sep=2pt,outer sep=0pt] (m) at (0,0){}; \\draw (m) -- +(0,0.4); & \\node[legendtext]{Mandatory}; & \n \\filldraw[fill=white,draw=black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; \n \\draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5);& \\node[legendtext]{Alternative}; \\\\\n \\node[fill=white,draw=black,circle,inner sep=2pt,outer sep=0pt] (o) at (0,0){}; \\draw (m) -- +(0,0.4); & \\node[legendtext]{Optional}; & \n \\draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5);\n \\filldraw[black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; & \\node[legendtext]{Or}; \n\\\\\n};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usetikzlibrary{matrix,arrows,positioning,shadows}\n\\tikzset{\n feature/.style={draw, inner sep=1.5mm, font=\\small\\sffamily, fill=white, drop shadow},\n opt/.style={fill=white}}\n\n\\begin{document}\n\n\\begin{tikzpicture}[\n node distance=.8cm,\n legendtext/.style={text width=2cm}]\n \\node[feature] (phone) {Phone};\n\n \\matrix (sub)[matrix of nodes,\n below=of phone,\n column sep=3mm, row sep=0mm, nodes=feature]{\n Processor & \n NFC & \n Camera & \n 4G \\\\ \n };\n\n \\matrix (group)[matrix of nodes, \n below=of sub-1-1,\n column sep=3mm, row sep=0mm, nodes=feature]{\n ARM & \n OMAP & \n Snapdragon \\\\ \n };\n\n \\draw (phone.south) -- (sub-1-1.north);\n \\draw (phone.south) -- (sub-1-2.north);\n \\draw (phone.south) -- (sub-1-3.north);\n \\draw (phone.south) -- (sub-1-4.north);\n\n \\draw (sub-1-1.south) -- (group-1-1);\n \\draw (sub-1-1.south) -- (group-1-2);\n \\draw (sub-1-1.south) -- (group-1-3);\n\n \\draw[-triangle 45,dashed] (sub-1-4) |- (group-1-3)\n node[pos=.6,anchor=south east] {implies};\n\n \\draw[opt] (sub-1-2.north) circle (.8mm); \n \\draw[opt] (sub-1-4.north) circle (.8mm); \n \\fill[draw] (sub-1-1.north) circle (.8mm); \n \\fill[draw] (sub-1-3.north) circle (.8mm); \n\n \\begin{scope}\n \\path[clip] (sub-1-1.south) -- (group-1-1.center) -- (group-1-3.center) -- cycle;\n \\draw (sub-1-1.south) circle (.5cm);\n \\end{scope}\n\n\\matrix [draw=black,fill=brown!20,right=2cm of group-1-3] {\n \\node[fill=black,draw,circle,inner sep=2pt,outer sep=0pt] (m) at (0,0){}; \\draw (m) -- +(0,0.4); & \\node[legendtext]{Mandatory}; & \n \\filldraw[fill=white,draw=black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; \n \\draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5);& \\node[legendtext]{Alternative}; \\\\\n \\node[fill=white,draw=black,circle,inner sep=2pt,outer sep=0pt] (o) at (0,0){}; \\draw (m) -- +(0,0.4); & \\node[legendtext]{Optional}; & \n \\draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5);\n \\filldraw[black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; & \\node[legendtext]{Or}; \n\\\\\n};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usetikzlibrary{matrix,arrows,positioning,shadows}\n\\tikzset{\n feature/.style={draw, inner sep=1.5mm, font=\\small\\sffamily, fill=white, drop shadow},\n opt/.style={fill=white}}\n\n\\begin{document}\n\n\\begin{tikzpicture}[\n node distance=.8cm,\n legendtext/.style={text width=2cm}]\n \\node[feature] (phone) {Phone};\n\n \\matrix (sub)[matrix of nodes,\n below=of phone,\n column sep=3mm, row sep=0mm, nodes=feature]{\n Processor & \n NFC & \n Camera & \n 4G \\\\ \n };\n\n \\matrix (group)[matrix of nodes, \n below=of sub-1-1,\n column sep=3mm, row sep=0mm, nodes=feature]{\n ARM & \n OMAP & \n Snapdragon \\\\ \n };\n\n \\draw (phone.south) -- (sub-1-1.north);\n \\draw (phone.south) -- (sub-1-2.north);\n \\draw (phone.south) -- (sub-1-3.north);\n \\draw (phone.south) -- (sub-1-4.north);\n\n \\draw (sub-1-1.south) -- (group-1-1);\n \\draw (sub-1-1.south) -- (group-1-2);\n \\draw (sub-1-1.south) -- (group-1-3);\n\n \\draw[-triangle 45,dashed] (sub-1-4) |- (group-1-3)\n node[pos=.6,anchor=south east] {implies};\n\n \\draw[opt] (sub-1-2.north) circle (.8mm); \n \\draw[opt] (sub-1-4.north) circle (.8mm); \n \\fill[draw] (sub-1-1.north) circle (.8mm); \n \\fill[draw] (sub-1-3.north) circle (.8mm); \n\n \\begin{scope}\n \\path[clip] (sub-1-1.south) -- (group-1-1.center) -- (group-1-3.center) -- cycle;\n \\draw (sub-1-1.south) circle (.5cm);\n \\end{scope}\n\n\\matrix [draw=black,fill=brown!20,yshift=-130,xshift=105] {\n \\node[fill=black,draw,circle,inner sep=2pt,outer sep=0pt] (m) at (0,0){}; \\draw (m) -- +(0,0.4); & \\node[legendtext]{Mandatory}; & \n \\filldraw[fill=white,draw=black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; \n \\draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5);& \\node[legendtext]{Alternative}; \\\\\n \\node[fill=white,draw=black,circle,inner sep=2pt,outer sep=0pt] (o) at (0,0){}; \\draw (m) -- +(0,0.4); & \\node[legendtext]{Optional}; & \n \\draw (0,0.2) ++(225:0.5) -- (0,0.2) -- ++(315:0.5);\n \\filldraw[black] (0,0.2) -- ++(225:0.2) arc[start angle=225,end angle=315,radius=0.2]; & \\node[legendtext]{Or}; \n\\\\\n};\n\\end{tikzpicture}\n\\end{document}" ]
[ 86 ]
flex_third_force
\documentclass[tikz,border=5]{standalone} \usepackage{stanli} \usetikzlibrary{decorations.pathreplacing,intersections} \newcommand\inscription[4][]{ \draw let \p1=(#2),\p2=(#3),\n1={atan2(\y2-\y1,\x2-\x1)+90} in [inscription,#1] (#2) -- (#3) node[rotate=\n1] {#4}; } \begin{document} \begin{tikzpicture}[ inscription/.style={ decoration = {brace,raise=0.5pt}, decorate, red, shorten >=0.8pt, shorten <=0.8pt, every node/.style={midway,right,font=\scriptsize} }, arcs/.style={blue,dotted} ] \point{begin}{0}{0}; \point{middle}{2.5}{0}; \point{end}{5}{0}; \beam{2}{begin}{end}; \support{3}{begin}[-90]; \load{1}{middle}[90]; \load{1}{end}[90]; \notation{1}{middle}{$F_1$}; \notation{1}{end}{$F_2$}; \foreach [evaluate = {\in = 180 - \angle * 2}] \angle in {20, 40} \draw [-, ultra thick,name path=defl\angle] (begin) to [out = 0, in = \in] (-\angle : 5) coordinate (ang\angle); \draw [arcs,name path=arc1] (begin) -- (middle) arc (0 : -90 : 2.5) -- cycle; \draw [arcs] (begin) -- (end) arc (0 : -90 : 5) -- cycle; \path [ name intersections={of=defl20 and arc1,by={,D1}}, name intersections={of=defl40 and arc1,by={,D2}}]; \inscription{middle}{D1}{$w_{11}$} \inscription{D1}{D2}{$w_{12}$} \inscription{end}{ang20}{$w_{21}$} \inscription{ang20}{ang40}{$w_{22}$} \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{stanli} \usetikzlibrary{decorations.pathreplacing,intersections} \newcommand\inscription[4][]{% \draw let \p1=(#2),\p2=(#3),\n1={atan2(\y2-\y1,\x2-\x1)+90} in [inscription,#1] (#2) -- (#3) node[rotate=\n1] {#4}; } \begin{document} \begin{tikzpicture}[ inscription/.style={ decoration = {brace,raise=0.5pt}, % raise moves the brace in the direction it's pointing decorate, red, shorten >=0.8pt, % half the linewidth of ultra thick shorten <=0.8pt, every node/.style={midway,right,font=\scriptsize} }, arcs/.style={blue,dotted} ] %the points \point{begin}{0}{0}; \point{middle}{2.5}{0}; \point{end}{5}{0}; %the beam \beam{2}{begin}{end}; %the support \support{3}{begin}[-90]; %the load \load{1}{middle}[90]; \load{1}{end}[90]; %the inscription of the load \notation{1}{middle}{$F_1$}; \notation{1}{end}{$F_2$}; %the deflection curves \foreach [evaluate = {\in = 180 - \angle * 2}] \angle in {20, 40} \draw [-, ultra thick,name path=defl\angle] (begin) to [out = 0, in = \in] (-\angle : 5) coordinate (ang\angle); %circular sector as helplines \draw [arcs,name path=arc1] (begin) -- (middle) arc (0 : -90 : 2.5) -- cycle; \draw [arcs] (begin) -- (end) arc (0 : -90 : 5) -- cycle; % find intersections between inner sector and deflections \path [ name intersections={of=defl20 and arc1,by={,D1}}, % first intersection is at "begin", so leave first name empty name intersections={of=defl40 and arc1,by={,D2}}]; %the inscription of the deflection \inscription{middle}{D1}{$w_{11}$} \inscription{D1}{D2}{$w_{12}$} \inscription{end}{ang20}{$w_{21}$} \inscription{ang20}{ang40}{$w_{22}$} \end{tikzpicture} \end{document}
Add a third force F3 between F2 and F1, and the corresponding annotations.
A mechanical diagram representing three forces, F1, F2 anf F3
hard
add
scientific
[ "@@ -24,0 +25 @@\n\n+\\point{tquarter}{3.75}{0};\n@@ -28,0 +30 @@\n\n+\\load{1}{tquarter}[90];\n@@ -30,0 +33 @@\n\n+\\notation{1}{tquarter}{$F_3$};\n@@ -36,0 +40 @@\n\n+\\draw [arcs,name path=arc2] (begin) -- (tquarter) arc (0 : -90 : 3.75) -- cycle;\n@@ -39,0 +44,2 @@\n\n+name intersections={of=defl20 and arc2,by={,D3}},\n+name intersections={of=defl40 and arc2,by={,D4}},\n@@ -42,0 +49,2 @@\n\n+\\inscription{tquarter}{D3}{$w_{31}$}\n+\\inscription{D3}{D4}{$w_{32}$}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{stanli}\n\\usetikzlibrary{decorations.pathreplacing,intersections}\n\\newcommand\\inscription[4][]{\n \\draw\n let\n \\p1=(#2),\\p2=(#3),\\n1={atan2(\\y2-\\y1,\\x2-\\x1)+90}\n in\n [inscription,#1] (#2) -- (#3) node[rotate=\\n1] {#4};\n}\n\n\\begin{document}\n \\begin{tikzpicture}[\n inscription/.style={\n decoration = {brace,raise=0.5pt}, \n decorate,\n red,\n shorten >=0.8pt, \n shorten <=0.8pt,\n every node/.style={midway,right,font=\\scriptsize}\n },\n arcs/.style={blue,dotted} \n ]\n\n \\point{begin}{0}{0};\n \\point{middle}{2.5}{0};\n \\point{§def(tquarter)}{3.75}{0};\n \\point{end}{5}{0};\n \\beam{2}{begin}{end};\n \\support{3}{begin}[-90];\n \\load{1}{middle}[90];\n \\load{1}{tquarter}[90];\n \\load{1}{end}[90];\n \\notation{1}{middle}{$F_1$};\n \\notation{1}{tquarter}{$F_3$};\n \\notation{1}{end}{$F_2$};\n \\foreach\n [evaluate = {\\in = 180 - \\angle * 2}] \\angle in {20, 40}\n \\draw\n [-, ultra thick,name path=defl\\angle] (begin) to [out = 0, in = \\in] (-\\angle : 5) coordinate (ang\\angle);\n \\draw [arcs,name path=arc1] (begin) -- (middle) arc (0 : -90 : 2.5) -- cycle;\n \\draw [arcs,name path=arc2] (begin) -- (tquarter) arc (0 : -90 : 3.75) -- cycle;\n \\draw [arcs] (begin) -- (end) arc (0 : -90 : 5) -- cycle;\n \\path [\n name intersections={of=defl20 and arc1,by={,D1}}, \n name intersections={of=defl20 and arc2,by={,D3}}, \n name intersections={of=defl40 and arc2,by={,D4}}, \n name intersections={of=defl40 and arc1,by={,D2}}];\n \\inscription{middle}{D1}{$w_{11}$}\n \\inscription{D1}{D2}{$w_{12}$}\n \\inscription{tquarter}{D3}{$w_{31}$}\n \\inscription{D3}{D4}{$w_{32}$} \n \\inscription{end}{ang20}{$w_{21}$}\n \\inscription{ang20}{ang40}{$w_{22}$}\n\n \\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{stanli}\n\\usetikzlibrary{decorations.pathreplacing,intersections}\n\\newcommand\\inscription[4][]{\n \\draw\n let\n \\p1=(#2),\\p2=(#3),\\n1={atan2(\\y2-\\y1,\\x2-\\x1)+90}\n in\n [inscription,#1] (#2) -- (#3) node[rotate=\\n1] {#4};\n}\n\n\\begin{document}\n \\begin{tikzpicture}[\n inscription/.style={\n decoration = {brace,raise=0.5pt}, \n decorate,\n red,\n shorten >=0.8pt, \n shorten <=0.8pt,\n every node/.style={midway,right,font=\\scriptsize}\n },\n arcs/.style={blue,dotted} \n ]\n\n \\point{begin}{0}{0};\n \\point{middle}{2.5}{0};\n \\point{tquarter}{3.75}{0};\n \\point{end}{5}{0};\n \\beam{2}{begin}{end};\n \\support{3}{begin}[-90];\n \\load{1}{middle}[90];\n \\load{1}{tquarter}[90];\n \\load{1}{end}[90];\n \\notation{1}{middle}{$F_1$};\n \\notation{1}{tquarter}{$F_3$};\n \\notation{1}{end}{$F_2$};\n \\foreach\n [evaluate = {\\in = 180 - \\angle * 2}] \\angle in {20, 40}\n \\draw\n [-, ultra thick,name path=defl\\angle] (begin) to [out = 0, in = \\in] (-\\angle : 5) coordinate (ang\\angle);\n \\draw [arcs,name path=arc1] (begin) -- (middle) arc (0 : -90 : 2.5) -- cycle;\n \\draw [arcs,name path=arc2] (begin) -- (tquarter) arc (0 : -90 : 3.75) -- cycle;\n \\draw [arcs] (begin) -- (end) arc (0 : -90 : 5) -- cycle;\n \\path [\n name intersections={of=defl20 and arc1,by={,D1}}, \n name intersections={of=defl20 and arc2,by={,D3}}, \n name intersections={of=defl40 and arc2,by={,D4}}, \n name intersections={of=defl40 and arc1,by={,D2}}];\n \\inscription{middle}{D1}{$w_{11}$}\n \\inscription{D1}{D2}{$w_{12}$}\n \\inscription{tquarter}{D3}{$w_{31}$}\n \\inscription{D3}{D4}{$w_{32}$} \n \\inscription{end}{ang20}{$w_{21}$}\n \\inscription{ang20}{ang40}{$w_{22}$}\n\n \\end{tikzpicture}\n\\end{document}" ]
[ 19, 18 ]
gaussian_grouped_correlation
\documentclass[tikz,border=5]{standalone} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{amssymb} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \begin{document} \begin{tikzpicture} \tikzset{vertex/.style = {shape=circle,draw,minimum size=1.5em}} \tikzset{vertex_obs/.style = {shape=rectangle,draw,minimum size=2em}} \tikzset{vertex_text/.style = {draw=white!80,minimum size=2em}} \tikzset{group/.style = {shape=rectangle,draw,minimum height=5.2em, minimum width=7em}} \tikzset{edge/.style = {->,> = latex'}} \node[vertex_obs,fill=blue!20] (x1) at (0,0) {$t_{C_1}$}; \node[vertex] (f1) at (0,2) {$u_{C_1}$}; \node[vertex_obs] (y1) at (0,4) {$\delta_{C_1}^j$}; \node[group,text height=0.5em] (y1group) at (0,3.6) {}; \node[above right,text height=0.5em] at (y1group.south west) {$\mathcal{C}_1$}; \node[vertex_text] (fdots) at (2,2) {$\dots$}; \node[vertex_obs,fill=blue!20] (x2) at (4,0) {$t_{C_C}$}; \node[vertex] (f2) at (4,2) {$u_{C_C}$}; \node[vertex_obs] (y2) at (4,4) {$\delta_{C_C}^j$}; \node[group,text height=0.5em] (y2group) at (4,3.6) {}; \node[above right,text height=0.5em] at (y2group.south west) {$\mathcal{C}_C$}; \node[vertex_obs,fill=orange!10] (xM1) at (7,0) {$t_{M_1}$}; \node[vertex] (fM1) at (7,2) {$u_{M_1}$}; \node[vertex] (yM1) at (7,4) {$y_{M_1}$}; \node[vertex_obs,fill=orange!10] (xM2) at (11,0) {$t_{M_2}$}; \node[vertex] (fM2) at (11,2) {$u_{M_2}$}; \node[vertex] (yM2) at (11,4) {$y_{M_2}$}; \node[vertex_text] (fdots2) at (9,2) {$\dots$}; \draw[edge] (x1) to node [font=\small,left]{} (f1); \draw[edge] (f1) to node [font=\small,right]{$\sigma_{C1}^j$} (y1); \draw[edge] (x2) to node [font=\small,left]{} (f2); \draw[edge] (f2) to node [font=\small,right]{$\sigma_{C_c}^j$} (y2); \draw[edge] (xM1) to node [font=\small,left]{} (fM1); \draw[edge] (fM1) to node [font=\small,left]{} (yM1); \draw[edge] (xM2) to node [font=\small,left]{} (fM2); \draw[edge] (fM2) to node [font=\small,left]{} (yM2); \draw[very thick] (f1) edge[-] (fdots); \draw[very thick] (fdots) edge[-] (f2); \draw[very thick] (f2) edge[-] (fM1); \draw[very thick] (fM1) edge[-] (fdots2); \draw[very thick] (fdots2) edge[-] (fM2); \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{amssymb} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \begin{document} \begin{tikzpicture} \tikzset{vertex/.style = {shape=circle,draw,minimum size=1.5em}} \tikzset{vertex_obs/.style = {shape=rectangle,draw,minimum size=2em}} \tikzset{vertex_text/.style = {draw=white!80,minimum size=2em}} \tikzset{group/.style = {shape=rectangle,draw,minimum height=5.2em, minimum width=7em}} \tikzset{edge/.style = {->,> = latex'}} % vertices % --- Corr1 \node[vertex_obs,fill=blue!20] (x1) at (0,0) {$t_{C_1}$}; \node[vertex] (f1) at (0,2) {$u_{C_1}$}; \node[vertex_obs] (y1) at (0,4) {$\delta_{C_1}^j$}; \node[group,text height=0.5em] (y1group) at (0,3.6) {}; \node[above right,text height=0.5em] at (y1group.south west) {$\mathcal{C}_1$}; % --- div \node[vertex_text] (fdots) at (2,2) {$\dots$}; % --- Corr2 \node[vertex_obs,fill=blue!20] (x2) at (4,0) {$t_{C_C}$}; \node[vertex] (f2) at (4,2) {$u_{C_C}$}; \node[vertex_obs] (y2) at (4,4) {$\delta_{C_C}^j$}; \node[group,text height=0.5em] (y2group) at (4,3.6) {}; \node[above right,text height=0.5em] at (y2group.south west) {$\mathcal{C}_C$}; % --- Corr1 \node[vertex_obs,fill=orange!10] (xM1) at (7,0) {$t_{M_1}$}; \node[vertex] (fM1) at (7,2) {$u_{M_1}$}; \node[vertex] (yM1) at (7,4) {$y_{M_1}$}; \node[vertex_obs,fill=orange!10] (xM2) at (11,0) {$t_{M_2}$}; \node[vertex] (fM2) at (11,2) {$u_{M_2}$}; \node[vertex] (yM2) at (11,4) {$y_{M_2}$}; \node[vertex_text] (fdots2) at (9,2) {$\dots$}; %edges \draw[edge] (x1) to node [font=\small,left]{} (f1); \draw[edge] (f1) to node [font=\small,right]{$\sigma_{C1}^j$} (y1); \draw[edge] (x2) to node [font=\small,left]{} (f2); \draw[edge] (f2) to node [font=\small,right]{$\sigma_{C_c}^j$} (y2); \draw[edge] (xM1) to node [font=\small,left]{} (fM1); \draw[edge] (fM1) to node [font=\small,left]{} (yM1); \draw[edge] (xM2) to node [font=\small,left]{} (fM2); \draw[edge] (fM2) to node [font=\small,left]{} (yM2); \draw[very thick] (f1) edge[-] (fdots); \draw[very thick] (fdots) edge[-] (f2); \draw[very thick] (f2) edge[-] (fM1); \draw[very thick] (fM1) edge[-] (fdots2); \draw[very thick] (fdots2) edge[-] (fM2); \end{tikzpicture} \end{document}
Add a dashed rectangle containing uC1 and uCC, and everything over and under these nodes, with a label "Correlation" on the bottom right. This rectangle essentialy contains everything on the left side of the image.
Technical diagram, with the first nodes contained in a correlation dashed rectangle
medium
add
scientific
[ "@@ -45,0 +46,2 @@\n\n+\\draw[dashed] (-1.5,-0.5) rectangle (5.5,5);\n+\\node[below right] at (5.5,-0.5) {Correlation};", "@@ -32,0 +33,2 @@\n\n+\\draw[dashed] (-1.5,-1) rectangle (6,5);\n+\\node[anchor=south east] at (6,-1) {Correlation};" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[utf8]{inputenc}\n\\usepackage[T1]{fontenc}\n\\usepackage{amsmath}\n\\usepackage{amssymb}\n\\usepackage{tikz}\n\\usetikzlibrary{shapes,arrows}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n\t\t\\tikzset{vertex/.style = {shape=circle,draw,minimum size=1.5em}}\n\t\t\\tikzset{vertex_obs/.style = {shape=rectangle,draw,minimum size=2em}}\n\t\t\\tikzset{vertex_text/.style = {draw=white!80,minimum size=2em}}\n\t\t\\tikzset{group/.style = {shape=rectangle,draw,minimum height=5.2em, minimum width=7em}}\n\t\t\\tikzset{edge/.style = {->,> = latex'}}\n\t\t\\node[vertex_obs,fill=blue!20] (x1) at (0,0) {$t_{C_1}$};\n\t\t\\node[vertex] (f1) at (0,2) {$u_{C_1}$};\n\t\t\\node[vertex_obs] (y1) at (0,4) {$\\delta_{C_1}^j$};\n\t\t\\node[group,text height=0.5em] (y1group) at (0,3.6) {};\n\t\t\\node[above right,text height=0.5em] at (y1group.south west) {$\\mathcal{C}_1$};\n\t\t\\node[vertex_text] (fdots) at (2,2) {$\\dots$};\n\t\t\\node[vertex_obs,fill=blue!20] (x2) at (4,0) {$t_{C_C}$};\n\t\t\\node[vertex] (f2) at (4,2) {$u_{C_C}$};\n\t\t\\node[vertex_obs] (y2) at (4,4) {$\\delta_{C_C}^j$};\n\t\t\\node[group,text height=0.5em] (y2group) at (4,3.6) {};\n\t\t\\node[above right,text height=0.5em] at (y2group.south west) {$\\mathcal{C}_C$};\n\t\t\\node[vertex_obs,fill=orange!10] (xM1) at (7,0) {$t_{M_1}$};\n\t\t\\node[vertex] (fM1) at (7,2) {$u_{M_1}$};\n\t\t\\node[vertex] (yM1) at (7,4) {$y_{M_1}$};\n\t\t\\node[vertex_obs,fill=orange!10] (xM2) at (11,0) {$t_{M_2}$};\n\t\t\\node[vertex] (fM2) at (11,2) {$u_{M_2}$};\n\t\t\\node[vertex] (yM2) at (11,4) {$y_{M_2}$};\n\t\t\\node[vertex_text] (fdots2) at (9,2) {$\\dots$};\n\t\t\\draw[edge] (x1) to node [font=\\small,left]{} (f1);\n\t\t\\draw[edge] (f1) to node [font=\\small,right]{$\\sigma_{C1}^j$} (y1);\n\t\t\\draw[edge] (x2) to node [font=\\small,left]{} (f2);\n\t\t\\draw[edge] (f2) to node [font=\\small,right]{$\\sigma_{C_c}^j$} (y2);\n\t\t\\draw[edge] (xM1) to node [font=\\small,left]{} (fM1);\n\t\t\\draw[edge] (fM1) to node [font=\\small,left]{} (yM1);\n\t\t\\draw[edge] (xM2) to node [font=\\small,left]{} (fM2);\n\t\t\\draw[edge] (fM2) to node [font=\\small,left]{} (yM2);\n\t\t\\draw[very thick] (f1) edge[-] (fdots);\n\t\t\\draw[very thick] (fdots) edge[-] (f2);\n\t\t\\draw[very thick] (f2) edge[-] (fM1);\n\t\t\\draw[very thick] (fM1) edge[-] (fdots2);\n\t\t\\draw[very thick] (fdots2) edge[-] (fM2);\n\t\t\\draw[dashed] (-1.5,-0.5) rectangle (5.5,5);\n\t\t\\node[below right] at (5.5,-0.5) {Correlation};\n\t\\end{tikzpicture}\n\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[utf8]{inputenc}\n\\usepackage[T1]{fontenc}\n\\usepackage{amsmath}\n\\usepackage{amssymb}\n\\usepackage{tikz}\n\\usetikzlibrary{shapes,arrows}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n\t\t\\tikzset{vertex/.style = {shape=circle,draw,minimum size=1.5em}}\n\t\t\\tikzset{vertex_obs/.style = {shape=rectangle,draw,minimum size=2em}}\n\t\t\\tikzset{vertex_text/.style = {draw=white!80,minimum size=2em}}\n\t\t\\tikzset{group/.style = {shape=rectangle,draw,minimum height=5.2em, minimum width=7em}}\n\t\t\\tikzset{edge/.style = {->,> = latex'}}\n\t\t\\node[vertex_obs,fill=blue!20] (x1) at (0,0) {$t_{C_1}$};\n\t\t\\node[vertex] (f1) at (0,2) {$u_{C_1}$};\n\t\t\\node[vertex_obs] (y1) at (0,4) {$\\delta_{C_1}^j$};\n\t\t\\node[group,text height=0.5em] (y1group) at (0,3.6) {};\n\t\t\\node[above right,text height=0.5em] at (y1group.south west) {$\\mathcal{C}_1$};\n\t\t\\node[vertex_text] (fdots) at (2,2) {$\\dots$};\n\t\t\\node[vertex_obs,fill=blue!20] (x2) at (4,0) {$t_{C_C}$};\n\t\t\\node[vertex] (f2) at (4,2) {$u_{C_C}$};\n\t\t\\node[vertex_obs] (y2) at (4,4) {$\\delta_{C_C}^j$};\n\t\t\\node[group,text height=0.5em] (y2group) at (4,3.6) {};\n\t\t\\node[above right,text height=0.5em] at (y2group.south west) {$\\mathcal{C}_C$};\n\t\t\\node[vertex_obs,fill=orange!10] (xM1) at (7,0) {$t_{M_1}$};\n\t\t\\node[vertex] (fM1) at (7,2) {$u_{M_1}$};\n\t\t\\node[vertex] (yM1) at (7,4) {$y_{M_1}$};\n\t\t\\node[vertex_obs,fill=orange!10] (xM2) at (11,0) {$t_{M_2}$};\n\t\t\\node[vertex] (fM2) at (11,2) {$u_{M_2}$};\n\t\t\\node[vertex] (yM2) at (11,4) {$y_{M_2}$};\n\t\t\\node[vertex_text] (fdots2) at (9,2) {$\\dots$};\n\t\t\t\\draw[dashed] (§range(-1.5,-2.5,-1.5),§range(-1,-2,-1)) rectangle (§rangei(6,0.25),§rangei(5,0.25));\n \\node[anchor=south east] at (6,-1) {Correlation};\n\t\t\\draw[edge] (x1) to node [font=\\small,left]{} (f1);\n\t\t\\draw[edge] (f1) to node [font=\\small,right]{$\\sigma_{C1}^j$} (y1);\n\t\t\\draw[edge] (x2) to node [font=\\small,left]{} (f2);\n\t\t\\draw[edge] (f2) to node [font=\\small,right]{$\\sigma_{C_c}^j$} (y2);\n\t\t\\draw[edge] (xM1) to node [font=\\small,left]{} (fM1);\n\t\t\\draw[edge] (fM1) to node [font=\\small,left]{} (yM1);\n\t\t\\draw[edge] (xM2) to node [font=\\small,left]{} (fM2);\n\t\t\\draw[edge] (fM2) to node [font=\\small,left]{} (yM2);\n\t\t\\draw[very thick] (f1) edge[-] (fdots);\n\t\t\\draw[very thick] (fdots) edge[-] (f2);\n\t\t\\draw[very thick] (f2) edge[-] (fM1);\n\t\t\\draw[very thick] (fM1) edge[-] (fdots2);\n\t\t\\draw[very thick] (fdots2) edge[-] (fM2);\n\t\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[utf8]{inputenc}\n\\usepackage[T1]{fontenc}\n\\usepackage{amsmath}\n\\usepackage{amssymb}\n\\usepackage{tikz}\n\\usetikzlibrary{shapes,arrows}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n\t\t\\tikzset{vertex/.style = {shape=circle,draw,minimum size=1.5em}}\n\t\t\\tikzset{vertex_obs/.style = {shape=rectangle,draw,minimum size=2em}}\n\t\t\\tikzset{vertex_text/.style = {draw=white!80,minimum size=2em}}\n\t\t\\tikzset{group/.style = {shape=rectangle,draw,minimum height=5.2em, minimum width=7em}}\n\t\t\\tikzset{edge/.style = {->,> = latex'}}\n\t\t\\node[vertex_obs,fill=blue!20] (x1) at (0,0) {$t_{C_1}$};\n\t\t\\node[vertex] (f1) at (0,2) {$u_{C_1}$};\n\t\t\\node[vertex_obs] (y1) at (0,4) {$\\delta_{C_1}^j$};\n\t\t\\node[group,text height=0.5em] (y1group) at (0,3.6) {};\n\t\t\\node[above right,text height=0.5em] at (y1group.south west) {$\\mathcal{C}_1$};\n\t\t\\node[vertex_text] (fdots) at (2,2) {$\\dots$};\n\t\t\\node[vertex_obs,fill=blue!20] (x2) at (4,0) {$t_{C_C}$};\n\t\t\\node[vertex] (f2) at (4,2) {$u_{C_C}$};\n\t\t\\node[vertex_obs] (y2) at (4,4) {$\\delta_{C_C}^j$};\n\t\t\\node[group,text height=0.5em] (y2group) at (4,3.6) {};\n\t\t\\node[above right,text height=0.5em] at (y2group.south west) {$\\mathcal{C}_C$};\n\t\t\\node[vertex_obs,fill=orange!10] (xM1) at (7,0) {$t_{M_1}$};\n\t\t\\node[vertex] (fM1) at (7,2) {$u_{M_1}$};\n\t\t\\node[vertex] (yM1) at (7,4) {$y_{M_1}$};\n\t\t\\node[vertex_obs,fill=orange!10] (xM2) at (11,0) {$t_{M_2}$};\n\t\t\\node[vertex] (fM2) at (11,2) {$u_{M_2}$};\n\t\t\\node[vertex] (yM2) at (11,4) {$y_{M_2}$};\n\t\t\\node[vertex_text] (fdots2) at (9,2) {$\\dots$};\n\t\t\\draw[edge] (x1) to node [font=\\small,left]{} (f1);\n\t\t\\draw[edge] (f1) to node [font=\\small,right]{$\\sigma_{C1}^j$} (y1);\n\t\t\\draw[edge] (x2) to node [font=\\small,left]{} (f2);\n\t\t\\draw[edge] (f2) to node [font=\\small,right]{$\\sigma_{C_c}^j$} (y2);\n\t\t\\draw[edge] (xM1) to node [font=\\small,left]{} (fM1);\n\t\t\\draw[edge] (fM1) to node [font=\\small,left]{} (yM1);\n\t\t\\draw[edge] (xM2) to node [font=\\small,left]{} (fM2);\n\t\t\\draw[edge] (fM2) to node [font=\\small,left]{} (yM2);\n\t\t\\draw[very thick] (f1) edge[-] (fdots);\n\t\t\\draw[very thick] (fdots) edge[-] (f2);\n\t\t\\draw[very thick] (f2) edge[-] (fM1);\n\t\t\\draw[very thick] (fM1) edge[-] (fdots2);\n\t\t\\draw[very thick] (fdots2) edge[-] (fM2);\n\t\t\\draw[dashed] (-1.5,-0.5) rectangle (5.5,5);\n\t\t\\node[below right] at (5.5,-0.5) {Correlation};\n\t\\end{tikzpicture}\n\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[utf8]{inputenc}\n\\usepackage[T1]{fontenc}\n\\usepackage{amsmath}\n\\usepackage{amssymb}\n\\usepackage{tikz}\n\\usetikzlibrary{shapes,arrows}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n\t\t\\tikzset{vertex/.style = {shape=circle,draw,minimum size=1.5em}}\n\t\t\\tikzset{vertex_obs/.style = {shape=rectangle,draw,minimum size=2em}}\n\t\t\\tikzset{vertex_text/.style = {draw=white!80,minimum size=2em}}\n\t\t\\tikzset{group/.style = {shape=rectangle,draw,minimum height=5.2em, minimum width=7em}}\n\t\t\\tikzset{edge/.style = {->,> = latex'}}\n\t\t\\node[vertex_obs,fill=blue!20] (x1) at (0,0) {$t_{C_1}$};\n\t\t\\node[vertex] (f1) at (0,2) {$u_{C_1}$};\n\t\t\\node[vertex_obs] (y1) at (0,4) {$\\delta_{C_1}^j$};\n\t\t\\node[group,text height=0.5em] (y1group) at (0,3.6) {};\n\t\t\\node[above right,text height=0.5em] at (y1group.south west) {$\\mathcal{C}_1$};\n\t\t\\node[vertex_text] (fdots) at (2,2) {$\\dots$};\n\t\t\\node[vertex_obs,fill=blue!20] (x2) at (4,0) {$t_{C_C}$};\n\t\t\\node[vertex] (f2) at (4,2) {$u_{C_C}$};\n\t\t\\node[vertex_obs] (y2) at (4,4) {$\\delta_{C_C}^j$};\n\t\t\\node[group,text height=0.5em] (y2group) at (4,3.6) {};\n\t\t\\node[above right,text height=0.5em] at (y2group.south west) {$\\mathcal{C}_C$};\n\t\t\\node[vertex_obs,fill=orange!10] (xM1) at (7,0) {$t_{M_1}$};\n\t\t\\node[vertex] (fM1) at (7,2) {$u_{M_1}$};\n\t\t\\node[vertex] (yM1) at (7,4) {$y_{M_1}$};\n\t\t\\node[vertex_obs,fill=orange!10] (xM2) at (11,0) {$t_{M_2}$};\n\t\t\\node[vertex] (fM2) at (11,2) {$u_{M_2}$};\n\t\t\\node[vertex] (yM2) at (11,4) {$y_{M_2}$};\n\t\t\\node[vertex_text] (fdots2) at (9,2) {$\\dots$};\n\t\t\t\\draw[dashed] (-1.5,-1) rectangle (6,5);\n \\node[anchor=south east] at (6,-1) {Correlation};\n\t\t\\draw[edge] (x1) to node [font=\\small,left]{} (f1);\n\t\t\\draw[edge] (f1) to node [font=\\small,right]{$\\sigma_{C1}^j$} (y1);\n\t\t\\draw[edge] (x2) to node [font=\\small,left]{} (f2);\n\t\t\\draw[edge] (f2) to node [font=\\small,right]{$\\sigma_{C_c}^j$} (y2);\n\t\t\\draw[edge] (xM1) to node [font=\\small,left]{} (fM1);\n\t\t\\draw[edge] (fM1) to node [font=\\small,left]{} (yM1);\n\t\t\\draw[edge] (xM2) to node [font=\\small,left]{} (fM2);\n\t\t\\draw[edge] (fM2) to node [font=\\small,left]{} (yM2);\n\t\t\\draw[very thick] (f1) edge[-] (fdots);\n\t\t\\draw[very thick] (fdots) edge[-] (f2);\n\t\t\\draw[very thick] (f2) edge[-] (fM1);\n\t\t\\draw[very thick] (fM1) edge[-] (fdots2);\n\t\t\\draw[very thick] (fdots2) edge[-] (fM2);\n\t\\end{tikzpicture}\n\n\\end{document}" ]
[ 16, 6 ]
graphdate_top_columns
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture}[ helpGrid/.style = {thin, gray!40}, ] \node[align=center] (Jan20) at (0,1) {Jan \\ 2020}; \node[] (Apr20) at (2,1) {Apr}; \node[] (Jul20) at (4,1) {Jul}; \node[] (Oct20) at (6,1) {Oct}; \node[align=center] (Jan21) at (8,1) {Jan \\ 2021}; \draw[-latex] (9.5,1.25) -- ++(1,0) node[midway,below] () {Apr}; \node[] (a1) at (0,10) {A}; \node[] (b1) at (0,9) {B}; \node[] (c1) at (0,8) {C}; \node[] (d2) at (2,10) {D}; \node[] (a2) at (2,9) {A}; \draw[-latex] (a1) to [out = 0, in = 180] (a2); \node[] (e3) at (4,7) {E}; \node[] (b3) at (4,6) {B}; \node[] (c3) at (4,5) {C}; \node[] (f3) at (4,4) {F}; \draw[-latex] (b1) to [out = 0, in = 180] (b3); \draw[-latex] (c1) to [out = 0, in = 180] (c3); \node[] (g5) at (8,10) {G}; \node[] (a5) at (8,8) {A}; \node[] (e5) at (8,7) {E}; \node[] (b5) at (8,6) {B}; \node[] (c5) at (8,3) {C}; \node[] (f5) at (8,2) {F}; \draw[-latex] (a2) to [out = 0, in = 180] (a5); \draw[-latex] (e3) -- (e5); \draw[-latex] (b3) -- (b5); \draw[-latex] (c3) to [out = 0, in = 180] (c5); \draw[-latex] (f3) to [out = 0, in = 180] (f5); \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture}[% helpGrid/.style = {thin, gray!40}, ] % End tikzpicture options %- X - Axis (Months). Separation of two coordinates between months. % Moths 2020 \node[align=center] (Jan20) at (0,1) {Jan \\ 2020}; \node[] (Apr20) at (2,1) {Apr}; \node[] (Jul20) at (4,1) {Jul}; \node[] (Oct20) at (6,1) {Oct}; % Months 2021 \node[align=center] (Jan21) at (8,1) {Jan \\ 2021}; \draw[-latex] (9.5,1.25) -- ++(1,0) node[midway,below] () {Apr}; %- Corresponding other nodes % Column 1 (Jan 2020) \node[] (a1) at (0,10) {A}; \node[] (b1) at (0,9) {B}; \node[] (c1) at (0,8) {C}; % Column 2 (Apr (2020) \node[] (d2) at (2,10) {D}; \node[] (a2) at (2,9) {A}; % Arrows connecting column 1 and 2 \draw[-latex] (a1) to [out = 0, in = 180] (a2); % Column 3 (Jul 2020) \node[] (e3) at (4,7) {E}; \node[] (b3) at (4,6) {B}; \node[] (c3) at (4,5) {C}; \node[] (f3) at (4,4) {F}; % Arrows connecting column 2 and 3 \draw[-latex] (b1) to [out = 0, in = 180] (b3); \draw[-latex] (c1) to [out = 0, in = 180] (c3); %- Column 4 (Oct) % Nothing % Column 5 (Jan 2021) \node[] (g5) at (8,10) {G}; \node[] (a5) at (8,8) {A}; \node[] (e5) at (8,7) {E}; \node[] (b5) at (8,6) {B}; \node[] (c5) at (8,3) {C}; \node[] (f5) at (8,2) {F}; % Arrows connecting columns 3 and 5 \draw[-latex] (a2) to [out = 0, in = 180] (a5); \draw[-latex] (e3) -- (e5); \draw[-latex] (b3) -- (b5); \draw[-latex] (c3) to [out = 0, in = 180] (c5); \draw[-latex] (f3) to [out = 0, in = 180] (f5); \end{tikzpicture} \end{document}
Put the months at the top of the graph instead of the bottom.
A diagram displaying a graph and months of the years at the top.
medium
update
scientific
[ "@@ -8,6 +8,6 @@\n\n-\\node[align=center] (Jan20) at (0,1) {Jan \\\\ 2020};\n-\\node[] (Apr20) at (2,1) {Apr};\n-\\node[] (Jul20) at (4,1) {Jul};\n-\\node[] (Oct20) at (6,1) {Oct};\n-\\node[align=center] (Jan21) at (8,1) {Jan \\\\ 2021};\n-\\draw[-latex] (9.5,1.25) -- ++(1,0) node[midway,below] () {Apr};\n+\\node[align=center] (Jan20) at (0,11) {Jan \\\\ 2020};\n+\\node[] (Apr20) at (2,11) {Apr};\n+\\node[] (Jul20) at (4,11) {Jul};\n+\\node[] (Oct20) at (6,11) {Oct};\n+\\node[align=center] (Jan21) at (8,11) {Jan \\\\ 2021};\n+\\draw[-latex] (9.5,11.25) -- ++(1,0) node[midway,below] () {Apr};\n@@ -20,4 +20,4 @@\n\n-\\node[] (e3) at (4,7) {E};\n-\\node[] (b3) at (4,6) {B};\n-\\node[] (c3) at (4,5) {C};\n-\\node[] (f3) at (4,4) {F};\n+\\node[] (e3) at (4,6) {E};\n+\\node[] (b3) at (4,5) {B};\n+\\node[] (c3) at (4,4) {C};\n+\\node[] (f3) at (4,3) {F};\n@@ -26,6 +26,6 @@\n\n-\\node[] (g5) at (8,10) {G};\n-\\node[] (a5) at (8,8) {A};\n-\\node[] (e5) at (8,7) {E};\n-\\node[] (b5) at (8,6) {B};\n-\\node[] (c5) at (8,3) {C};\n-\\node[] (f5) at (8,2) {F};\n+\\node[] (g5) at (8,9) {G};\n+\\node[] (a5) at (8,7) {A};\n+\\node[] (e5) at (8,6) {E};\n+\\node[] (b5) at (8,5) {B};\n+\\node[] (c5) at (8,2) {C};\n+\\node[] (f5) at (8,1) {F};", "@@ -8,6 +8,6 @@\n\n-\\node[align=center] (Jan20) at (0,1) {Jan \\\\ 2020};\n-\\node[] (Apr20) at (2,1) {Apr};\n-\\node[] (Jul20) at (4,1) {Jul};\n-\\node[] (Oct20) at (6,1) {Oct};\n-\\node[align=center] (Jan21) at (8,1) {Jan \\\\ 2021};\n-\\draw[-latex] (9.5,1.25) -- ++(1,0) node[midway,below] () {Apr};\n+\\node[align=center] (Jan20) at (0,11) {Jan \\\\ 2020};\n+\\node[] (Apr20) at (2,11) {Apr};\n+\\node[] (Jul20) at (4,11) {Jul};\n+\\node[] (Oct20) at (6,11) {Oct};\n+\\node[align=center] (Jan21) at (8,11) {Jan \\\\ 2021};\n+\\draw[-latex] (9.5,11.25) -- ++(1,0) node[midway,below] () {Apr};" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{positioning}\n\n\\begin{document}\n \\begin{tikzpicture}[\n helpGrid/.style = {thin, gray!40},\n ] \n\n \n \\node[align=center] (Jan20) at (0,§range(10,12,11)) {Jan \\\\ 2020}; \n \\node[] (Apr20) at (2,§range(10,12,11)) {Apr};\n \\node[] (Jul20) at (4,§range(10,12,11)) {Jul};\n \\node[] (Oct20) at (6,§range(10,12,11)) {Oct};\n \\node[align=center] (Jan21) at (8,§range(10,12,11)) {Jan \\\\ 2021}; \n \\draw[-latex] (9.5,§range(11.25,12.25,11.25)) -- ++(1,0) node[midway,below] () {Apr};\n \n \\node[] (a1) at (0,10) {A};\n \\node[] (b1) at (0,9) {B};\n \\node[] (c1) at (0,8) {C};\n \n \\node[] (d2) at (2,10) {D};\n \\node[] (a2) at (2,9) {A};\n \\draw[-latex] (a1) to [out = 0, in = 180] (a2);\n \n \\node[] (e3) at (4,6) {E};\n \\node[] (b3) at (4,5) {B};\n \\node[] (c3) at (4,4) {C};\n \\node[] (f3) at (4,3) {F};\n \n \\draw[-latex] (b1) to [out = 0, in = 180] (b3);\n \\draw[-latex] (c1) to [out = 0, in = 180] (c3);\n \n \n \\node[] (g5) at (8,9) {G};\n \\node[] (a5) at (8,7) {A};\n \\node[] (e5) at (8,6) {E};\n \\node[] (b5) at (8,5) {B};\n \\node[] (c5) at (8,2) {C};\n \\node[] (f5) at (8,1) {F};\n \n \\draw[-latex] (a2) to [out = 0, in = 180] (a5);\n \\draw[-latex] (e3) -- (e5);\n \\draw[-latex] (b3) -- (b5);\n \\draw[-latex] (c3) to [out = 0, in = 180] (c5);\n \\draw[-latex] (f3) to [out = 0, in = 180] (f5);\n \n \\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{positioning}\n\n\\begin{document}\n \\begin{tikzpicture}[\n helpGrid/.style = {thin, gray!40},\n ] \n\n \n \\node[align=center] (Jan20) at (0,§range(11,12,11)) {Jan \\\\ 2020}; \n \\node[] (Apr20) at (2,§range(11,12,11)) {Apr};\n \\node[] (Jul20) at (4,§range(11,12,11)) {Jul};\n \\node[] (Oct20) at (6,§range(11,12,11)) {Oct};\n \\node[align=center] (Jan21) at (8,§range(11,12,11)) {Jan \\\\ 2021}; \n \\draw[-latex] (9.5,§range(11.25,12.25,11.25)) -- ++(1,0) node[midway,below] () {Apr};\n \n \\node[] (a1) at (0,10) {A};\n \\node[] (b1) at (0,9) {B};\n \\node[] (c1) at (0,8) {C};\n \n \\node[] (d2) at (2,10) {D};\n \\node[] (a2) at (2,9) {A};\n \\draw[-latex] (a1) to [out = 0, in = 180] (a2);\n \n \\node[] (e3) at (4,7) {E};\n \\node[] (b3) at (4,6) {B};\n \\node[] (c3) at (4,5) {C};\n \\node[] (f3) at (4,4) {F};\n \n \\draw[-latex] (b1) to [out = 0, in = 180] (b3);\n \\draw[-latex] (c1) to [out = 0, in = 180] (c3);\n \n \n \\node[] (g5) at (8,10) {G};\n \\node[] (a5) at (8,8) {A};\n \\node[] (e5) at (8,7) {E};\n \\node[] (b5) at (8,6) {B};\n \\node[] (c5) at (8,3) {C};\n \\node[] (f5) at (8,2) {F};\n \n \\draw[-latex] (a2) to [out = 0, in = 180] (a5);\n \\draw[-latex] (e3) -- (e5);\n \\draw[-latex] (b3) -- (b5);\n \\draw[-latex] (c3) to [out = 0, in = 180] (c5);\n \\draw[-latex] (f3) to [out = 0, in = 180] (f5);\n \n \\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{positioning}\n\n\\begin{document}\n \\begin{tikzpicture}[\n helpGrid/.style = {thin, gray!40},\n ] \n\n \n \\node[align=center] (Jan20) at (0,11) {Jan \\\\ 2020}; \n \\node[] (Apr20) at (2,11) {Apr};\n \\node[] (Jul20) at (4,11) {Jul};\n \\node[] (Oct20) at (6,11) {Oct};\n \\node[align=center] (Jan21) at (8,11) {Jan \\\\ 2021}; \n \\draw[-latex] (9.5,11.25) -- ++(1,0) node[midway,below] () {Apr};\n \n \\node[] (a1) at (0,10) {A};\n \\node[] (b1) at (0,9) {B};\n \\node[] (c1) at (0,8) {C};\n \n \\node[] (d2) at (2,10) {D};\n \\node[] (a2) at (2,9) {A};\n \\draw[-latex] (a1) to [out = 0, in = 180] (a2);\n \n \\node[] (e3) at (4,6) {E};\n \\node[] (b3) at (4,5) {B};\n \\node[] (c3) at (4,4) {C};\n \\node[] (f3) at (4,3) {F};\n \n \\draw[-latex] (b1) to [out = 0, in = 180] (b3);\n \\draw[-latex] (c1) to [out = 0, in = 180] (c3);\n \n \n \\node[] (g5) at (8,9) {G};\n \\node[] (a5) at (8,7) {A};\n \\node[] (e5) at (8,6) {E};\n \\node[] (b5) at (8,5) {B};\n \\node[] (c5) at (8,2) {C};\n \\node[] (f5) at (8,1) {F};\n \n \\draw[-latex] (a2) to [out = 0, in = 180] (a5);\n \\draw[-latex] (e3) -- (e5);\n \\draw[-latex] (b3) -- (b5);\n \\draw[-latex] (c3) to [out = 0, in = 180] (c5);\n \\draw[-latex] (f3) to [out = 0, in = 180] (f5);\n \n \\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{positioning}\n\n\\begin{document}\n \\begin{tikzpicture}[\n helpGrid/.style = {thin, gray!40},\n ] \n\n \n \\node[align=center] (Jan20) at (0,11) {Jan \\\\ 2020}; \n \\node[] (Apr20) at (2,11) {Apr};\n \\node[] (Jul20) at (4,11) {Jul};\n \\node[] (Oct20) at (6,11) {Oct};\n \\node[align=center] (Jan21) at (8,11) {Jan \\\\ 2021}; \n \\draw[-latex] (9.5,11.25) -- ++(1,0) node[midway,below] () {Apr};\n \n \\node[] (a1) at (0,10) {A};\n \\node[] (b1) at (0,9) {B};\n \\node[] (c1) at (0,8) {C};\n \n \\node[] (d2) at (2,10) {D};\n \\node[] (a2) at (2,9) {A};\n \\draw[-latex] (a1) to [out = 0, in = 180] (a2);\n \n \\node[] (e3) at (4,7) {E};\n \\node[] (b3) at (4,6) {B};\n \\node[] (c3) at (4,5) {C};\n \\node[] (f3) at (4,4) {F};\n \n \\draw[-latex] (b1) to [out = 0, in = 180] (b3);\n \\draw[-latex] (c1) to [out = 0, in = 180] (c3);\n \n \n \\node[] (g5) at (8,10) {G};\n \\node[] (a5) at (8,8) {A};\n \\node[] (e5) at (8,7) {E};\n \\node[] (b5) at (8,6) {B};\n \\node[] (c5) at (8,3) {C};\n \\node[] (f5) at (8,2) {F};\n \n \\draw[-latex] (a2) to [out = 0, in = 180] (a5);\n \\draw[-latex] (e3) -- (e5);\n \\draw[-latex] (b3) -- (b5);\n \\draw[-latex] (c3) to [out = 0, in = 180] (c5);\n \\draw[-latex] (f3) to [out = 0, in = 180] (f5);\n \n \\end{tikzpicture}\n\\end{document}" ]
[ 1 ]
graphset_node_in_S
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \usetikzlibrary{arrows} \usetikzlibrary{shapes,trees,hobby,calc} \usepackage{xinttools} \begin{document} \tikzstyle{block}=[rectangle, draw=black, rounded corners, ultra thick, text centered, anchor=north, text=white, text width=1cm, text height=.3cm] \tikzstyle{bblock}=[block, fill=blue!50] \begin{tikzpicture} \path[draw,green,fill=red,thick,use Hobby shortcut,closed=true, opacity=0.2] (-.5,.3) .. (1.5,2.5) .. (2.8,3.6) .. (4,3) .. (4.2,0) .. (4,-3) .. (2.8,-3.6) .. (1.5,-2.5) .. (-.5,-.3) ; \path[draw,red,fill=green,thick,use Hobby shortcut,closed=true, opacity=0.2] (12.5,.3) .. (10.5,2.5) .. (9.2,3.6) .. (8,3) .. (7.8,0) .. (8,-3) .. (9.2,-3.6) .. (10.5,-2.5) .. (12.5,-.3) ; \node[text=red] at (1.8,0) {\Huge S}; \node[text=green] at (10.2,0) {\Huge T}; \xintForthree #1#2#3 in { ( {(0,-1)} , S1 , $ $ ), ( {(0,1)} , S2 , $ $ ), ( {(3,-2)} , T1 , $B$ ), ( {(3,1)} , T2 , $ $ ), ({(6,-3)}, U1, $ $ ), ({(6,0)} , U2, $B_{DP}$ ), ({(6,2)} , U3, $ $ ), ({(9,-2.5)}, V1, $ $ ), ({(9,-1)} , V2, $ $ ), ({(9,1.5)} , V3, $ $ ) } \do { \node[bblock] (#2) at #1 {#3}; } \xintForthree #1 #2 #3 in { (S1, T1, 0), (S2, T2, 0), (S2, T1, 0), (S1, T2, 0), (T1, U1, 0), (T1, U2, 0), (T2, U3, 0), (U1, V1, 0), (U2, V2, 0), (U2, V3, 0), (U3, V3, 0) } \do { \draw[->, >=stealth', thick] (#1) edge[bend right=#3] (#2); } \xintFor #1 in { S1, S2 } \do { \draw[->, >=stealth', thick] ($ (#1) + (-1.5,.4) $) -- (#1); \draw[->, >=stealth', thick] ($ (#1) + (-1.5,-.4) $) -- (#1); } \xintFor #1 in { V1, V2, V3 } \do { \draw[->, >=stealth', thick] (#1) -- ($ (#1) + (1.5,.4) $); \draw[->, >=stealth', thick] (#1) -- ($ (#1) + (1.5,-.4) $); } \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{positioning}% To get more advances positioning options \usetikzlibrary{arrows}% To get more arrow heads \usetikzlibrary{shapes,trees,hobby,calc} \usepackage{xinttools}% \xintFor trims spaces... \begin{document} \tikzstyle{block}=[rectangle, draw=black, rounded corners, ultra thick, text centered, anchor=north, text=white, text width=1cm, text height=.3cm] \tikzstyle{bblock}=[block, fill=blue!50] \begin{tikzpicture} %blob \path[draw,green,fill=red,thick,use Hobby shortcut,closed=true, opacity=0.2] (-.5,.3) .. (1.5,2.5) .. (2.8,3.6) .. (4,3) .. (4.2,0) .. (4,-3) .. (2.8,-3.6) .. (1.5,-2.5) .. (-.5,-.3) ; \path[draw,red,fill=green,thick,use Hobby shortcut,closed=true, opacity=0.2] (12.5,.3) .. (10.5,2.5) .. (9.2,3.6) .. (8,3) .. (7.8,0) .. (8,-3) .. (9.2,-3.6) .. (10.5,-2.5) .. (12.5,-.3) ; \node[text=red] at (1.8,0) {\Huge S}; \node[text=green] at (10.2,0) {\Huge T}; \xintForthree #1#2#3 in {% list of 3-tuples % we *must* hide the parentheses and commas used inside individual % components of the 3-tuple ( {(0,-1)} , S1 , $ $ ), ( {(0,1)} , S2 , $ $ ), % ( {(3,-2)} , T1 , $B$ ), ( {(3,1)} , T2 , $ $ ), % ({(6,-3)}, U1, $ $ ), ({(6,0)} , U2, $B_{DP}$ ), ({(6,2)} , U3, $ $ ), % ({(9,-2.5)}, V1, $ $ ), ({(9,-1)} , V2, $ $ ), ({(9,1.5)} , V3, $ $ ) } \do { \node[bblock] (#2) at #1 {#3}; } %arrows %\foreach \f/\t/\b in { \xintForthree #1 #2 #3 in { (S1, T1, 0), (S2, T2, 0), (S2, T1, 0), (S1, T2, 0), (T1, U1, 0), (T1, U2, 0), (T2, U3, 0), (U1, V1, 0), (U2, V2, 0), (U2, V3, 0), (U3, V3, 0) } \do { \draw[->, >=stealth', thick] (#1) edge[bend right=#3] (#2); } %in arrows (no problem with end of line space) \xintFor #1 in {% S1, S2 } \do { \draw[->, >=stealth', thick] ($ (#1) + (-1.5,.4) $) -- (#1); \draw[->, >=stealth', thick] ($ (#1) + (-1.5,-.4) $) -- (#1); } %out arrows (no problem with end of line space) \xintFor #1 in { V1, V2, V3 } \do { \draw[->, >=stealth', thick] (#1) -- ($ (#1) + (1.5,.4) $); \draw[->, >=stealth', thick] (#1) -- ($ (#1) + (1.5,-.4) $); } \end{tikzpicture} \end{document}
Increase the size of S, so that the B_DP node and the node over it are also contained in S.
a graph with all but one node contained in a green or a red blob.
medium
update
scientific
[ "@@ -13 +13 @@\n\n-(-.5,.3) .. (1.5,2.5) .. (2.8,3.6) .. (4,3) .. (4.2,0) .. (4,-3)\n+(-.5,.3) .. (1.5,2.5) .. (2.8,3) .. (4,3.5) .. (6.5,3) .. (6.5,-1) .. (4.2,-2) .. (4,-3)" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\n\\usepackage{tikz}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{arrows}\n\\usetikzlibrary{shapes,trees,hobby,calc}\n\n\\usepackage{xinttools}\n\n\\begin{document}\n\n\\tikzstyle{block}=[rectangle, draw=black, rounded corners, ultra thick,\n text centered, anchor=north, text=white, text width=1cm, text height=.3cm]\n\\tikzstyle{bblock}=[block, fill=blue!50]\n\n\\begin{tikzpicture}\n\n\\path[draw,green,fill=red,thick,use Hobby shortcut,closed=true, opacity=0.2]\n(-.5,.3) .. (1.5,2.5) .. (2.8,§rangei(3,0.3)) .. (4,§rangei(3.5,0.3)) .. (§rangei(6.5,0.5),§rangei(3,0.5)) .. (§rangei(6.5,0.5),§rangei(-1,0.5)) .. (4.2,§rangei(-2,1)) .. (4,-3) \n.. (2.8,-3.6) .. (1.5,-2.5) .. (-.5,-.3)\n;\n\n\\path[draw,red,fill=green,thick,use Hobby shortcut,closed=true, opacity=0.2]\n(12.5,.3) .. (10.5,2.5) .. (9.2,3.6) .. (8,3) .. (7.8,0) .. (8,-3) \n.. (9.2,-3.6) .. (10.5,-2.5) .. (12.5,-.3)\n;\n\n\\node[text=red] at (1.8,0) {\\Huge S}; \n\\node[text=green] at (10.2,0) {\\Huge T}; \n\n\n\\xintForthree #1#2#3 in {\n ( {(0,-1)} , S1 , $ $ ), \n ( {(0,1)} , S2 , $ $ ),\n ( {(3,-2)} , T1 , $B$ ),\n ( {(3,1)} , T2 , $ $ ),\n ({(6,-3)}, U1, $ $ ),\n ({(6,0)} , U2, $B_{DP}$ ),\n ({(6,2)} , U3, $ $ ),\n ({(9,-2.5)}, V1, $ $ ),\n ({(9,-1)} , V2, $ $ ),\n ({(9,1.5)} , V3, $ $ )\n }\n\\do\n{\n \\node[bblock] (#2) at #1 {#3};\n\n}\n\n\\xintForthree #1 #2 #3 in {\n (S1, T1, 0), \n (S2, T2, 0),\n (S2, T1, 0),\n (S1, T2, 0),\n (T1, U1, 0),\n (T1, U2, 0),\n (T2, U3, 0),\n (U1, V1, 0),\n (U2, V2, 0),\n (U2, V3, 0),\n (U3, V3, 0)\n }\n\\do\n{\n \\draw[->, >=stealth', thick] (#1) edge[bend right=#3] (#2);\n}\n\n\\xintFor #1 in {\n S1,\n S2\n }\n\\do\n{\n \\draw[->, >=stealth', thick] ($ (#1) + (-1.5,.4) $) -- (#1);\n \\draw[->, >=stealth', thick] ($ (#1) + (-1.5,-.4) $) -- (#1);\n}\n\n\\xintFor #1 in {\n V1,\n V2,\n V3\n }\n\\do\n{\n \\draw[->, >=stealth', thick] (#1) -- ($ (#1) + (1.5,.4) $);\n \\draw[->, >=stealth', thick] (#1) -- ($ (#1) + (1.5,-.4) $);\n}\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\n\\usepackage{tikz}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{arrows}\n\\usetikzlibrary{shapes,trees,hobby,calc}\n\n\\usepackage{xinttools}\n\n\\begin{document}\n\n\\tikzstyle{block}=[rectangle, draw=black, rounded corners, ultra thick,\n text centered, anchor=north, text=white, text width=1cm, text height=.3cm]\n\\tikzstyle{bblock}=[block, fill=blue!50]\n\n\\begin{tikzpicture}\n\n\\path[draw,green,fill=red,thick,use Hobby shortcut,closed=true, opacity=0.2]\n(-.5,.3) .. (1.5,2.5) .. (2.8,3) .. (4,3.5) .. (6.5,3) .. (6.5,-1) .. (4.2,-2) .. (4,-3) \n.. (2.8,-3.6) .. (1.5,-2.5) .. (-.5,-.3)\n;\n\n\\path[draw,red,fill=green,thick,use Hobby shortcut,closed=true, opacity=0.2]\n(12.5,.3) .. (10.5,2.5) .. (9.2,3.6) .. (8,3) .. (7.8,0) .. (8,-3) \n.. (9.2,-3.6) .. (10.5,-2.5) .. (12.5,-.3)\n;\n\n\\node[text=red] at (1.8,0) {\\Huge S}; \n\\node[text=green] at (10.2,0) {\\Huge T}; \n\n\n\\xintForthree #1#2#3 in {\n ( {(0,-1)} , S1 , $ $ ), \n ( {(0,1)} , S2 , $ $ ),\n ( {(3,-2)} , T1 , $B$ ),\n ( {(3,1)} , T2 , $ $ ),\n ({(6,-3)}, U1, $ $ ),\n ({(6,0)} , U2, $B_{DP}$ ),\n ({(6,2)} , U3, $ $ ),\n ({(9,-2.5)}, V1, $ $ ),\n ({(9,-1)} , V2, $ $ ),\n ({(9,1.5)} , V3, $ $ )\n }\n\\do\n{\n \\node[bblock] (#2) at #1 {#3};\n\n}\n\n\\xintForthree #1 #2 #3 in {\n (S1, T1, 0), \n (S2, T2, 0),\n (S2, T1, 0),\n (S1, T2, 0),\n (T1, U1, 0),\n (T1, U2, 0),\n (T2, U3, 0),\n (U1, V1, 0),\n (U2, V2, 0),\n (U2, V3, 0),\n (U3, V3, 0)\n }\n\\do\n{\n \\draw[->, >=stealth', thick] (#1) edge[bend right=#3] (#2);\n}\n\n\\xintFor #1 in {\n S1,\n S2\n }\n\\do\n{\n \\draw[->, >=stealth', thick] ($ (#1) + (-1.5,.4) $) -- (#1);\n \\draw[->, >=stealth', thick] ($ (#1) + (-1.5,-.4) $) -- (#1);\n}\n\n\\xintFor #1 in {\n V1,\n V2,\n V3\n }\n\\do\n{\n \\draw[->, >=stealth', thick] (#1) -- ($ (#1) + (1.5,.4) $);\n \\draw[->, >=stealth', thick] (#1) -- ($ (#1) + (1.5,-.4) $);\n}\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ 76 ]
linkhex_third
\documentclass[tikz,border=5]{standalone} \usepackage{epic,latexsym,amssymb,xcolor} \usepackage{color} \usepackage{tikz} \usepackage{amsfonts,epsf,amsmath,leftidx} \usepackage{pgfplots} \pgfplotsset{compat=1.15} \usetikzlibrary{arrows} \begin{document} \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1cm,y=1cm] \clip(-0.4,-2.1) rectangle (6.7,2.3); \draw [line width=0.3pt] (0,1)-- (0,0); \draw [line width=0.3pt] (0,1)-- (0.5,1.4); \draw [line width=0.3pt] (0.5,1.4)-- (1,1); \draw [line width=0.3pt] (1,1)-- (1,0); \draw [line width=0.3pt] (0,0)-- (0.5,-0.4); \draw [line width=0.3pt] (0.5,-0.4)-- (1,0); \draw [line width=0.3pt] (1,0)-- (1.5,0.4); \draw [line width=0.3pt] (1.5,0.4)-- (2,0); \draw [line width=0.3pt] (1,0)-- (1,-1); \draw [line width=0.3pt] (1,-1)-- (1.5,-1.4); \draw [line width=0.3pt] (1.5,-1.4)-- (2,-1); \draw [line width=0.3pt] (2,0)-- (2,-1); \draw [line width=0.3pt] (3.5,1)-- (3.5,0); \draw [line width=0.3pt] (3.5,1)-- (4,1.4); \draw [line width=0.3pt] (4,1.4)-- (4.5,1); \draw [line width=0.3pt] (4.5,1)-- (4.5,0); \draw [line width=0.3pt] (4.5,0)-- (4,-0.4); \draw [line width=0.3pt] (3.5,0)-- (4,-0.4); \begin{scriptsize} \draw [fill=black] (0,0) circle (1pt); \draw [fill=black] (1,0) circle (1pt); \draw [fill=black] (1,1) circle (1pt); \draw [fill=black] (0,1) circle (1pt); \draw [fill=black] (0.5,1.4) circle (1pt); \draw [fill=black] (0.5,-0.4) circle (1pt); \draw [fill=black] (1.5,0.4) circle (1pt); \draw [fill=black] (2,0) circle (1pt); \draw [fill=black] (1,-1) circle (1pt); \draw [fill=black] (2,-1) circle (1pt); \draw [fill=black] (1.5,-1.4) circle (1pt); \draw [fill=black] (3.5,0) circle (1pt); \draw [fill=black] (4.5,0) circle (1pt); \draw [fill=black] (3.5,1) circle (1pt); \draw [fill=black] (4.5,1) circle (1pt); \draw [fill=black] (4,1.4) circle (1pt); \draw [fill=black] (4,-0.4) circle (1pt); \draw[color=black] (2.7,0) node {$...$}; \end{scriptsize} \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{epic,latexsym,amssymb,xcolor} \usepackage{color} \usepackage{tikz} \usepackage{amsfonts,epsf,amsmath,leftidx} \usepackage{pgfplots} \pgfplotsset{compat=1.15} \usetikzlibrary{arrows} \begin{document} \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1cm,y=1cm] \clip(-0.4,-2.1) rectangle (6.7,2.3); \draw [line width=0.3pt] (0,1)-- (0,0); \draw [line width=0.3pt] (0,1)-- (0.5,1.4); \draw [line width=0.3pt] (0.5,1.4)-- (1,1); \draw [line width=0.3pt] (1,1)-- (1,0); \draw [line width=0.3pt] (0,0)-- (0.5,-0.4); \draw [line width=0.3pt] (0.5,-0.4)-- (1,0); \draw [line width=0.3pt] (1,0)-- (1.5,0.4); \draw [line width=0.3pt] (1.5,0.4)-- (2,0); \draw [line width=0.3pt] (1,0)-- (1,-1); \draw [line width=0.3pt] (1,-1)-- (1.5,-1.4); \draw [line width=0.3pt] (1.5,-1.4)-- (2,-1); \draw [line width=0.3pt] (2,0)-- (2,-1); \draw [line width=0.3pt] (3.5,1)-- (3.5,0); \draw [line width=0.3pt] (3.5,1)-- (4,1.4); \draw [line width=0.3pt] (4,1.4)-- (4.5,1); \draw [line width=0.3pt] (4.5,1)-- (4.5,0); \draw [line width=0.3pt] (4.5,0)-- (4,-0.4); \draw [line width=0.3pt] (3.5,0)-- (4,-0.4); \begin{scriptsize} \draw [fill=black] (0,0) circle (1pt); \draw [fill=black] (1,0) circle (1pt); \draw [fill=black] (1,1) circle (1pt); \draw [fill=black] (0,1) circle (1pt); \draw [fill=black] (0.5,1.4) circle (1pt); \draw [fill=black] (0.5,-0.4) circle (1pt); \draw [fill=black] (1.5,0.4) circle (1pt); \draw [fill=black] (2,0) circle (1pt); \draw [fill=black] (1,-1) circle (1pt); \draw [fill=black] (2,-1) circle (1pt); \draw [fill=black] (1.5,-1.4) circle (1pt); \draw [fill=black] (3.5,0) circle (1pt); \draw [fill=black] (4.5,0) circle (1pt); \draw [fill=black] (3.5,1) circle (1pt); \draw [fill=black] (4.5,1) circle (1pt); \draw [fill=black] (4,1.4) circle (1pt); \draw [fill=black] (4,-0.4) circle (1pt); \draw[color=black] (2.7,0) node {$...$}; \end{scriptsize} \end{tikzpicture} \end{document}
Add a third hexagon after the second one, following the pattern of the two existing ones.
Four hexagonal shapes, with the first three ones sharing a vertex.
medium
add
scientific
[ "@@ -24,3 +24,6 @@\n\n-\\draw [line width=0.3pt] (3.5,1)-- (3.5,0);\n-\\draw [line width=0.3pt] (3.5,1)-- (4,1.4);\n-\\draw [line width=0.3pt] (4,1.4)-- (4.5,1);\n+\\draw [line width=0.3pt] (2,1)-- (2,0);\n+\\draw [line width=0.3pt] (2,1)-- (2.5,1.4);\n+\\draw [line width=0.3pt] (2.5,1.4)-- (3,1);\n+\\draw [line width=0.3pt] (3,1)-- (3,0);\n+\\draw [line width=0.3pt] (3,0)-- (2.5,-0.4);\n+\\draw [line width=0.3pt] (2.5,-0.4)-- (2,0);\n@@ -28,2 +31,5 @@\n\n-\\draw [line width=0.3pt] (4.5,0)-- (4,-0.4);\n-\\draw [line width=0.3pt] (3.5,0)-- (4,-0.4);\n+\\draw [line width=0.3pt] (4.5,1)-- (5,1.4);\n+\\draw [line width=0.3pt] (5,1.4)-- (5.5,1);\n+\\draw [line width=0.3pt] (5.5,1)-- (5.5,0);\n+\\draw [line width=0.3pt] (5.5,0)-- (5,-0.4);\n+\\draw [line width=0.3pt] (4.5,0)-- (5,-0.4);\n@@ -42 +48,5 @@\n\n-\\draw [fill=black] (3.5,0) circle (1pt);\n+\\draw [fill=black] (3,0) circle (1pt);\n+\\draw [fill=black] (3,1) circle (1pt);\n+\\draw [fill=black] (2,1) circle (1pt);\n+\\draw [fill=black] (2.5,1.4) circle (1pt);\n+\\draw [fill=black] (2.5,-0.4) circle (1pt);\n@@ -44 +54 @@\n\n-\\draw [fill=black] (3.5,1) circle (1pt);\n+\\draw [fill=black] (5.5,0) circle (1pt);\n@@ -46,3 +56,4 @@\n\n-\\draw [fill=black] (4,1.4) circle (1pt);\n-\\draw [fill=black] (4,-0.4) circle (1pt);\n-\\draw[color=black] (2.7,0) node {$...$};\n+\\draw [fill=black] (5.5,1) circle (1pt);\n+\\draw [fill=black] (5,1.4) circle (1pt);\n+\\draw [fill=black] (5,-0.4) circle (1pt);\n+\\draw[color=black] (3.7,0) node {$...$};" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{epic,latexsym,amssymb,xcolor}\n\\usepackage{color}\n\\usepackage{tikz}\n\\usepackage{amsfonts,epsf,amsmath,leftidx}\n\\usepackage{pgfplots}\n\\pgfplotsset{compat=1.15}\n\\usetikzlibrary{arrows}\n\n\\begin{document}\n\n\\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1cm,y=1cm]\n\\clip(-0.4,-2.1) rectangle (6.7,2.3);\n\\draw [line width=0.3pt] (0,1)-- (0,0);\n\\draw [line width=0.3pt] (0,1)-- (0.5,1.4);\n\\draw [line width=0.3pt] (0.5,1.4)-- (1,1);\n\\draw [line width=0.3pt] (1,1)-- (1,0);\n\\draw [line width=0.3pt] (0,0)-- (0.5,-0.4);\n\\draw [line width=0.3pt] (0.5,-0.4)-- (1,0);\n\\draw [line width=0.3pt] (1,0)-- (1.5,0.4);\n\\draw [line width=0.3pt] (1.5,0.4)-- (2,0);\n\\draw [line width=0.3pt] (1,0)-- (1,-1);\n\\draw [line width=0.3pt] (1,-1)-- (1.5,-1.4);\n\\draw [line width=0.3pt] (1.5,-1.4)-- (2,-1);\n\\draw [line width=0.3pt] (2,0)-- (2,-1);\n\\draw [line width=0.3pt] (2,1)-- (2,0);\n\\draw [line width=0.3pt] (2,1)-- (2.5,1.4);\n\\draw [line width=0.3pt] (2.5,1.4)-- (3,1);\n\\draw [line width=0.3pt] (3,1)-- (3,0);\n\\draw [line width=0.3pt] (3,0)-- (2.5,-0.4);\n\\draw [line width=0.3pt] (2.5,-0.4)-- (2,0);\n\\draw [line width=0.3pt] (4.5,1)-- (4.5,0);\n\\draw [line width=0.3pt] (4.5,1)-- (5,1.4);\n\\draw [line width=0.3pt] (5,1.4)-- (5.5,1);\n\\draw [line width=0.3pt] (5.5,1)-- (5.5,0);\n\\draw [line width=0.3pt] (5.5,0)-- (5,-0.4);\n\\draw [line width=0.3pt] (4.5,0)-- (5,-0.4);\n\\begin{scriptsize}\n\\draw [fill=black] (0,0) circle (1pt);\n\\draw [fill=black] (1,0) circle (1pt);\n\\draw [fill=black] (1,1) circle (1pt);\n\\draw [fill=black] (0,1) circle (1pt);\n\\draw [fill=black] (0.5,1.4) circle (1pt);\n\\draw [fill=black] (0.5,-0.4) circle (1pt);\n\\draw [fill=black] (1.5,0.4) circle (1pt);\n\\draw [fill=black] (2,0) circle (1pt);\n\\draw [fill=black] (1,-1) circle (1pt);\n\\draw [fill=black] (2,-1) circle (1pt);\n\\draw [fill=black] (1.5,-1.4) circle (1pt);\n\\draw [fill=black] (3,0) circle (1pt);\n\\draw [fill=black] (3,1) circle (1pt);\n\\draw [fill=black] (2,1) circle (1pt);\n\\draw [fill=black] (2.5,1.4) circle (1pt);\n\\draw [fill=black] (2.5,-0.4) circle (1pt);\n\\draw [fill=black] (4.5,0) circle (1pt);\n\\draw [fill=black] (5.5,0) circle (1pt);\n\\draw [fill=black] (4.5,1) circle (1pt);\n\\draw [fill=black] (5.5,1) circle (1pt);\n\\draw [fill=black] (5,1.4) circle (1pt);\n\\draw [fill=black] (5,-0.4) circle (1pt);\n\n\\draw[color=black] (3.7,0) node {$...$};\n\n\\end{scriptsize}\n\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{epic,latexsym,amssymb,xcolor}\n\\usepackage{color}\n\\usepackage{tikz}\n\\usepackage{amsfonts,epsf,amsmath,leftidx}\n\\usepackage{pgfplots}\n\\pgfplotsset{compat=1.15}\n\\usetikzlibrary{arrows}\n\n\\begin{document}\n\n\\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1cm,y=1cm]\n\\clip(-0.4,-2.1) rectangle (6.7,2.3);\n\\draw [line width=0.3pt] (0,1)-- (0,0);\n\\draw [line width=0.3pt] (0,1)-- (0.5,1.4);\n\\draw [line width=0.3pt] (0.5,1.4)-- (1,1);\n\\draw [line width=0.3pt] (1,1)-- (1,0);\n\\draw [line width=0.3pt] (0,0)-- (0.5,-0.4);\n\\draw [line width=0.3pt] (0.5,-0.4)-- (1,0);\n\\draw [line width=0.3pt] (1,0)-- (1.5,0.4);\n\\draw [line width=0.3pt] (1.5,0.4)-- (2,0);\n\\draw [line width=0.3pt] (1,0)-- (1,-1);\n\\draw [line width=0.3pt] (1,-1)-- (1.5,-1.4);\n\\draw [line width=0.3pt] (1.5,-1.4)-- (2,-1);\n\\draw [line width=0.3pt] (2,0)-- (2,-1);\n\\draw [line width=0.3pt] (2,1)-- (2,0);\n\\draw [line width=0.3pt] (2,1)-- (2.5,1.4);\n\\draw [line width=0.3pt] (2.5,1.4)-- (3,1);\n\\draw [line width=0.3pt] (3,1)-- (3,0);\n\\draw [line width=0.3pt] (3,0)-- (2.5,-0.4);\n\\draw [line width=0.3pt] (2.5,-0.4)-- (2,0);\n\\draw [line width=0.3pt] (4.5,1)-- (4.5,0);\n\\draw [line width=0.3pt] (4.5,1)-- (5,1.4);\n\\draw [line width=0.3pt] (5,1.4)-- (5.5,1);\n\\draw [line width=0.3pt] (5.5,1)-- (5.5,0);\n\\draw [line width=0.3pt] (5.5,0)-- (5,-0.4);\n\\draw [line width=0.3pt] (4.5,0)-- (5,-0.4);\n\\begin{scriptsize}\n\\draw [fill=black] (0,0) circle (1pt);\n\\draw [fill=black] (1,0) circle (1pt);\n\\draw [fill=black] (1,1) circle (1pt);\n\\draw [fill=black] (0,1) circle (1pt);\n\\draw [fill=black] (0.5,1.4) circle (1pt);\n\\draw [fill=black] (0.5,-0.4) circle (1pt);\n\\draw [fill=black] (1.5,0.4) circle (1pt);\n\\draw [fill=black] (2,0) circle (1pt);\n\\draw [fill=black] (1,-1) circle (1pt);\n\\draw [fill=black] (2,-1) circle (1pt);\n\\draw [fill=black] (1.5,-1.4) circle (1pt);\n\\draw [fill=black] (3,0) circle (1pt);\n\\draw [fill=black] (3,1) circle (1pt);\n\\draw [fill=black] (2,1) circle (1pt);\n\\draw [fill=black] (2.5,1.4) circle (1pt);\n\\draw [fill=black] (2.5,-0.4) circle (1pt);\n\\draw [fill=black] (4.5,0) circle (1pt);\n\\draw [fill=black] (5.5,0) circle (1pt);\n\\draw [fill=black] (4.5,1) circle (1pt);\n\\draw [fill=black] (5.5,1) circle (1pt);\n\\draw [fill=black] (5,1.4) circle (1pt);\n\\draw [fill=black] (5,-0.4) circle (1pt);\n\n\\draw[color=black] (3.7,0) node {$...$};\n\n\\end{scriptsize}\n\\end{tikzpicture}\n\n\\end{document}" ]
[ 2, 2 ]
magnet_red_blue
\documentclass[border=1cm]{standalone} \usepackage{tikz} \usetikzlibrary{decorations.markings} \pgfdeclarelayer{background} \pgfdeclarelayer{foreground} \pgfsetlayers{background,foreground} \begin{document} \tikzset{middlearrow/.style={ decoration={markings, mark= at position 0.5 with {\arrow{#1}} , }, postaction={decorate},red,very thin } } \begin{tikzpicture} \begin{pgfonlayer}{foreground} \node[coordinate] at (0,1)(1){1}; \node[coordinate] at (1,-1)(3){3}; \node[coordinate] at (1,0)(2){2}; \node[coordinate] at (-1,-2)(4){4}; \node[coordinate] at (-2,-1)(5){5}; \node[coordinate] at (-2,0)(6){6}; \node[coordinate] at (-1,-1)(7){7}; \node[] at (0,0.2)(S){\tiny SOUTH}; \node[coordinate] at (2,2)(8){1}; \node[coordinate] at (3,0)(10){3}; \node[coordinate] at (3,1)(9){2}; \node[coordinate] at (2,1)(11){4}; \node[coordinate] at (5,1)(12){5}; \node[coordinate] at (5,2)(13){6}; \node[coordinate] at (4,3)(14){7}; \node[] at (3,1.75)(N){\tiny NORTH}; \draw[thick] (1) to (2); \draw[thick] (2) to (3); \draw[thick] (3) to (4); \draw[thick] (4) to (5); \draw[thick] (5) to (6); \draw[thick] (6) to (7); \draw[thick] (7) to (4); \draw[thick] (6) to (1); \draw[thick] (7) to (2); \fill [opacity=.5] (1.center) -- (2.center) -- (3.center) -- (4.center) -- (5.center) -- (6.center) -- cycle; \draw[thick] (8) to (9); \draw[thick] (9) to (10); \draw[thick] (10) to (11); \draw[thick] (11) to (8); \draw[thick] (12) to (13); \draw[thick] (13) to (14); \draw[thick] (10) to (12); \draw[thick] (9) to (13); \draw[thick] (8) to (14); \fill [opacity=.5] (14.center) -- (13.center) -- (12.center) -- (10.center) -- (11.center) -- (8.center) -- cycle; \end{pgfonlayer} \begin{pgfonlayer}{background} \node[coordinate] at (3,0.8) (15){15}; \node[coordinate] at (3,0.6) (16){16}; \node[coordinate] at (3,0.4) (17){17}; \node[coordinate] at (3,0.2) (18){18}; \node[coordinate] at (1,-0.8) (181){181}; \node[coordinate] at (1,-0.6) (171){171}; \node[coordinate] at (1,-0.4) (161){161}; \node[coordinate] at (1,-0.2) (151){151}; \node[coordinate] at (2.7,1.3) (19){19}; \node[coordinate] at (2.4,1.6) (20){20}; \node[coordinate] at (0.7,0.3) (191){191}; \node[coordinate] at (0.4,0.6) (201){201}; \draw[middlearrow={stealth}] (8) -- (1); \draw[middlearrow={stealth}] (9) -- (2); \draw[middlearrow={stealth}] (10) -- (3); \draw[middlearrow={stealth}] (15) -- (151); \draw[middlearrow={stealth}] (16) -- (161); \draw[middlearrow={stealth}] (17) -- (171); \draw[middlearrow={stealth}] (18) -- (181); \draw[middlearrow={stealth}] (19) -- (191); \draw[middlearrow={stealth}] (20) -- (201); \end{pgfonlayer} \end{tikzpicture} \end{document}
\documentclass[border=1cm]{standalone} \usepackage{tikz} \usetikzlibrary{decorations.markings} \pgfdeclarelayer{background} \pgfdeclarelayer{foreground} \pgfsetlayers{background,foreground} \begin{document} \tikzset{middlearrow/.style={ decoration={markings, mark= at position 0.5 with {\arrow{#1}} , }, postaction={decorate},red,very thin } } \begin{tikzpicture} \begin{pgfonlayer}{foreground} % cube 1 \node[coordinate] at (0,1)(1){1}; \node[coordinate] at (1,-1)(3){3}; \node[coordinate] at (1,0)(2){2}; \node[coordinate] at (-1,-2)(4){4}; \node[coordinate] at (-2,-1)(5){5}; \node[coordinate] at (-2,0)(6){6}; \node[coordinate] at (-1,-1)(7){7}; \node[] at (0,0.2)(S){\tiny SOUTH}; % cube 2 \node[coordinate] at (2,2)(8){1}; \node[coordinate] at (3,0)(10){3}; \node[coordinate] at (3,1)(9){2}; \node[coordinate] at (2,1)(11){4}; \node[coordinate] at (5,1)(12){5}; \node[coordinate] at (5,2)(13){6}; \node[coordinate] at (4,3)(14){7}; \node[] at (3,1.75)(N){\tiny NORTH}; %draw cube 1 \draw[thick] (1) to (2); \draw[thick] (2) to (3); \draw[thick] (3) to (4); \draw[thick] (4) to (5); \draw[thick] (5) to (6); \draw[thick] (6) to (7); \draw[thick] (7) to (4); \draw[thick] (6) to (1); \draw[thick] (7) to (2); \fill [opacity=.5] (1.center) -- (2.center) -- (3.center) -- (4.center) -- (5.center) -- (6.center) -- cycle; %draw cube 2 \draw[thick] (8) to (9); \draw[thick] (9) to (10); \draw[thick] (10) to (11); \draw[thick] (11) to (8); \draw[thick] (12) to (13); \draw[thick] (13) to (14); \draw[thick] (10) to (12); \draw[thick] (9) to (13); \draw[thick] (8) to (14); \fill [opacity=.5] (14.center) -- (13.center) -- (12.center) -- (10.center) -- (11.center) -- (8.center) -- cycle; \end{pgfonlayer} \begin{pgfonlayer}{background} % additional nodes for arrows \node[coordinate] at (3,0.8) (15){15}; \node[coordinate] at (3,0.6) (16){16}; \node[coordinate] at (3,0.4) (17){17}; \node[coordinate] at (3,0.2) (18){18}; \node[coordinate] at (1,-0.8) (181){181}; \node[coordinate] at (1,-0.6) (171){171}; \node[coordinate] at (1,-0.4) (161){161}; \node[coordinate] at (1,-0.2) (151){151}; \node[coordinate] at (2.7,1.3) (19){19}; \node[coordinate] at (2.4,1.6) (20){20}; \node[coordinate] at (0.7,0.3) (191){191}; \node[coordinate] at (0.4,0.6) (201){201}; % magnetic arrows \draw[middlearrow={stealth}] (8) -- (1); \draw[middlearrow={stealth}] (9) -- (2); \draw[middlearrow={stealth}] (10) -- (3); \draw[middlearrow={stealth}] (15) -- (151); \draw[middlearrow={stealth}] (16) -- (161); \draw[middlearrow={stealth}] (17) -- (171); \draw[middlearrow={stealth}] (18) -- (181); \draw[middlearrow={stealth}] (19) -- (191); \draw[middlearrow={stealth}] (20) -- (201); \end{pgfonlayer} \end{tikzpicture} \end{document}
Color the north magnet in red and the south one in blue
Two colored magnets.
easy
update
scientific
[ "@@ -42 +42 @@\n\n-\\fill [opacity=.5] (1.center) -- (2.center) -- (3.center) -- (4.center) -- (5.center) -- (6.center) -- cycle;\n+\\fill [opacity=.5,blue] (1.center) -- (2.center) -- (3.center) -- (4.center) -- (5.center) -- (6.center) -- cycle;\n@@ -52 +52 @@\n\n-\\fill [opacity=.5] (14.center) -- (13.center) -- (12.center) -- (10.center) -- (11.center) -- (8.center) -- cycle;\n+\\fill [opacity=.5,red] (14.center) -- (13.center) -- (12.center) -- (10.center) -- (11.center) -- (8.center) -- cycle;", "@@ -42 +42 @@\n\n-\\fill [opacity=.5] (1.center) -- (2.center) -- (3.center) -- (4.center) -- (5.center) -- (6.center) -- cycle;\n+\\fill [blue,opacity=.5] (1.center) -- (2.center) -- (3.center) -- (4.center) -- (5.center) -- (6.center) -- cycle;\n@@ -52 +52 @@\n\n-\\fill [opacity=.5] (14.center) -- (13.center) -- (12.center) -- (10.center) -- (11.center) -- (8.center) -- cycle;\n+\\fill [red,opacity=.5] (14.center) -- (13.center) -- (12.center) -- (10.center) -- (11.center) -- (8.center) -- cycle;" ]
[ "\\documentclass[border=1cm]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{decorations.markings}\n\n\\pgfdeclarelayer{background}\n\\pgfdeclarelayer{foreground}\n\\pgfsetlayers{background,foreground}\n\n\\begin{document}\n \n \\tikzset{middlearrow/.style={\n decoration={markings,\n mark= at position 0.5 with {\\arrow{#1}} ,\n },\n postaction={decorate},red,very thin\n }\n }\n \n \\begin{tikzpicture}\n \n \\begin{pgfonlayer}{foreground}\n \\node[coordinate] at (0,1)(1){1};\n \\node[coordinate] at (1,-1)(3){3};\n \\node[coordinate] at (1,0)(2){2};\n \\node[coordinate] at (-1,-2)(4){4};\n \\node[coordinate] at (-2,-1)(5){5};\n \\node[coordinate] at (-2,0)(6){6};\n \\node[coordinate] at (-1,-1)(7){7};\n \\node[] at (0,0.2)(S){\\tiny SOUTH};\n \n \\node[coordinate] at (2,2)(8){1};\n \\node[coordinate] at (3,0)(10){3};\n \\node[coordinate] at (3,1)(9){2};\n \\node[coordinate] at (2,1)(11){4};\n \\node[coordinate] at (5,1)(12){5};\n \\node[coordinate] at (5,2)(13){6};\n \\node[coordinate] at (4,3)(14){7};\n \\node[] at (3,1.75)(N){\\tiny NORTH};\n \n \\draw[thick] (1) to (2);\n \\draw[thick] (2) to (3);\n \\draw[thick] (3) to (4);\n \\draw[thick] (4) to (5);\n \\draw[thick] (5) to (6);\n \\draw[thick] (6) to (7);\n \\draw[thick] (7) to (4);\n \\draw[thick] (6) to (1);\n \\draw[thick] (7) to (2);\n \n \\fill [opacity=.5,blue] (1.center) -- (2.center) -- (3.center) -- (4.center) -- (5.center) -- (6.center) -- cycle;\n \n \\draw[thick] (8) to (9);\n \\draw[thick] (9) to (10);\n \\draw[thick] (10) to (11);\n \\draw[thick] (11) to (8);\n \\draw[thick] (12) to (13);\n \\draw[thick] (13) to (14);\n \\draw[thick] (10) to (12);\n \\draw[thick] (9) to (13);\n \\draw[thick] (8) to (14);\n \n \\fill [opacity=.5,red] (14.center) -- (13.center) -- (12.center) -- (10.center) -- (11.center) -- (8.center) -- cycle;\n \\end{pgfonlayer}\n\n \\begin{pgfonlayer}{background}\n \\node[coordinate] at (3,0.8) (15){15};\n \\node[coordinate] at (3,0.6) (16){16};\n \\node[coordinate] at (3,0.4) (17){17};\n \\node[coordinate] at (3,0.2) (18){18};\n \\node[coordinate] at (1,-0.8) (181){181};\n \\node[coordinate] at (1,-0.6) (171){171};\n \\node[coordinate] at (1,-0.4) (161){161};\n \\node[coordinate] at (1,-0.2) (151){151};\n \n \\node[coordinate] at (2.7,1.3) (19){19};\n \\node[coordinate] at (2.4,1.6) (20){20};\n \\node[coordinate] at (0.7,0.3) (191){191};\n \\node[coordinate] at (0.4,0.6) (201){201};\n \n \\draw[middlearrow={stealth}] (8) -- (1);\n \\draw[middlearrow={stealth}] (9) -- (2);\n \\draw[middlearrow={stealth}] (10) -- (3);\n \\draw[middlearrow={stealth}] (15) -- (151);\n \\draw[middlearrow={stealth}] (16) -- (161);\n \\draw[middlearrow={stealth}] (17) -- (171);\n \\draw[middlearrow={stealth}] (18) -- (181);\n \n \\draw[middlearrow={stealth}] (19) -- (191);\n \\draw[middlearrow={stealth}] (20) -- (201); \n\\end{pgfonlayer}\n\n \\end{tikzpicture} \n \n\\end{document}", "\\documentclass[border=1cm]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{decorations.markings}\n\n\\pgfdeclarelayer{background}\n\\pgfdeclarelayer{foreground}\n\\pgfsetlayers{background,foreground}\n\n\\begin{document}\n \n \\tikzset{middlearrow/.style={\n decoration={markings,\n mark= at position 0.5 with {\\arrow{#1}} ,\n },\n postaction={decorate},red,very thin\n }\n }\n \n \\begin{tikzpicture}\n \n \\begin{pgfonlayer}{foreground}\n \\node[coordinate] at (0,1)(1){1};\n \\node[coordinate] at (1,-1)(3){3};\n \\node[coordinate] at (1,0)(2){2};\n \\node[coordinate] at (-1,-2)(4){4};\n \\node[coordinate] at (-2,-1)(5){5};\n \\node[coordinate] at (-2,0)(6){6};\n \\node[coordinate] at (-1,-1)(7){7};\n \\node[] at (0,0.2)(S){\\tiny SOUTH};\n \n \\node[coordinate] at (2,2)(8){1};\n \\node[coordinate] at (3,0)(10){3};\n \\node[coordinate] at (3,1)(9){2};\n \\node[coordinate] at (2,1)(11){4};\n \\node[coordinate] at (5,1)(12){5};\n \\node[coordinate] at (5,2)(13){6};\n \\node[coordinate] at (4,3)(14){7};\n \\node[] at (3,1.75)(N){\\tiny NORTH};\n \n \\draw[thick] (1) to (2);\n \\draw[thick] (2) to (3);\n \\draw[thick] (3) to (4);\n \\draw[thick] (4) to (5);\n \\draw[thick] (5) to (6);\n \\draw[thick] (6) to (7);\n \\draw[thick] (7) to (4);\n \\draw[thick] (6) to (1);\n \\draw[thick] (7) to (2);\n \n \\fill [blue,opacity=.5] (1.center) -- (2.center) -- (3.center) -- (4.center) -- (5.center) -- (6.center) -- cycle;\n \n \\draw[thick] (8) to (9);\n \\draw[thick] (9) to (10);\n \\draw[thick] (10) to (11);\n \\draw[thick] (11) to (8);\n \\draw[thick] (12) to (13);\n \\draw[thick] (13) to (14);\n \\draw[thick] (10) to (12);\n \\draw[thick] (9) to (13);\n \\draw[thick] (8) to (14);\n \n \\fill [red,opacity=.5] (14.center) -- (13.center) -- (12.center) -- (10.center) -- (11.center) -- (8.center) -- cycle;\n \\end{pgfonlayer}\n\n \\begin{pgfonlayer}{background}\n \\node[coordinate] at (3,0.8) (15){15};\n \\node[coordinate] at (3,0.6) (16){16};\n \\node[coordinate] at (3,0.4) (17){17};\n \\node[coordinate] at (3,0.2) (18){18};\n \\node[coordinate] at (1,-0.8) (181){181};\n \\node[coordinate] at (1,-0.6) (171){171};\n \\node[coordinate] at (1,-0.4) (161){161};\n \\node[coordinate] at (1,-0.2) (151){151};\n \n \\node[coordinate] at (2.7,1.3) (19){19};\n \\node[coordinate] at (2.4,1.6) (20){20};\n \\node[coordinate] at (0.7,0.3) (191){191};\n \\node[coordinate] at (0.4,0.6) (201){201};\n \n \\draw[middlearrow={stealth}] (8) -- (1);\n \\draw[middlearrow={stealth}] (9) -- (2);\n \\draw[middlearrow={stealth}] (10) -- (3);\n \\draw[middlearrow={stealth}] (15) -- (151);\n \\draw[middlearrow={stealth}] (16) -- (161);\n \\draw[middlearrow={stealth}] (17) -- (171);\n \\draw[middlearrow={stealth}] (18) -- (181);\n \n \\draw[middlearrow={stealth}] (19) -- (191);\n \\draw[middlearrow={stealth}] (20) -- (201); \n\\end{pgfonlayer}\n\n \\end{tikzpicture} \n \n\\end{document}" ]
[ "\\documentclass[border=1cm]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{decorations.markings}\n\n\\pgfdeclarelayer{background}\n\\pgfdeclarelayer{foreground}\n\\pgfsetlayers{background,foreground}\n\n\\begin{document}\n \n \\tikzset{middlearrow/.style={\n decoration={markings,\n mark= at position 0.5 with {\\arrow{#1}} ,\n },\n postaction={decorate},red,very thin\n }\n }\n \n \\begin{tikzpicture}\n \n \\begin{pgfonlayer}{foreground}\n \\node[coordinate] at (0,1)(1){1};\n \\node[coordinate] at (1,-1)(3){3};\n \\node[coordinate] at (1,0)(2){2};\n \\node[coordinate] at (-1,-2)(4){4};\n \\node[coordinate] at (-2,-1)(5){5};\n \\node[coordinate] at (-2,0)(6){6};\n \\node[coordinate] at (-1,-1)(7){7};\n \\node[] at (0,0.2)(S){\\tiny SOUTH};\n \n \\node[coordinate] at (2,2)(8){1};\n \\node[coordinate] at (3,0)(10){3};\n \\node[coordinate] at (3,1)(9){2};\n \\node[coordinate] at (2,1)(11){4};\n \\node[coordinate] at (5,1)(12){5};\n \\node[coordinate] at (5,2)(13){6};\n \\node[coordinate] at (4,3)(14){7};\n \\node[] at (3,1.75)(N){\\tiny NORTH};\n \n \\draw[thick] (1) to (2);\n \\draw[thick] (2) to (3);\n \\draw[thick] (3) to (4);\n \\draw[thick] (4) to (5);\n \\draw[thick] (5) to (6);\n \\draw[thick] (6) to (7);\n \\draw[thick] (7) to (4);\n \\draw[thick] (6) to (1);\n \\draw[thick] (7) to (2);\n \n \\fill [opacity=.5,blue] (1.center) -- (2.center) -- (3.center) -- (4.center) -- (5.center) -- (6.center) -- cycle;\n \n \\draw[thick] (8) to (9);\n \\draw[thick] (9) to (10);\n \\draw[thick] (10) to (11);\n \\draw[thick] (11) to (8);\n \\draw[thick] (12) to (13);\n \\draw[thick] (13) to (14);\n \\draw[thick] (10) to (12);\n \\draw[thick] (9) to (13);\n \\draw[thick] (8) to (14);\n \n \\fill [opacity=.5,red] (14.center) -- (13.center) -- (12.center) -- (10.center) -- (11.center) -- (8.center) -- cycle;\n \\end{pgfonlayer}\n\n \\begin{pgfonlayer}{background}\n \\node[coordinate] at (3,0.8) (15){15};\n \\node[coordinate] at (3,0.6) (16){16};\n \\node[coordinate] at (3,0.4) (17){17};\n \\node[coordinate] at (3,0.2) (18){18};\n \\node[coordinate] at (1,-0.8) (181){181};\n \\node[coordinate] at (1,-0.6) (171){171};\n \\node[coordinate] at (1,-0.4) (161){161};\n \\node[coordinate] at (1,-0.2) (151){151};\n \n \\node[coordinate] at (2.7,1.3) (19){19};\n \\node[coordinate] at (2.4,1.6) (20){20};\n \\node[coordinate] at (0.7,0.3) (191){191};\n \\node[coordinate] at (0.4,0.6) (201){201};\n \n \\draw[middlearrow={stealth}] (8) -- (1);\n \\draw[middlearrow={stealth}] (9) -- (2);\n \\draw[middlearrow={stealth}] (10) -- (3);\n \\draw[middlearrow={stealth}] (15) -- (151);\n \\draw[middlearrow={stealth}] (16) -- (161);\n \\draw[middlearrow={stealth}] (17) -- (171);\n \\draw[middlearrow={stealth}] (18) -- (181);\n \n \\draw[middlearrow={stealth}] (19) -- (191);\n \\draw[middlearrow={stealth}] (20) -- (201); \n\\end{pgfonlayer}\n\n \\end{tikzpicture} \n \n\\end{document}", "\\documentclass[border=1cm]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{decorations.markings}\n\n\\pgfdeclarelayer{background}\n\\pgfdeclarelayer{foreground}\n\\pgfsetlayers{background,foreground}\n\n\\begin{document}\n \n \\tikzset{middlearrow/.style={\n decoration={markings,\n mark= at position 0.5 with {\\arrow{#1}} ,\n },\n postaction={decorate},red,very thin\n }\n }\n \n \\begin{tikzpicture}\n \n \\begin{pgfonlayer}{foreground}\n \\node[coordinate] at (0,1)(1){1};\n \\node[coordinate] at (1,-1)(3){3};\n \\node[coordinate] at (1,0)(2){2};\n \\node[coordinate] at (-1,-2)(4){4};\n \\node[coordinate] at (-2,-1)(5){5};\n \\node[coordinate] at (-2,0)(6){6};\n \\node[coordinate] at (-1,-1)(7){7};\n \\node[] at (0,0.2)(S){\\tiny SOUTH};\n \n \\node[coordinate] at (2,2)(8){1};\n \\node[coordinate] at (3,0)(10){3};\n \\node[coordinate] at (3,1)(9){2};\n \\node[coordinate] at (2,1)(11){4};\n \\node[coordinate] at (5,1)(12){5};\n \\node[coordinate] at (5,2)(13){6};\n \\node[coordinate] at (4,3)(14){7};\n \\node[] at (3,1.75)(N){\\tiny NORTH};\n \n \\draw[thick] (1) to (2);\n \\draw[thick] (2) to (3);\n \\draw[thick] (3) to (4);\n \\draw[thick] (4) to (5);\n \\draw[thick] (5) to (6);\n \\draw[thick] (6) to (7);\n \\draw[thick] (7) to (4);\n \\draw[thick] (6) to (1);\n \\draw[thick] (7) to (2);\n \n \\fill [blue,opacity=.5] (1.center) -- (2.center) -- (3.center) -- (4.center) -- (5.center) -- (6.center) -- cycle;\n \n \\draw[thick] (8) to (9);\n \\draw[thick] (9) to (10);\n \\draw[thick] (10) to (11);\n \\draw[thick] (11) to (8);\n \\draw[thick] (12) to (13);\n \\draw[thick] (13) to (14);\n \\draw[thick] (10) to (12);\n \\draw[thick] (9) to (13);\n \\draw[thick] (8) to (14);\n \n \\fill [red,opacity=.5] (14.center) -- (13.center) -- (12.center) -- (10.center) -- (11.center) -- (8.center) -- cycle;\n \\end{pgfonlayer}\n\n \\begin{pgfonlayer}{background}\n \\node[coordinate] at (3,0.8) (15){15};\n \\node[coordinate] at (3,0.6) (16){16};\n \\node[coordinate] at (3,0.4) (17){17};\n \\node[coordinate] at (3,0.2) (18){18};\n \\node[coordinate] at (1,-0.8) (181){181};\n \\node[coordinate] at (1,-0.6) (171){171};\n \\node[coordinate] at (1,-0.4) (161){161};\n \\node[coordinate] at (1,-0.2) (151){151};\n \n \\node[coordinate] at (2.7,1.3) (19){19};\n \\node[coordinate] at (2.4,1.6) (20){20};\n \\node[coordinate] at (0.7,0.3) (191){191};\n \\node[coordinate] at (0.4,0.6) (201){201};\n \n \\draw[middlearrow={stealth}] (8) -- (1);\n \\draw[middlearrow={stealth}] (9) -- (2);\n \\draw[middlearrow={stealth}] (10) -- (3);\n \\draw[middlearrow={stealth}] (15) -- (151);\n \\draw[middlearrow={stealth}] (16) -- (161);\n \\draw[middlearrow={stealth}] (17) -- (171);\n \\draw[middlearrow={stealth}] (18) -- (181);\n \n \\draw[middlearrow={stealth}] (19) -- (191);\n \\draw[middlearrow={stealth}] (20) -- (201); \n\\end{pgfonlayer}\n\n \\end{tikzpicture} \n \n\\end{document}" ]
[ 108 ]
model_treatment_2
\documentclass[tikz,border=5]{standalone} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsmath,amsthm,amssymb,amscd} \usepackage{xcolor} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usepgfplotslibrary{groupplots} \usepgfplotslibrary{dateplot} \tikzset{ causalvar/.style = {draw, circle, node distance = 2cm} } \usepackage{amsmath} \usetikzlibrary{matrix} \usetikzlibrary{shapes,arrows} \usepackage{amsmath} \usepackage{amsmath,amsthm,amssymb,amscd} \usepackage{xcolor} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usepgfplotslibrary{groupplots} \usepgfplotslibrary{dateplot} \tikzset{ causalvar/.style = {draw, circle, node distance = 2cm} } \usetikzlibrary{matrix} \usetikzlibrary{shapes,arrows} \usepackage{amssymb} \begin{document} \begin{tikzpicture}[auto, thick, node distance=1cm, >=triangle 45] \tikzstyle{unobserved}=[thick, dashed, fill=gray!0] \tikzstyle{squared}=[thick, fill=gray!10, rounded corners=5pt] \tikzstyle{norn}=[thick, fill=gray!0, minimum size=1cm] \draw[squared] (-2.9,-2.7) rectangle (-1.1,0.7); \draw[squared, fill=blue!20] (-0.9,-2.7) rectangle (0.9,0.7); \draw[squared, fill=blue!30] (1.1,-2.7) rectangle (2.9,0.7); \draw[squared] (3.1,-2.7) rectangle (4.9,0.7); \draw node[norn] at (2,0)[causalvar](A){$A_t$} node[norn] at (4,0)[causalvar](Y){$Y_t$} node[norn] at (4,-1.5)[causalvar](Yp){$Y_{t+1}$} node[norn] at (-2,0)[causalvar](X){$X_t$} node[norn] at (-2,-1.5)[causalvar](Xp){$X_{t+1}$} node[squared, minimum size=1cm] at (0,0)[causalvar](theta_t){$\theta_t$} node[squared] at (0,-1.5)[causalvar](theta_t_p){$\theta_{t+1}$} node[norn] at (2,-1.5)[causalvar](A2){$A_{t+1}$}; \draw (0,-2.5)node[scale=0.7]{model}; \draw (2,-2.5)node[scale=0.7]{treatment}; \draw (-2.,-2.5)node[scale=0.7]{context}; \draw (4,-2.5)node[scale=0.7]{outcome}; \draw[->](X) -- (theta_t) node[midway, near end] {}; \draw[->](theta_t) to node {} (A); \draw[->](A) to node {} (Y); \draw[->](X) to [out=45,in=135] node {} (Y); \draw[->](Xp) to [out=-45,in=-135] node {} (Yp); \draw[->](Xp) -- (theta_t_p) node[midway, near end] {}; \draw[->](theta_t_p) to node {} (A2); \draw[->](A2) to node {} (Yp); \draw[->](A) to node {} (theta_t_p); \draw[->](Y) to node {} (theta_t_p); \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsmath,amsthm,amssymb,amscd} \usepackage{xcolor} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usepgfplotslibrary{groupplots} \usepgfplotslibrary{dateplot} \tikzset{ causalvar/.style = {draw, circle, node distance = 2cm} } \usepackage{amsmath} \usetikzlibrary{matrix} \usetikzlibrary{shapes,arrows} \usepackage{amsmath} \usepackage{amsmath,amsthm,amssymb,amscd} \usepackage{xcolor} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usepgfplotslibrary{groupplots} \usepgfplotslibrary{dateplot} \tikzset{ causalvar/.style = {draw, circle, node distance = 2cm} } \usetikzlibrary{matrix} \usetikzlibrary{shapes,arrows} \usepackage{amssymb} \begin{document} \begin{tikzpicture}[auto, thick, node distance=1cm, >=triangle 45] %,->,>=stealth',auto,node distance=3cm, \tikzstyle{unobserved}=[thick, dashed, fill=gray!0] \tikzstyle{squared}=[thick, fill=gray!10, rounded corners=5pt] \tikzstyle{norn}=[thick, fill=gray!0, minimum size=1cm] \draw[squared] (-2.9,-2.7) rectangle (-1.1,0.7); \draw[squared, fill=blue!20] (-0.9,-2.7) rectangle (0.9,0.7); \draw[squared, fill=blue!30] (1.1,-2.7) rectangle (2.9,0.7); \draw[squared] (3.1,-2.7) rectangle (4.9,0.7); \draw node[norn] at (2,0)[causalvar](A){$A_t$} node[norn] at (4,0)[causalvar](Y){$Y_t$} node[norn] at (4,-1.5)[causalvar](Yp){$Y_{t+1}$} node[norn] at (-2,0)[causalvar](X){$X_t$} node[norn] at (-2,-1.5)[causalvar](Xp){$X_{t+1}$} node[squared, minimum size=1cm] at (0,0)[causalvar](theta_t){$\theta_t$} node[squared] at (0,-1.5)[causalvar](theta_t_p){$\theta_{t+1}$} node[norn] at (2,-1.5)[causalvar](A2){$A_{t+1}$}; \draw (0,-2.5)node[scale=0.7]{model}; \draw (2,-2.5)node[scale=0.7]{treatment}; \draw (-2.,-2.5)node[scale=0.7]{context}; \draw (4,-2.5)node[scale=0.7]{outcome}; \draw[->](X) -- (theta_t) node[midway, near end] {}; \draw[->](theta_t) to node {} (A); \draw[->](A) to node {} (Y); \draw[->](X) to [out=45,in=135] node {} (Y); \draw[->](Xp) to [out=-45,in=-135] node {} (Yp); \draw[->](Xp) -- (theta_t_p) node[midway, near end] {}; \draw[->](theta_t_p) to node {} (A2); \draw[->](A2) to node {} (Yp); \draw[->](A) to node {} (theta_t_p); \draw[->](Y) to node {} (theta_t_p); \end{tikzpicture} \end{document}
Add a second treatment named "second treatment", with nodes named B, and with the same color as the first treatment. The existing treatment should be renamed "first treatment". The new added treatment should be between first treatment and outcome, and the nodes Bt and Bt+1 must be linked the same way the nodes At and At+1 are.
a diagram, with two treatments first and second
hard
add
scientific
[ "@@ -39 +39,2 @@\n\n-\\draw[squared] (3.1,-2.7) rectangle (4.9,0.7);\n+\\draw[squared, fill=blue!30] (3.1,-2.7) rectangle (4.9,0.7);\n+\\draw[squared] (5.1,-2.7) rectangle (6.9,0.7);\n@@ -42,2 +43,3 @@\n\n-node[norn] at (4,0)[causalvar](Y){$Y_t$}\n-node[norn] at (4,-1.5)[causalvar](Yp){$Y_{t+1}$}\n+node[norn] at (4,0)[causalvar](B){$B_t$}\n+node[norn] at (6,0)[causalvar](Y){$Y_t$}\n+node[norn] at (6,-1.5)[causalvar](Yp){$Y_{t+1}$}\n@@ -48 +50,3 @@\n\n-node[norn] at (2,-1.5)[causalvar](A2){$A_{t+1}$};\n+node[norn] at (2,-1.5)[causalvar](A2){$A_{t+1}$}\n+node[norn] at (4,-1.5)[causalvar](B2){$B_{t+1}$};\n+;\n@@ -50 +54 @@\n\n-\\draw (2,-2.5)node[scale=0.7]{treatment};\n+\\draw (2,-2.5)node[scale=0.7]{first treatment};\n@@ -52 +56,2 @@\n\n-\\draw (4,-2.5)node[scale=0.7]{outcome};\n+\\draw (4,-2.5)node[scale=0.7]{second treatment};\n+\\draw (6,-2.5)node[scale=0.7]{outcome};\n@@ -55 +60,2 @@\n\n-\\draw[->](A) to node {} (Y);\n+\\draw[->](A) to node {} (B);\n+\\draw[->](B) to node {} (Y);\n@@ -60 +66,2 @@\n\n-\\draw[->](A2) to node {} (Yp);\n+\\draw[->](A2) to node {} (B2);\n+\\draw[->](B2) to node {} (Yp);\n@@ -61,0 +69 @@\n\n+\\draw[->](B) to node {} (theta_t_p);" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath}\n\\usepackage{amssymb}\n\\usepackage{amsmath,amsthm,amssymb,amscd}\n\\usepackage{xcolor}\n\\usepackage{tikz}\n\\usepackage{pgfplots}\n\\pgfplotsset{compat=newest}\n\\usepgfplotslibrary{groupplots}\n\\usepgfplotslibrary{dateplot}\n\\tikzset{\n causalvar/.style = {draw, circle, node distance = 2cm}\n}\n\\usepackage{amsmath}\n\\usetikzlibrary{matrix}\n\\usetikzlibrary{shapes,arrows}\n\\usepackage{amsmath}\n\\usepackage{amsmath,amsthm,amssymb,amscd}\n\\usepackage{xcolor}\n\\usepackage{tikz}\n\\usepackage{pgfplots}\n\\pgfplotsset{compat=newest}\n\\usepgfplotslibrary{groupplots}\n\\usepgfplotslibrary{dateplot}\n\\tikzset{\n causalvar/.style = {draw, circle, node distance = 2cm}\n}\n\\usetikzlibrary{matrix}\n\\usetikzlibrary{shapes,arrows}\n\\usepackage{amssymb}\n\n\\begin{document}\n\n\\begin{tikzpicture}[auto, thick, node distance=1cm, >=triangle 45]\n\\tikzstyle{unobserved}=[thick, dashed, fill=gray!0]\n\\tikzstyle{squared}=[thick, fill=gray!10, rounded corners=5pt]\n\\tikzstyle{norn}=[thick, fill=gray!0, minimum size=1cm]\n\\draw[squared] (-2.9,-2.7) rectangle (-1.1,0.7);\n\\draw[squared, fill=blue!20] (-0.9,-2.7) rectangle (0.9,0.7);\n\\draw[squared, fill=blue!30] (1.1,-2.7) rectangle (2.9,0.7);\n\\draw[squared, fill=blue!30] (3.1,-2.7) rectangle (4.9,0.7);\n\\draw[squared] (5.1,-2.7) rectangle (6.9,0.7);\n\\draw\n\tnode[norn] at (2,0)[causalvar](A){$A_t$}\n\tnode[norn] at (4,0)[causalvar](B){$B_t$}\n\tnode[norn] at (6,0)[causalvar](Y){$Y_t$}\n node[norn] at (6,-1.5)[causalvar](Yp){$Y_{t+1}$}\n\tnode[norn] at (-2,0)[causalvar](X){$X_t$}\n node[norn] at (-2,-1.5)[causalvar](Xp){$X_{t+1}$}\n node[squared, minimum size=1cm] at (0,0)[causalvar](theta_t){$\\theta_t$}\n node[squared] at (0,-1.5)[causalvar](theta_t_p){$\\theta_{t+1}$}\n node[norn] at (2,-1.5)[causalvar](A2){$A_{t+1}$}\n node[norn] at (4,-1.5)[causalvar](B2){$B_{t+1}$};\n ;\n\t\n\\draw (0,-2.5)node[scale=0.7]{model};\n\\draw (2,-2.5)node[scale=0.7]{first treatment};\n\\draw (-2.,-2.5)node[scale=0.7]{context};\n\\draw (4,-2.5)node[scale=0.7]{second treatment};\n\\draw (6,-2.5)node[scale=0.7]{outcome};\n\t\\draw[->](X) -- (theta_t) node[midway, near end] {};\n \\draw[->](theta_t) to node {} (A);\n\t\\draw[->](A) to node {} (B);\n\t\\draw[->](B) to node {} (Y);\n\t\\draw[->](X) to [out=45,in=135] node {} (Y);\n \\draw[->](Xp) to [out=-45,in=-135] node {} (Yp);\n \\draw[->](Xp) -- (theta_t_p) node[midway, near end] {};\n \\draw[->](theta_t_p) to node {} (A2);\n \\draw[->](A2) to node {} (B2);\n \\draw[->](B2) to node {} (Yp);\n \\draw[->](A) to node {} (theta_t_p);\n \\draw[->](B) to node {} (theta_t_p);\n \\draw[->](Y) to node {} (theta_t_p);\n\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath}\n\\usepackage{amssymb}\n\\usepackage{amsmath,amsthm,amssymb,amscd}\n\\usepackage{xcolor}\n\\usepackage{tikz}\n\\usepackage{pgfplots}\n\\pgfplotsset{compat=newest}\n\\usepgfplotslibrary{groupplots}\n\\usepgfplotslibrary{dateplot}\n\\tikzset{\n causalvar/.style = {draw, circle, node distance = 2cm}\n}\n\\usepackage{amsmath}\n\\usetikzlibrary{matrix}\n\\usetikzlibrary{shapes,arrows}\n\\usepackage{amsmath}\n\\usepackage{amsmath,amsthm,amssymb,amscd}\n\\usepackage{xcolor}\n\\usepackage{tikz}\n\\usepackage{pgfplots}\n\\pgfplotsset{compat=newest}\n\\usepgfplotslibrary{groupplots}\n\\usepgfplotslibrary{dateplot}\n\\tikzset{\n causalvar/.style = {draw, circle, node distance = 2cm}\n}\n\\usetikzlibrary{matrix}\n\\usetikzlibrary{shapes,arrows}\n\\usepackage{amssymb}\n\n\\begin{document}\n\n\\begin{tikzpicture}[auto, thick, node distance=1cm, >=triangle 45]\n\\tikzstyle{unobserved}=[thick, dashed, fill=gray!0]\n\\tikzstyle{squared}=[thick, fill=gray!10, rounded corners=5pt]\n\\tikzstyle{norn}=[thick, fill=gray!0, minimum size=1cm]\n\\draw[squared] (-2.9,-2.7) rectangle (-1.1,0.7);\n\\draw[squared, fill=blue!20] (-0.9,-2.7) rectangle (0.9,0.7);\n\\draw[squared, fill=blue!30] (1.1,-2.7) rectangle (2.9,0.7);\n\\draw[squared, fill=blue!30] (3.1,-2.7) rectangle (4.9,0.7);\n\\draw[squared] (5.1,-2.7) rectangle (6.9,0.7);\n\\draw\n\tnode[norn] at (2,0)[causalvar](A){$A_t$}\n\tnode[norn] at (4,0)[causalvar](B){$B_t$}\n\tnode[norn] at (6,0)[causalvar](Y){$Y_t$}\n node[norn] at (6,-1.5)[causalvar](Yp){$Y_{t+1}$}\n\tnode[norn] at (-2,0)[causalvar](X){$X_t$}\n node[norn] at (-2,-1.5)[causalvar](Xp){$X_{t+1}$}\n node[squared, minimum size=1cm] at (0,0)[causalvar](theta_t){$\\theta_t$}\n node[squared] at (0,-1.5)[causalvar](theta_t_p){$\\theta_{t+1}$}\n node[norn] at (2,-1.5)[causalvar](A2){$A_{t+1}$}\n node[norn] at (4,-1.5)[causalvar](B2){$B_{t+1}$};\n ;\n\t\n\\draw (0,-2.5)node[scale=0.7]{model};\n\\draw (2,-2.5)node[scale=0.7]{first treatment};\n\\draw (-2.,-2.5)node[scale=0.7]{context};\n\\draw (4,-2.5)node[scale=0.7]{second treatment};\n\\draw (6,-2.5)node[scale=0.7]{outcome};\n\t\\draw[->](X) -- (theta_t) node[midway, near end] {};\n \\draw[->](theta_t) to node {} (A);\n\t\\draw[->](A) to node {} (B);\n\t\\draw[->](B) to node {} (Y);\n\t\\draw[->](X) to [out=45,in=135] node {} (Y);\n \\draw[->](Xp) to [out=-45,in=-135] node {} (Yp);\n \\draw[->](Xp) -- (theta_t_p) node[midway, near end] {};\n \\draw[->](theta_t_p) to node {} (A2);\n \\draw[->](A2) to node {} (B2);\n \\draw[->](B2) to node {} (Yp);\n \\draw[->](A) to node {} (theta_t_p);\n \\draw[->](B) to node {} (theta_t_p);\n \\draw[->](Y) to node {} (theta_t_p);\n\\end{tikzpicture}\n\n\\end{document}" ]
[ 11 ]
monkey_arc_nostrils
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ monkey/.pic={ \begin{scope}[x=3cm/448,y=3cm/448] \useasboundingbox (-256, -256) (256, 256); \reflect[ on left ={ color alias/.list={skin as Brown700, ears as Pink100}}, on right={ color alias/.list={skin as Brown900, ears as Pink200}, half clip } ]{ \fill [skin] (140, 80) circle [radius=56]; \fill [ears] (140, 80) circle [radius=32]; \fill [skin] ( 0, 72) ellipse [x radius=140, y radius=112]; \fill [skin] ( 0,-64) ellipse [x radius=172, y radius=112]; } \reflect[ on left ={color alias/.list={face as Pink100}}, on right={color alias/.list={face as Pink200}, half clip} ]{ \fill [face] (0,-64) ellipse [x radius=140, y radius=88]; \fill [face] (40,64) ellipse [radius=64]; } \reflect{ \fill [BlueGrey900] (40, 64) circle [radius=24]; \fill [Pink300] (24,-16) circle [radius=16]; } \fill [Pink300] (-96,-72) arc (180:360:96 and 32) arc (360:180:96 and 56); \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {monkey}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ monkey/.pic={% \begin{scope}[x=3cm/448,y=3cm/448] \useasboundingbox (-256, -256) (256, 256); \reflect[ on left ={ color alias/.list={skin as Brown700, ears as Pink100}}, on right={ color alias/.list={skin as Brown900, ears as Pink200}, half clip } ]{ \fill [skin] (140, 80) circle [radius=56]; \fill [ears] (140, 80) circle [radius=32]; \fill [skin] ( 0, 72) ellipse [x radius=140, y radius=112]; \fill [skin] ( 0,-64) ellipse [x radius=172, y radius=112]; } \reflect[ on left ={color alias/.list={face as Pink100}}, on right={color alias/.list={face as Pink200}, half clip} ]{ \fill [face] (0,-64) ellipse [x radius=140, y radius=88]; \fill [face] (40,64) ellipse [radius=64]; } \reflect{ \fill [BlueGrey900] (40, 64) circle [radius=24]; \fill [Pink300] (24,-16) circle [radius=16]; } \fill [Pink300] (-96,-72) arc (180:360:96 and 32) arc (360:180:96 and 56); \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {monkey}; \end{tikzpicture} \end{document}
Replace the nostrils of the monkey with arcs, with the pointy sides facing downward
A monkey with nostrils in the shapes of arcs
hard
add
animal
[ "@@ -43 +43,2 @@\n\n-\\fill [Pink300] (24,-16) circle [radius=16];\n+\\fill [BlueGrey900, rotate=-60]\n+(30,40) arc (90:270:27 and 25) arc (270:90:20 and 25);" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nmonkey/.pic={\n\\begin{scope}[x=3cm/448,y=3cm/448]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[\n on left ={ color alias/.list={skin as Brown700, ears as Pink100}},\n on right={ color alias/.list={skin as Brown900, ears as Pink200}, half clip }\n]{\n \\fill [skin] (140, 80) circle [radius=56];\n \\fill [ears] (140, 80) circle [radius=32];\n \\fill [skin] ( 0, 72) ellipse [x radius=140, y radius=112];\n \\fill [skin] ( 0,-64) ellipse [x radius=172, y radius=112];\n}\n\\reflect[\n on left ={color alias/.list={face as Pink100}},\n on right={color alias/.list={face as Pink200}, half clip}\n ]{\n \\fill [face] (0,-64) ellipse [x radius=140, y radius=88];\n \\fill [face] (40,64) ellipse [radius=64];\n}\n\\reflect{\n \\fill [BlueGrey900] (40, 64) circle [radius=24];\n\\fill [BlueGrey900, rotate=§rangei(-60,10)]\n (§rangei(30,10),§rangei(40,10)) arc (§rangei(90,10):§rangei(270,10):§rangei(27,2) and §rangei(25,2)) arc (§rangei(270,10):§rangei(90,10):§rangei(20,2) and §rangei(25,2));\n}\n\\fill [Pink300]\n (-96,-72) arc (180:360:96 and 32) arc (360:180:96 and 56);\n\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {monkey};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nmonkey/.pic={\n\\begin{scope}[x=3cm/448,y=3cm/448]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[\n on left ={ color alias/.list={skin as Brown700, ears as Pink100}},\n on right={ color alias/.list={skin as Brown900, ears as Pink200}, half clip }\n]{\n \\fill [skin] (140, 80) circle [radius=56];\n \\fill [ears] (140, 80) circle [radius=32];\n \\fill [skin] ( 0, 72) ellipse [x radius=140, y radius=112];\n \\fill [skin] ( 0,-64) ellipse [x radius=172, y radius=112];\n}\n\\reflect[\n on left ={color alias/.list={face as Pink100}},\n on right={color alias/.list={face as Pink200}, half clip}\n ]{\n \\fill [face] (0,-64) ellipse [x radius=140, y radius=88];\n \\fill [face] (40,64) ellipse [radius=64];\n}\n\\reflect{\n \\fill [BlueGrey900] (40, 64) circle [radius=24];\n\\fill [BlueGrey900, rotate=-60]\n (30,40) arc (90:270:27 and 25) arc (270:90:20 and 25);\n}\n\\fill [Pink300]\n (-96,-72) arc (180:360:96 and 32) arc (360:180:96 and 56);\n\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {monkey};\n\\end{tikzpicture}\n\\end{document}" ]
[ 5 ]
monkey_bigger_ears
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ monkey/.pic={ \begin{scope}[x=3cm/448,y=3cm/448] \useasboundingbox (-256, -256) (256, 256); \reflect[ on left ={ color alias/.list={skin as Brown700, ears as Pink100}}, on right={ color alias/.list={skin as Brown900, ears as Pink200}, half clip } ]{ \fill [skin] (140, 80) circle [radius=56]; \fill [ears] (140, 80) circle [radius=32]; \fill [skin] ( 0, 72) ellipse [x radius=140, y radius=112]; \fill [skin] ( 0,-64) ellipse [x radius=172, y radius=112]; } \reflect[ on left ={color alias/.list={face as Pink100}}, on right={color alias/.list={face as Pink200}, half clip} ]{ \fill [face] (0,-64) ellipse [x radius=140, y radius=88]; \fill [face] (40,64) ellipse [radius=64]; } \reflect{ \fill [BlueGrey900] (40, 64) circle [radius=24]; \fill [Pink300] (24,-16) circle [radius=16]; } \fill [Pink300] (-96,-72) arc (180:360:96 and 32) arc (360:180:96 and 56); \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {monkey}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ monkey/.pic={% \begin{scope}[x=3cm/448,y=3cm/448] \useasboundingbox (-256, -256) (256, 256); \reflect[ on left ={ color alias/.list={skin as Brown700, ears as Pink100}}, on right={ color alias/.list={skin as Brown900, ears as Pink200}, half clip } ]{ \fill [skin] (140, 80) circle [radius=56]; \fill [ears] (140, 80) circle [radius=32]; \fill [skin] ( 0, 72) ellipse [x radius=140, y radius=112]; \fill [skin] ( 0,-64) ellipse [x radius=172, y radius=112]; } \reflect[ on left ={color alias/.list={face as Pink100}}, on right={color alias/.list={face as Pink200}, half clip} ]{ \fill [face] (0,-64) ellipse [x radius=140, y radius=88]; \fill [face] (40,64) ellipse [radius=64]; } \reflect{ \fill [BlueGrey900] (40, 64) circle [radius=24]; \fill [Pink300] (24,-16) circle [radius=16]; } \fill [Pink300] (-96,-72) arc (180:360:96 and 32) arc (360:180:96 and 56); \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {monkey}; \end{tikzpicture} \end{document}
Increase the size of the monkey's ears by a lot
A monkey with big ears
easy
update
animal
[ "@@ -29,2 +29,2 @@\n\n-\\fill [skin] (140, 80) circle [radius=56];\n-\\fill [ears] (140, 80) circle [radius=32];\n+\\fill [skin] (150, 90) circle [radius=75];\n+\\fill [ears] (150, 90) circle [radius=50];" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nmonkey/.pic={\n\\begin{scope}[x=3cm/448,y=3cm/448]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[\n on left ={ color alias/.list={skin as Brown700, ears as Pink100}},\n on right={ color alias/.list={skin as Brown900, ears as Pink200}, half clip }\n]{\n \\fill [skin] (150, 90) circle [radius=§rangei(75,10)];\n \\fill [ears] (150, 90) circle [radius=§rangei(50,10)];\n \\fill [skin] ( 0, 72) ellipse [x radius=140, y radius=112];\n \\fill [skin] ( 0,-64) ellipse [x radius=172, y radius=112];\n}\n\\reflect[\n on left ={color alias/.list={face as Pink100}},\n on right={color alias/.list={face as Pink200}, half clip}\n ]{\n \\fill [face] (0,-64) ellipse [x radius=140, y radius=88];\n \\fill [face] (40,64) ellipse [radius=64];\n}\n\\reflect{\n \\fill [BlueGrey900] (40, 64) circle [radius=24];\n \\fill [Pink300] (24,-16) circle [radius=16];\n}\n\\fill [Pink300]\n (-96,-72) arc (180:360:96 and 32) arc (360:180:96 and 56);\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {monkey};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nmonkey/.pic={\n\\begin{scope}[x=3cm/448,y=3cm/448]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[\n on left ={ color alias/.list={skin as Brown700, ears as Pink100}},\n on right={ color alias/.list={skin as Brown900, ears as Pink200}, half clip }\n]{\n \\fill [skin] (150, 90) circle [radius=75];\n \\fill [ears] (150, 90) circle [radius=50];\n \\fill [skin] ( 0, 72) ellipse [x radius=140, y radius=112];\n \\fill [skin] ( 0,-64) ellipse [x radius=172, y radius=112];\n}\n\\reflect[\n on left ={color alias/.list={face as Pink100}},\n on right={color alias/.list={face as Pink200}, half clip}\n ]{\n \\fill [face] (0,-64) ellipse [x radius=140, y radius=88];\n \\fill [face] (40,64) ellipse [radius=64];\n}\n\\reflect{\n \\fill [BlueGrey900] (40, 64) circle [radius=24];\n \\fill [Pink300] (24,-16) circle [radius=16];\n}\n\\fill [Pink300]\n (-96,-72) arc (180:360:96 and 32) arc (360:180:96 and 56);\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {monkey};\n\\end{tikzpicture}\n\\end{document}" ]
[ 5, 1 ]
monkey_sad
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ monkey/.pic={ \begin{scope}[x=3cm/448,y=3cm/448] \useasboundingbox (-256, -256) (256, 256); \reflect[ on left ={ color alias/.list={skin as Brown700, ears as Pink100}}, on right={ color alias/.list={skin as Brown900, ears as Pink200}, half clip } ]{ \fill [skin] (140, 80) circle [radius=56]; \fill [ears] (140, 80) circle [radius=32]; \fill [skin] ( 0, 72) ellipse [x radius=140, y radius=112]; \fill [skin] ( 0,-64) ellipse [x radius=172, y radius=112]; } \reflect[ on left ={color alias/.list={face as Pink100}}, on right={color alias/.list={face as Pink200}, half clip} ]{ \fill [face] (0,-64) ellipse [x radius=140, y radius=88]; \fill [face] (40,64) ellipse [radius=64]; } \reflect{ \fill [BlueGrey900] (40, 64) circle [radius=24]; \fill [Pink300] (24,-16) circle [radius=16]; } \fill [Pink300] (-96,-72) arc (180:360:96 and 32) arc (360:180:96 and 56); \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {monkey}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ monkey/.pic={% \begin{scope}[x=3cm/448,y=3cm/448] \useasboundingbox (-256, -256) (256, 256); \reflect[ on left ={ color alias/.list={skin as Brown700, ears as Pink100}}, on right={ color alias/.list={skin as Brown900, ears as Pink200}, half clip } ]{ \fill [skin] (140, 80) circle [radius=56]; \fill [ears] (140, 80) circle [radius=32]; \fill [skin] ( 0, 72) ellipse [x radius=140, y radius=112]; \fill [skin] ( 0,-64) ellipse [x radius=172, y radius=112]; } \reflect[ on left ={color alias/.list={face as Pink100}}, on right={color alias/.list={face as Pink200}, half clip} ]{ \fill [face] (0,-64) ellipse [x radius=140, y radius=88]; \fill [face] (40,64) ellipse [radius=64]; } \reflect{ \fill [BlueGrey900] (40, 64) circle [radius=24]; \fill [Pink300] (24,-16) circle [radius=16]; } \fill [Pink300] (-96,-72) arc (180:360:96 and 32) arc (360:180:96 and 56); \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {monkey}; \end{tikzpicture} \end{document}
Turn the shape of the mouth upside down
A sad monkey, with its a downturned mouth
easy
update
animal
[ "@@ -44,0 +45 @@\n\n+\\begin{scope}[yscale=-1]\n@@ -46 +47,2 @@\n\n-(-96,-72) arc (180:360:96 and 32) arc (360:180:96 and 56);\n+(-96,110) arc (180:360:96 and 32) arc (360:180:96 and 56);\n+\\end{scope}", "@@ -46 +46 @@\n\n-(-96,-72) arc (180:360:96 and 32) arc (360:180:96 and 56);\n+(-96,-110) arc (180:0:96 and 32) arc (0:180:96 and 56);" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nmonkey/.pic={\n\\begin{scope}[x=3cm/448,y=3cm/448]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[\n on left ={ color alias/.list={skin as Brown700, ears as Pink100}},\n on right={ color alias/.list={skin as Brown900, ears as Pink200}, half clip }\n]{\n \\fill [skin] (140, 80) circle [radius=56];\n \\fill [ears] (140, 80) circle [radius=32];\n \\fill [skin] ( 0, 72) ellipse [x radius=140, y radius=112];\n \\fill [skin] ( 0,-64) ellipse [x radius=172, y radius=112];\n}\n\\reflect[\n on left ={color alias/.list={face as Pink100}},\n on right={color alias/.list={face as Pink200}, half clip}\n ]{\n \\fill [face] (0,-64) ellipse [x radius=140, y radius=88];\n \\fill [face] (40,64) ellipse [radius=64];\n}\n\\reflect{\n \\fill [BlueGrey900] (40, 64) circle [radius=24];\n \\fill [Pink300] (24,-16) circle [radius=16];\n}\n\\begin{scope}[yscale=-1]\n \\fill [Pink300]\n (-96,110) arc (180:360:96 and 32) arc (360:180:96 and 56);\n\\end{scope}\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {monkey};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nmonkey/.pic={\n\\begin{scope}[x=3cm/448,y=3cm/448]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[\n on left ={ color alias/.list={skin as Brown700, ears as Pink100}},\n on right={ color alias/.list={skin as Brown900, ears as Pink200}, half clip }\n]{\n \\fill [skin] (140, 80) circle [radius=56];\n \\fill [ears] (140, 80) circle [radius=32];\n \\fill [skin] ( 0, 72) ellipse [x radius=140, y radius=112];\n \\fill [skin] ( 0,-64) ellipse [x radius=172, y radius=112];\n}\n\\reflect[\n on left ={color alias/.list={face as Pink100}},\n on right={color alias/.list={face as Pink200}, half clip}\n ]{\n \\fill [face] (0,-64) ellipse [x radius=140, y radius=88];\n \\fill [face] (40,64) ellipse [radius=64];\n}\n\\reflect{\n \\fill [BlueGrey900] (40, 64) circle [radius=24];\n \\fill [Pink300] (24,-16) circle [radius=16];\n}\n\\fill [Pink300]\n (-96,§rangei(-110,10)) arc (180:0:96 and 32) arc (0:180:96 and 56);\n\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {monkey};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nmonkey/.pic={\n\\begin{scope}[x=3cm/448,y=3cm/448]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[\n on left ={ color alias/.list={skin as Brown700, ears as Pink100}},\n on right={ color alias/.list={skin as Brown900, ears as Pink200}, half clip }\n]{\n \\fill [skin] (140, 80) circle [radius=56];\n \\fill [ears] (140, 80) circle [radius=32];\n \\fill [skin] ( 0, 72) ellipse [x radius=140, y radius=112];\n \\fill [skin] ( 0,-64) ellipse [x radius=172, y radius=112];\n}\n\\reflect[\n on left ={color alias/.list={face as Pink100}},\n on right={color alias/.list={face as Pink200}, half clip}\n ]{\n \\fill [face] (0,-64) ellipse [x radius=140, y radius=88];\n \\fill [face] (40,64) ellipse [radius=64];\n}\n\\reflect{\n \\fill [BlueGrey900] (40, 64) circle [radius=24];\n \\fill [Pink300] (24,-16) circle [radius=16];\n}\n\\begin{scope}[yscale=-1]\n \\fill [Pink300]\n (-96,110) arc (180:360:96 and 32) arc (360:180:96 and 56);\n\\end{scope}\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {monkey};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nmonkey/.pic={\n\\begin{scope}[x=3cm/448,y=3cm/448]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[\n on left ={ color alias/.list={skin as Brown700, ears as Pink100}},\n on right={ color alias/.list={skin as Brown900, ears as Pink200}, half clip }\n]{\n \\fill [skin] (140, 80) circle [radius=56];\n \\fill [ears] (140, 80) circle [radius=32];\n \\fill [skin] ( 0, 72) ellipse [x radius=140, y radius=112];\n \\fill [skin] ( 0,-64) ellipse [x radius=172, y radius=112];\n}\n\\reflect[\n on left ={color alias/.list={face as Pink100}},\n on right={color alias/.list={face as Pink200}, half clip}\n ]{\n \\fill [face] (0,-64) ellipse [x radius=140, y radius=88];\n \\fill [face] (40,64) ellipse [radius=64];\n}\n\\reflect{\n \\fill [BlueGrey900] (40, 64) circle [radius=24];\n \\fill [Pink300] (24,-16) circle [radius=16];\n}\n\\fill [Pink300]\n (-96,-110) arc (180:0:96 and 32) arc (0:180:96 and 56);\n\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {monkey};\n\\end{tikzpicture}\n\\end{document}" ]
[ 3 ]
monkey_thiner
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ monkey/.pic={ \begin{scope}[x=3cm/448,y=3cm/448] \useasboundingbox (-256, -256) (256, 256); \reflect[ on left ={ color alias/.list={skin as Brown700, ears as Pink100}}, on right={ color alias/.list={skin as Brown900, ears as Pink200}, half clip } ]{ \fill [skin] (140, 80) circle [radius=56]; \fill [ears] (140, 80) circle [radius=32]; \fill [skin] ( 0, 72) ellipse [x radius=140, y radius=112]; \fill [skin] ( 0,-64) ellipse [x radius=172, y radius=112]; } \reflect[ on left ={color alias/.list={face as Pink100}}, on right={color alias/.list={face as Pink200}, half clip} ]{ \fill [face] (0,-64) ellipse [x radius=140, y radius=88]; \fill [face] (40,64) ellipse [radius=64]; } \reflect{ \fill [BlueGrey900] (40, 64) circle [radius=24]; \fill [Pink300] (24,-16) circle [radius=16]; } \fill [Pink300] (-96,-72) arc (180:360:96 and 32) arc (360:180:96 and 56); \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {monkey}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ monkey/.pic={% \begin{scope}[x=3cm/448,y=3cm/448] \useasboundingbox (-256, -256) (256, 256); \reflect[ on left ={ color alias/.list={skin as Brown700, ears as Pink100}}, on right={ color alias/.list={skin as Brown900, ears as Pink200}, half clip } ]{ \fill [skin] (140, 80) circle [radius=56]; \fill [ears] (140, 80) circle [radius=32]; \fill [skin] ( 0, 72) ellipse [x radius=140, y radius=112]; \fill [skin] ( 0,-64) ellipse [x radius=172, y radius=112]; } \reflect[ on left ={color alias/.list={face as Pink100}}, on right={color alias/.list={face as Pink200}, half clip} ]{ \fill [face] (0,-64) ellipse [x radius=140, y radius=88]; \fill [face] (40,64) ellipse [radius=64]; } \reflect{ \fill [BlueGrey900] (40, 64) circle [radius=24]; \fill [Pink300] (24,-16) circle [radius=16]; } \fill [Pink300] (-96,-72) arc (180:360:96 and 32) arc (360:180:96 and 56); \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {monkey}; \end{tikzpicture} \end{document}
Make the face of the monkey thinner
A monkey with a thin face
medium
update
animal
[ "@@ -31,2 +31,2 @@\n\n-\\fill [skin] ( 0, 72) ellipse [x radius=140, y radius=112];\n-\\fill [skin] ( 0,-64) ellipse [x radius=172, y radius=112];\n+\\fill [skin] ( 0, 72) ellipse [x radius=120, y radius=112];\n+\\fill [skin] ( 0,-64) ellipse [x radius=150, y radius=112];\n@@ -38 +38 @@\n\n-\\fill [face] (0,-64) ellipse [x radius=140, y radius=88];\n+\\fill [face] (0,-64) ellipse [x radius=110, y radius=88];" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nmonkey/.pic={\n\\begin{scope}[x=3cm/448,y=3cm/448]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[\n on left ={ color alias/.list={skin as Brown700, ears as Pink100}},\n on right={ color alias/.list={skin as Brown900, ears as Pink200}, half clip }\n]{\n \\fill [skin] (140, 80) circle [radius=56];\n \\fill [ears] (140, 80) circle [radius=32];\n \\fill [skin] ( 0, 72) ellipse [x radius=§rangei(120,15), y radius=112];\n \\fill [skin] ( 0,-64) ellipse [x radius=§rangei(150,15), y radius=112];\n}\n\\reflect[\n on left ={color alias/.list={face as Pink100}},\n on right={color alias/.list={face as Pink200}, half clip}\n ]{\n \\fill [face] (0,-64) ellipse [x radius=§rangei(110,15), y radius=88];\n \\fill [face] (40,64) ellipse [radius=64];\n}\n\\reflect{\n \\fill [BlueGrey900] (40, 64) circle [radius=24];\n \\fill [Pink300] (24,-16) circle [radius=16];\n}\n\\fill [Pink300]\n (-96,-72) arc (180:360:96 and 32) arc (360:180:96 and 56);\n\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {monkey};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nmonkey/.pic={\n\\begin{scope}[x=3cm/448,y=3cm/448]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[\n on left ={ color alias/.list={skin as Brown700, ears as Pink100}},\n on right={ color alias/.list={skin as Brown900, ears as Pink200}, half clip }\n]{\n \\fill [skin] (140, 80) circle [radius=56];\n \\fill [ears] (140, 80) circle [radius=32];\n \\fill [skin] ( 0, 72) ellipse [x radius=120, y radius=112];\n \\fill [skin] ( 0,-64) ellipse [x radius=150, y radius=112];\n}\n\\reflect[\n on left ={color alias/.list={face as Pink100}},\n on right={color alias/.list={face as Pink200}, half clip}\n ]{\n \\fill [face] (0,-64) ellipse [x radius=110, y radius=88];\n \\fill [face] (40,64) ellipse [radius=64];\n}\n\\reflect{\n \\fill [BlueGrey900] (40, 64) circle [radius=24];\n \\fill [Pink300] (24,-16) circle [radius=16];\n}\n\\fill [Pink300]\n (-96,-72) arc (180:360:96 and 32) arc (360:180:96 and 56);\n\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {monkey};\n\\end{tikzpicture}\n\\end{document}" ]
[ 15 ]
monkey_tongue
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ monkey/.pic={ \begin{scope}[x=3cm/448,y=3cm/448] \useasboundingbox (-256, -256) (256, 256); \reflect[ on left ={ color alias/.list={skin as Brown700, ears as Pink100}}, on right={ color alias/.list={skin as Brown900, ears as Pink200}, half clip } ]{ \fill [skin] (140, 80) circle [radius=56]; \fill [ears] (140, 80) circle [radius=32]; \fill [skin] ( 0, 72) ellipse [x radius=140, y radius=112]; \fill [skin] ( 0,-64) ellipse [x radius=172, y radius=112]; } \reflect[ on left ={color alias/.list={face as Pink100}}, on right={color alias/.list={face as Pink200}, half clip} ]{ \fill [face] (0,-64) ellipse [x radius=140, y radius=88]; \fill [face] (40,64) ellipse [radius=64]; } \reflect{ \fill [BlueGrey900] (40, 64) circle [radius=24]; \fill [Pink300] (24,-16) circle [radius=16]; } \fill [Pink300] (-96,-72) arc (180:360:96 and 32) arc (360:180:96 and 56); \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {monkey}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ monkey/.pic={% \begin{scope}[x=3cm/448,y=3cm/448] \useasboundingbox (-256, -256) (256, 256); \reflect[ on left ={ color alias/.list={skin as Brown700, ears as Pink100}}, on right={ color alias/.list={skin as Brown900, ears as Pink200}, half clip } ]{ \fill [skin] (140, 80) circle [radius=56]; \fill [ears] (140, 80) circle [radius=32]; \fill [skin] ( 0, 72) ellipse [x radius=140, y radius=112]; \fill [skin] ( 0,-64) ellipse [x radius=172, y radius=112]; } \reflect[ on left ={color alias/.list={face as Pink100}}, on right={color alias/.list={face as Pink200}, half clip} ]{ \fill [face] (0,-64) ellipse [x radius=140, y radius=88]; \fill [face] (40,64) ellipse [radius=64]; } \reflect{ \fill [BlueGrey900] (40, 64) circle [radius=24]; \fill [Pink300] (24,-16) circle [radius=16]; } \fill [Pink300] (-96,-72) arc (180:360:96 and 32) arc (360:180:96 and 56); \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {monkey}; \end{tikzpicture} \end{document}
Make the monkey open its mouth to stick out his tongue, on the right side of his mouth
A monkey with its tongue sticking out of the right side of his mouth
medium
add
animal
[ "@@ -46 +46,2 @@\n\n-(-96,-72) arc (180:360:96 and 32) arc (360:180:96 and 56);\n+(-96,-72) arc (180:360:96 and 10) arc (360:180:96 and 56);\n+\\fill [Pink300, rotate=20](0,-135) ellipse [x radius=28, y radius=40];" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nmonkey/.pic={\n\\begin{scope}[x=3cm/448,y=3cm/448]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[\n on left ={ color alias/.list={skin as Brown700, ears as Pink100}},\n on right={ color alias/.list={skin as Brown900, ears as Pink200}, half clip }\n]{\n \\fill [skin] (140, 80) circle [radius=56];\n \\fill [ears] (140, 80) circle [radius=32];\n \\fill [skin] ( 0, 72) ellipse [x radius=140, y radius=112];\n \\fill [skin] ( 0,-64) ellipse [x radius=172, y radius=112];\n}\n\\reflect[\n on left ={color alias/.list={face as Pink100}},\n on right={color alias/.list={face as Pink200}, half clip}\n ]{\n \\fill [face] (0,-64) ellipse [x radius=140, y radius=88];\n \\fill [face] (40,64) ellipse [radius=64];\n}\n\\reflect{\n \\fill [BlueGrey900] (40, 64) circle [radius=24];\n \\fill [Pink300] (24,-16) circle [radius=16];\n}\n\\fill [Pink300]\n (-96,-72) arc (180:360:96 and §rangei(10,10)) arc (360:180:96 and 56);\n\n\\fill [Pink300, rotate=§rangei(20,5)](0,§rangei(-135,15)) ellipse [x radius=§rangei(28,5), y radius=§rangei(40,5)];\n\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {monkey};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nmonkey/.pic={\n\\begin{scope}[x=3cm/448,y=3cm/448]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[\n on left ={ color alias/.list={skin as Brown700, ears as Pink100}},\n on right={ color alias/.list={skin as Brown900, ears as Pink200}, half clip }\n]{\n \\fill [skin] (140, 80) circle [radius=56];\n \\fill [ears] (140, 80) circle [radius=32];\n \\fill [skin] ( 0, 72) ellipse [x radius=140, y radius=112];\n \\fill [skin] ( 0,-64) ellipse [x radius=172, y radius=112];\n}\n\\reflect[\n on left ={color alias/.list={face as Pink100}},\n on right={color alias/.list={face as Pink200}, half clip}\n ]{\n \\fill [face] (0,-64) ellipse [x radius=140, y radius=88];\n \\fill [face] (40,64) ellipse [radius=64];\n}\n\\reflect{\n \\fill [BlueGrey900] (40, 64) circle [radius=24];\n \\fill [Pink300] (24,-16) circle [radius=16];\n}\n\\fill [Pink300]\n (-96,-72) arc (180:360:96 and 10) arc (360:180:96 and 56);\n\n\\fill [Pink300, rotate=20](0,-135) ellipse [x radius=28, y radius=40];\n\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {monkey};\n\\end{tikzpicture}\n\\end{document}" ]
[ 34, 34 ]
net_colored_hidden
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{matrix,chains,positioning,decorations.pathreplacing,arrows,calc} \tikzset{ block/.style={ draw, rectangle, text width=3em, text centered, minimum height=8mm, node distance=2.3em }, line/.style={draw} } \begin{document} \begin{tikzpicture}[ plain/.style={ draw=none, fill=none, }, net/.style={ matrix of nodes, nodes={ draw, circle, inner sep=10pt }, nodes in empty cells, column sep=2cm, row sep=-9pt }, >=latex ] \matrix[net] (mat) { |[plain]| \parbox{1cm}{\centering Input\\layer} & |[plain]| \parbox{1cm}{\centering Hidden\\layer} & |[plain]| \parbox{1cm}{\centering Output\\layer} \\ & |[plain]| \\ |[plain]| & \\ & |[plain]| \\ |[plain]| & |[plain]| \\ & & \\ |[plain]| & |[plain]| \\ & |[plain]| \\ |[plain]| & \\ & |[plain]| \\ }; \foreach \ai [count=\mi ]in {2,4,...,10} \draw[<-] (mat-\ai-1) -- node[above] {Input \mi} +(-2cm,0); \foreach \ai in {2,4,...,10} {\foreach \aii in {3,6,9} \draw[->] (mat-\ai-1) -- (mat-\aii-2); } \foreach \ai in {3,6,9} \draw[->] (mat-\ai-2) -- (mat-6-3); \path [line] node{error} -- (mat-1-1); \draw[->] (mat-6-3) -- ++(0pt,3cm) -| node[pos=0.15,above] {Error back propagation} ( $ (mat-2-1)!0.5!(mat-2-2) $ ); \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{matrix,chains,positioning,decorations.pathreplacing,arrows,calc} \tikzset{ block/.style={ draw, rectangle, text width=3em, text centered, minimum height=8mm, node distance=2.3em }, line/.style={draw} } \begin{document} \begin{tikzpicture}[ plain/.style={ draw=none, fill=none, }, net/.style={ matrix of nodes, nodes={ draw, circle, inner sep=10pt }, nodes in empty cells, column sep=2cm, row sep=-9pt }, >=latex ] \matrix[net] (mat) { |[plain]| \parbox{1cm}{\centering Input\\layer} & |[plain]| \parbox{1cm}{\centering Hidden\\layer} & |[plain]| \parbox{1cm}{\centering Output\\layer} \\ & |[plain]| \\ |[plain]| & \\ & |[plain]| \\ |[plain]| & |[plain]| \\ & & \\ |[plain]| & |[plain]| \\ & |[plain]| \\ |[plain]| & \\ & |[plain]| \\ }; \foreach \ai [count=\mi ]in {2,4,...,10} \draw[<-] (mat-\ai-1) -- node[above] {Input \mi} +(-2cm,0); \foreach \ai in {2,4,...,10} {\foreach \aii in {3,6,9} \draw[->] (mat-\ai-1) -- (mat-\aii-2); } \foreach \ai in {3,6,9} \draw[->] (mat-\ai-2) -- (mat-6-3); %\draw[->] (mat-6-3) -- node[above] {Ouput} +(2cm,0); \path [line] node{error} -- (mat-1-1); \draw[->] (mat-6-3) -- ++(0pt,3cm) -| node[pos=0.15,above] {Error back propagation} ( $ (mat-2-1)!0.5!(mat-2-2) $ ); \end{tikzpicture} \end{document}
Color the hidden layer nodes in red
A neural network, with redd hiden layer nodes
hard
update
scientific
[ "@@ -20,0 +21,3 @@\n\n+hidden/.style={\n+fill=red,\n+},\n@@ -38 +41 @@\n\n-|[plain]| & \\\\\n+|[plain]| & |[hidden]| \\\\\n@@ -41 +44 @@\n\n-& & \\\\\n+& |[hidden]| & \\\\\n@@ -44 +47 @@\n\n-|[plain]| & \\\\\n+|[plain]| & |[hidden]| \\\\", "@@ -30,0 +31,5 @@\n\n+},hidden/.style={\n+draw,\n+circle,\n+fill=red,\n+inner sep=10pt\n@@ -38 +43 @@\n\n-|[plain]| & \\\\\n+|[plain]| & |[hidden]| \\\\\n@@ -41 +46 @@\n\n-& & \\\\\n+& |[hidden]| & \\\\\n@@ -44 +49 @@\n\n-|[plain]| & \\\\\n+|[plain]| & |[hidden]| \\\\" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{matrix,chains,positioning,decorations.pathreplacing,arrows,calc}\n\n\\tikzset{\nblock/.style={\n draw,\n rectangle, \n text width=3em, \n text centered, \n minimum height=8mm, \n node distance=2.3em\n }, \nline/.style={draw}\n}\n\n\\begin{document}\n \\begin{tikzpicture}[\n plain/.style={\n draw=none,\n fill=none,\n },\n §def(hidden)/.style={\n fill=red,\n },\n net/.style={\n matrix of nodes,\n nodes={\n draw,\n circle,\n inner sep=10pt\n },\n nodes in empty cells,\n column sep=2cm,\n row sep=-9pt\n },\n >=latex\n ]\n\\matrix[net] (mat)\n{ \n|[plain]| \\parbox{1cm}{\\centering Input\\\\layer} & |[plain]| \\parbox{1cm}{\\centering Hidden\\\\layer} & |[plain]| \\parbox{1cm}{\\centering Output\\\\layer} \\\\\n& |[plain]| \\\\\n|[plain]| & |[hidden]| \\\\\n& |[plain]| \\\\\n|[plain]| & |[plain]| \\\\\n& |[hidden]| & \\\\\n|[plain]| & |[plain]| \\\\\n& |[plain]| \\\\\n|[plain]| & |[hidden]| \\\\\n& |[plain]| \\\\\n};\n\\foreach \\ai [count=\\mi ]in {2,4,...,10}\n \\draw[<-] (mat-\\ai-1) -- node[above] {Input \\mi} +(-2cm,0);\n\\foreach \\ai in {2,4,...,10}\n{\\foreach \\aii in {3,6,9}\n \\draw[->] (mat-\\ai-1) -- (mat-\\aii-2);\n}\n\\foreach \\ai in {3,6,9}\n \\draw[->] (mat-\\ai-2) -- (mat-6-3);\n\\path [line] node{error} -- (mat-1-1);\n\\draw[->] (mat-6-3) -- ++(0pt,3cm) -| node[pos=0.15,above] {Error back propagation} ( $ (mat-2-1)!0.5!(mat-2-2) $ );\n\\end{tikzpicture}\n\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{matrix,chains,positioning,decorations.pathreplacing,arrows,calc}\n\n\\tikzset{\nblock/.style={\n draw,\n rectangle, \n text width=3em, \n text centered, \n minimum height=8mm, \n node distance=2.3em\n }, \nline/.style={draw}\n}\n\n\\begin{document}\n \\begin{tikzpicture}[\n plain/.style={\n draw=none,\n fill=none,\n },\n net/.style={\n matrix of nodes,\n nodes={\n draw,\n circle,\n inner sep=10pt\n },\n nodes in empty cells,\n column sep=2cm,\n row sep=-9pt\n },§def(hidden)/.style={\n draw,\n circle,\n fill=red,\n inner sep=10pt\n },\n >=latex\n ]\n\\matrix[net] (mat)\n{ \n|[plain]| \\parbox{1cm}{\\centering Input\\\\layer} & |[plain]| \\parbox{1cm}{\\centering Hidden\\\\layer} & |[plain]| \\parbox{1cm}{\\centering Output\\\\layer} \\\\\n& |[plain]| \\\\\n|[plain]| & |[hidden]| \\\\\n& |[plain]| \\\\\n|[plain]| & |[plain]| \\\\\n& |[hidden]| & \\\\\n|[plain]| & |[plain]| \\\\\n& |[plain]| \\\\\n|[plain]| & |[hidden]| \\\\\n& |[plain]| \\\\\n};\n\\foreach \\ai [count=\\mi ]in {2,4,...,10}\n \\draw[<-] (mat-\\ai-1) -- node[above] {Input \\mi} +(-2cm,0);\n\\foreach \\ai in {2,4,...,10}\n{\\foreach \\aii in {3,6,9}\n \\draw[->] (mat-\\ai-1) -- (mat-\\aii-2);\n}\n\\foreach \\ai in {3,6,9}\n \\draw[->] (mat-\\ai-2) -- (mat-6-3);\n\\path [line] node{error} -- (mat-1-1);\n\\draw[->] (mat-6-3) -- ++(0pt,3cm) -| node[pos=0.15,above] {Error back propagation} ( $ (mat-2-1)!0.5!(mat-2-2) $ );\n\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{matrix,chains,positioning,decorations.pathreplacing,arrows,calc}\n\n\\tikzset{\nblock/.style={\n draw,\n rectangle, \n text width=3em, \n text centered, \n minimum height=8mm, \n node distance=2.3em\n }, \nline/.style={draw}\n}\n\n\\begin{document}\n \\begin{tikzpicture}[\n plain/.style={\n draw=none,\n fill=none,\n },\n hidden/.style={\n fill=red,\n },\n net/.style={\n matrix of nodes,\n nodes={\n draw,\n circle,\n inner sep=10pt\n },\n nodes in empty cells,\n column sep=2cm,\n row sep=-9pt\n },\n >=latex\n ]\n\\matrix[net] (mat)\n{ \n|[plain]| \\parbox{1cm}{\\centering Input\\\\layer} & |[plain]| \\parbox{1cm}{\\centering Hidden\\\\layer} & |[plain]| \\parbox{1cm}{\\centering Output\\\\layer} \\\\\n& |[plain]| \\\\\n|[plain]| & |[hidden]| \\\\\n& |[plain]| \\\\\n|[plain]| & |[plain]| \\\\\n& |[hidden]| & \\\\\n|[plain]| & |[plain]| \\\\\n& |[plain]| \\\\\n|[plain]| & |[hidden]| \\\\\n& |[plain]| \\\\\n};\n\\foreach \\ai [count=\\mi ]in {2,4,...,10}\n \\draw[<-] (mat-\\ai-1) -- node[above] {Input \\mi} +(-2cm,0);\n\\foreach \\ai in {2,4,...,10}\n{\\foreach \\aii in {3,6,9}\n \\draw[->] (mat-\\ai-1) -- (mat-\\aii-2);\n}\n\\foreach \\ai in {3,6,9}\n \\draw[->] (mat-\\ai-2) -- (mat-6-3);\n\\path [line] node{error} -- (mat-1-1);\n\\draw[->] (mat-6-3) -- ++(0pt,3cm) -| node[pos=0.15,above] {Error back propagation} ( $ (mat-2-1)!0.5!(mat-2-2) $ );\n\\end{tikzpicture}\n\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{matrix,chains,positioning,decorations.pathreplacing,arrows,calc}\n\n\\tikzset{\nblock/.style={\n draw,\n rectangle, \n text width=3em, \n text centered, \n minimum height=8mm, \n node distance=2.3em\n }, \nline/.style={draw}\n}\n\n\\begin{document}\n \\begin{tikzpicture}[\n plain/.style={\n draw=none,\n fill=none,\n },\n net/.style={\n matrix of nodes,\n nodes={\n draw,\n circle,\n inner sep=10pt\n },\n nodes in empty cells,\n column sep=2cm,\n row sep=-9pt\n },hidden/.style={\n draw,\n circle,\n fill=red,\n inner sep=10pt\n },\n >=latex\n ]\n\\matrix[net] (mat)\n{ \n|[plain]| \\parbox{1cm}{\\centering Input\\\\layer} & |[plain]| \\parbox{1cm}{\\centering Hidden\\\\layer} & |[plain]| \\parbox{1cm}{\\centering Output\\\\layer} \\\\\n& |[plain]| \\\\\n|[plain]| & |[hidden]| \\\\\n& |[plain]| \\\\\n|[plain]| & |[plain]| \\\\\n& |[hidden]| & \\\\\n|[plain]| & |[plain]| \\\\\n& |[plain]| \\\\\n|[plain]| & |[hidden]| \\\\\n& |[plain]| \\\\\n};\n\\foreach \\ai [count=\\mi ]in {2,4,...,10}\n \\draw[<-] (mat-\\ai-1) -- node[above] {Input \\mi} +(-2cm,0);\n\\foreach \\ai in {2,4,...,10}\n{\\foreach \\aii in {3,6,9}\n \\draw[->] (mat-\\ai-1) -- (mat-\\aii-2);\n}\n\\foreach \\ai in {3,6,9}\n \\draw[->] (mat-\\ai-2) -- (mat-6-3);\n\\path [line] node{error} -- (mat-1-1);\n\\draw[->] (mat-6-3) -- ++(0pt,3cm) -| node[pos=0.15,above] {Error back propagation} ( $ (mat-2-1)!0.5!(mat-2-2) $ );\n\\end{tikzpicture}\n\n\\end{document}" ]
[ 14, 14 ]
net_removed_in_5
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{matrix,chains,positioning,decorations.pathreplacing,arrows,calc} \tikzset{ block/.style={ draw, rectangle, text width=3em, text centered, minimum height=8mm, node distance=2.3em }, line/.style={draw} } \begin{document} \begin{tikzpicture}[ plain/.style={ draw=none, fill=none, }, net/.style={ matrix of nodes, nodes={ draw, circle, inner sep=10pt }, nodes in empty cells, column sep=2cm, row sep=-9pt }, >=latex ] \matrix[net] (mat) { |[plain]| \parbox{1cm}{\centering Input\\layer} & |[plain]| \parbox{1cm}{\centering Hidden\\layer} & |[plain]| \parbox{1cm}{\centering Output\\layer} \\ & |[plain]| \\ |[plain]| & \\ & |[plain]| \\ |[plain]| & |[plain]| \\ & & \\ |[plain]| & |[plain]| \\ & |[plain]| \\ |[plain]| & \\ & |[plain]| \\ }; \foreach \ai [count=\mi ]in {2,4,...,10} \draw[<-] (mat-\ai-1) -- node[above] {Input \mi} +(-2cm,0); \foreach \ai in {2,4,...,10} {\foreach \aii in {3,6,9} \draw[->] (mat-\ai-1) -- (mat-\aii-2); } \foreach \ai in {3,6,9} \draw[->] (mat-\ai-2) -- (mat-6-3); \path [line] node{error} -- (mat-1-1); \draw[->] (mat-6-3) -- ++(0pt,3cm) -| node[pos=0.15,above] {Error back propagation} ( $ (mat-2-1)!0.5!(mat-2-2) $ ); \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{matrix,chains,positioning,decorations.pathreplacing,arrows,calc} \tikzset{ block/.style={ draw, rectangle, text width=3em, text centered, minimum height=8mm, node distance=2.3em }, line/.style={draw} } \begin{document} \begin{tikzpicture}[ plain/.style={ draw=none, fill=none, }, net/.style={ matrix of nodes, nodes={ draw, circle, inner sep=10pt }, nodes in empty cells, column sep=2cm, row sep=-9pt }, >=latex ] \matrix[net] (mat) { |[plain]| \parbox{1cm}{\centering Input\\layer} & |[plain]| \parbox{1cm}{\centering Hidden\\layer} & |[plain]| \parbox{1cm}{\centering Output\\layer} \\ & |[plain]| \\ |[plain]| & \\ & |[plain]| \\ |[plain]| & |[plain]| \\ & & \\ |[plain]| & |[plain]| \\ & |[plain]| \\ |[plain]| & \\ & |[plain]| \\ }; \foreach \ai [count=\mi ]in {2,4,...,10} \draw[<-] (mat-\ai-1) -- node[above] {Input \mi} +(-2cm,0); \foreach \ai in {2,4,...,10} {\foreach \aii in {3,6,9} \draw[->] (mat-\ai-1) -- (mat-\aii-2); } \foreach \ai in {3,6,9} \draw[->] (mat-\ai-2) -- (mat-6-3); %\draw[->] (mat-6-3) -- node[above] {Ouput} +(2cm,0); \path [line] node{error} -- (mat-1-1); \draw[->] (mat-6-3) -- ++(0pt,3cm) -| node[pos=0.15,above] {Error back propagation} ( $ (mat-2-1)!0.5!(mat-2-2) $ ); \end{tikzpicture} \end{document}
Remove the input node 5, and the corresponding links to the hidden layer.
A neural network, with 4 inputs.
medium
remove
scientific
[ "@@ -45 +44,0 @@\n\n-& |[plain]| \\\\\n@@ -47 +46 @@\n\n-\\foreach \\ai [count=\\mi ]in {2,4,...,10}\n+\\foreach \\ai [count=\\mi ]in {2,4,6,8}\n@@ -49 +48 @@\n\n-\\foreach \\ai in {2,4,...,10}\n+\\foreach \\ai in {2,4,6,8}", "@@ -45 +44,0 @@\n\n-& |[plain]| \\\\\n@@ -47 +46 @@\n\n-\\foreach \\ai [count=\\mi ]in {2,4,...,10}\n+\\foreach \\ai [count=\\mi ]in {2,4,...,8}\n@@ -49 +48 @@\n\n-\\foreach \\ai in {2,4,...,10}\n+\\foreach \\ai in {2,4,...,8}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{matrix,chains,positioning,decorations.pathreplacing,arrows,calc}\n\n\\tikzset{\nblock/.style={\n draw,\n rectangle, \n text width=3em, \n text centered, \n minimum height=8mm, \n node distance=2.3em\n }, \nline/.style={draw}\n}\n\n\\begin{document}\n \\begin{tikzpicture}[\n plain/.style={\n draw=none,\n fill=none,\n },\n net/.style={\n matrix of nodes,\n nodes={\n draw,\n circle,\n inner sep=10pt\n },\n nodes in empty cells,\n column sep=2cm,\n row sep=-9pt\n }, \n >=latex\n ]\n\\matrix[net] (mat)\n{ \n|[plain]| \\parbox{1cm}{\\centering Input\\\\layer} & |[plain]| \\parbox{1cm}{\\centering Hidden\\\\layer} & |[plain]| \\parbox{1cm}{\\centering Output\\\\layer} \\\\\n& |[plain]| \\\\\n|[plain]| & \\\\\n& |[plain]| \\\\\n|[plain]| & |[plain]| \\\\\n& & \\\\\n|[plain]| & |[plain]| \\\\\n& |[plain]| \\\\\n|[plain]| & \\\\\n};\n\\foreach \\ai [count=\\mi ]in {2,4,6,8}\n \\draw[<-] (mat-\\ai-1) -- node[above] {Input \\mi} +(-2cm,0);\n\\foreach \\ai in {2,4,6,8}\n{\\foreach \\aii in {3,6,9}\n \\draw[->] (mat-\\ai-1) -- (mat-\\aii-2);\n}\n\\foreach \\ai in {3,6,9}\n \\draw[->] (mat-\\ai-2) -- (mat-6-3);\n\\path [line] node{error} -- (mat-1-1);\n\\draw[->] (mat-6-3) -- ++(0pt,3cm) -| node[pos=0.15,above] {Error back propagation} ( $ (mat-2-1)!0.5!(mat-2-2) $ );\n\\end{tikzpicture}\n\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{matrix,chains,positioning,decorations.pathreplacing,arrows,calc}\n\n\\tikzset{\nblock/.style={\n draw,\n rectangle, \n text width=3em, \n text centered, \n minimum height=8mm, \n node distance=2.3em\n }, \nline/.style={draw}\n}\n\n\\begin{document}\n \\begin{tikzpicture}[\n plain/.style={\n draw=none,\n fill=none,\n },\n net/.style={\n matrix of nodes,\n nodes={\n draw,\n circle,\n inner sep=10pt\n },\n nodes in empty cells,\n column sep=2cm,\n row sep=-9pt\n }, \n >=latex\n ]\n\\matrix[net] (mat)\n{ \n|[plain]| \\parbox{1cm}{\\centering Input\\\\layer} & |[plain]| \\parbox{1cm}{\\centering Hidden\\\\layer} & |[plain]| \\parbox{1cm}{\\centering Output\\\\layer} \\\\\n& |[plain]| \\\\\n|[plain]| & \\\\\n& |[plain]| \\\\\n|[plain]| & |[plain]| \\\\\n& & \\\\\n|[plain]| & |[plain]| \\\\\n& |[plain]| \\\\\n|[plain]| & \\\\\n};\n\\foreach \\ai [count=\\mi ]in {2,4,...,8}\n \\draw[<-] (mat-\\ai-1) -- node[above] {Input \\mi} +(-2cm,0);\n\\foreach \\ai in {2,4,...,8}\n{\\foreach \\aii in {3,6,9}\n \\draw[->] (mat-\\ai-1) -- (mat-\\aii-2);\n}\n\\foreach \\ai in {3,6,9}\n \\draw[->] (mat-\\ai-2) -- (mat-6-3);\n\\path [line] node{error} -- (mat-1-1);\n\\draw[->] (mat-6-3) -- ++(0pt,3cm) -| node[pos=0.15,above] {Error back propagation} ( $ (mat-2-1)!0.5!(mat-2-2) $ );\n\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{matrix,chains,positioning,decorations.pathreplacing,arrows,calc}\n\n\\tikzset{\nblock/.style={\n draw,\n rectangle, \n text width=3em, \n text centered, \n minimum height=8mm, \n node distance=2.3em\n }, \nline/.style={draw}\n}\n\n\\begin{document}\n \\begin{tikzpicture}[\n plain/.style={\n draw=none,\n fill=none,\n },\n net/.style={\n matrix of nodes,\n nodes={\n draw,\n circle,\n inner sep=10pt\n },\n nodes in empty cells,\n column sep=2cm,\n row sep=-9pt\n }, \n >=latex\n ]\n\\matrix[net] (mat)\n{ \n|[plain]| \\parbox{1cm}{\\centering Input\\\\layer} & |[plain]| \\parbox{1cm}{\\centering Hidden\\\\layer} & |[plain]| \\parbox{1cm}{\\centering Output\\\\layer} \\\\\n& |[plain]| \\\\\n|[plain]| & \\\\\n& |[plain]| \\\\\n|[plain]| & |[plain]| \\\\\n& & \\\\\n|[plain]| & |[plain]| \\\\\n& |[plain]| \\\\\n|[plain]| & \\\\\n};\n\\foreach \\ai [count=\\mi ]in {2,4,6,8}\n \\draw[<-] (mat-\\ai-1) -- node[above] {Input \\mi} +(-2cm,0);\n\\foreach \\ai in {2,4,6,8}\n{\\foreach \\aii in {3,6,9}\n \\draw[->] (mat-\\ai-1) -- (mat-\\aii-2);\n}\n\\foreach \\ai in {3,6,9}\n \\draw[->] (mat-\\ai-2) -- (mat-6-3);\n\\path [line] node{error} -- (mat-1-1);\n\\draw[->] (mat-6-3) -- ++(0pt,3cm) -| node[pos=0.15,above] {Error back propagation} ( $ (mat-2-1)!0.5!(mat-2-2) $ );\n\\end{tikzpicture}\n\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{matrix,chains,positioning,decorations.pathreplacing,arrows,calc}\n\n\\tikzset{\nblock/.style={\n draw,\n rectangle, \n text width=3em, \n text centered, \n minimum height=8mm, \n node distance=2.3em\n }, \nline/.style={draw}\n}\n\n\\begin{document}\n \\begin{tikzpicture}[\n plain/.style={\n draw=none,\n fill=none,\n },\n net/.style={\n matrix of nodes,\n nodes={\n draw,\n circle,\n inner sep=10pt\n },\n nodes in empty cells,\n column sep=2cm,\n row sep=-9pt\n }, \n >=latex\n ]\n\\matrix[net] (mat)\n{ \n|[plain]| \\parbox{1cm}{\\centering Input\\\\layer} & |[plain]| \\parbox{1cm}{\\centering Hidden\\\\layer} & |[plain]| \\parbox{1cm}{\\centering Output\\\\layer} \\\\\n& |[plain]| \\\\\n|[plain]| & \\\\\n& |[plain]| \\\\\n|[plain]| & |[plain]| \\\\\n& & \\\\\n|[plain]| & |[plain]| \\\\\n& |[plain]| \\\\\n|[plain]| & \\\\\n};\n\\foreach \\ai [count=\\mi ]in {2,4,...,8}\n \\draw[<-] (mat-\\ai-1) -- node[above] {Input \\mi} +(-2cm,0);\n\\foreach \\ai in {2,4,...,8}\n{\\foreach \\aii in {3,6,9}\n \\draw[->] (mat-\\ai-1) -- (mat-\\aii-2);\n}\n\\foreach \\ai in {3,6,9}\n \\draw[->] (mat-\\ai-2) -- (mat-6-3);\n\\path [line] node{error} -- (mat-1-1);\n\\draw[->] (mat-6-3) -- ++(0pt,3cm) -| node[pos=0.15,above] {Error back propagation} ( $ (mat-2-1)!0.5!(mat-2-2) $ );\n\\end{tikzpicture}\n\n\\end{document}" ]
[ 3 ]
pcb_dheigh
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{ decorations.pathreplacing, decorations.pathmorphing, decorations.markings } \usetikzlibrary{patterns,calc,arrows} \usepackage{pgfplots} \definecolor{copper}{rgb}{1,0,0} \definecolor{pcb}{rgb}{0,1,0} \colorlet{groundplane}{copper!50!black} \colorlet{pcbfront}{pcb!50!black} \colorlet{pcbright}{pcb!20!black} \colorlet{pcbtopleft}{pcb!70!black} \colorlet{pcbtopright}{pcb!50!black} \colorlet{striplinefront}{copper!50!black} \colorlet{striplineright}{copper!50!black} \colorlet{striplinetopleft}{copper!90!black} \colorlet{striplinetopright}{copper!60!black} \begin{document} \pgfarrowsdeclarecombine{dimarrow}{dimarrow}{latex}{latex}{}{} \def\Dimline[#1][#2][#3]{ \draw[ decoration={markings, mark=at position 0 with {\arrowreversed[scale=0.5]{dimarrow}};, mark=at position .5 with {\node[black] at (0,0.25) {#3};}, mark=at position 1 with {\arrow[scale=0.5]{dimarrow}};, }, postaction=decorate] #1 -- #2 ; } \begin{tikzpicture} \filldraw [pcbfront] (0,0,5) coordinate (height bottom) -- (0,1,5) coordinate (height top) -- (5,1,5) -- (5,0,5) -- cycle; \shade[top color = pcbtopleft, bottom color = pcbtopright, shading angle=75] (0,1,0) -- (5,1,0) -- (5,1,5) -- (0,1,5) -- cycle; \filldraw [pcbright] (5,0,0) -- (5,0,5) -- (5,1,5) -- (5,1,0) -- cycle; \filldraw [groundplane] (0,0,5) -- (5,0,5) -- (5,0,0) -- (5,-0.2,0) -- (5,-0.2,5) -- (0,-0.2,5) -- cycle; \filldraw [striplinefront] (1.5,1.2,5) coordinate (length front) -- (3.5,1.2,5) coordinate (thickness top) -- (3.5,1,5) coordinate (thickness bottom) -- (1.5,1,5) -- cycle; \shade [top color = striplinetopleft, bottom color = striplinetopright, shading angle=75] (1.5,1.2,0) coordinate (width left) coordinate (length back) -- (3.5,1.2,0) coordinate (width right) -- (3.5,1.2,5) -- (1.5,1.2,5) -- cycle; \filldraw [striplineright] (3.5,1,5) -- (3.5,1.2,5) -- (3.5,1.2,0) -- (3.5,1,0) -- cycle; \node at (4,0.5,5) {$\varepsilon$}; \Dimline[($(width left)+(0,1,0)$)][($(width right)+(0,1,0)$)][$w$]; \draw ($(width left)+(0,0.1,0)$) -- ($(width left)+(0,1.1,0)$); \draw ($(width right)+(0,0.1,0)$) -- ($(width right)+(0,1.1,0)$); \Dimline[($(length back)+(-2.5,0,0)$)][($(length front)+(-2.5,0,0)$)][$l$]; \draw ($(length front)+(-0.1,0,0)$) -- ($(length front)+(-2.6,0,0)$); \draw ($(length back)+(-0.1,0,0)$) -- ($(length back)+(-2.6,0,0)$); \Dimline[($(thickness top)+(3.5,0,0)$)][($(thickness bottom)+(3.5,0,0)$)][$t$]; \draw ($(thickness top)+(0.1,0,0)$) -- ($(thickness top)+(3.6,0,0)$); \draw ($(thickness bottom)+(0.1,0,0)$) -- ($(thickness bottom)+(3.6,0,0)$); \Dimline[($(height top)+(-1,0,0)$)][($(height bottom)+(-1,0,0)$)][$h$]; \draw ($(height top)+(-0.1,0,0)$) -- ($(height top)+(-1.1,0,0)$); \draw ($(height bottom)+(-0.1,0,0)$) -- ($(height bottom)+(-1.1,0,0)$); \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{% decorations.pathreplacing,% decorations.pathmorphing, decorations.markings% } \usetikzlibrary{patterns,calc,arrows} \usepackage{pgfplots} %% please note changes in color %% % base color for copper and PCB \definecolor{copper}{rgb}{1,0,0} \definecolor{pcb}{rgb}{0,1,0} % shades of them for the different elements \colorlet{groundplane}{copper!50!black} \colorlet{pcbfront}{pcb!50!black} \colorlet{pcbright}{pcb!20!black} \colorlet{pcbtopleft}{pcb!70!black} \colorlet{pcbtopright}{pcb!50!black} \colorlet{striplinefront}{copper!50!black} \colorlet{striplineright}{copper!50!black} \colorlet{striplinetopleft}{copper!90!black} \colorlet{striplinetopright}{copper!60!black} \begin{document} \pgfarrowsdeclarecombine{dimarrow}{dimarrow}{latex}{latex}{}{} \def\Dimline[#1][#2][#3]{ \draw[ % |-|, % removed, looks odd for l decoration={markings, % switch on markings mark=at position 0 with {\arrowreversed[scale=0.5]{dimarrow}};, mark=at position .5 with {\node[black] at (0,0.25) {#3};}, mark=at position 1 with {\arrow[scale=0.5]{dimarrow}};, }, postaction=decorate] #1 -- #2 ; } \begin{tikzpicture} % PCB front, use cycle to close path \filldraw [pcbfront] (0,0,5) coordinate (height bottom) -- (0,1,5) coordinate (height top) -- (5,1,5) -- (5,0,5) -- cycle; % PCB top \shade[top color = pcbtopleft, bottom color = pcbtopright, shading angle=75] (0,1,0) -- (5,1,0) -- (5,1,5) -- (0,1,5) -- cycle; % PCB right, closed it \filldraw [pcbright] (5,0,0) -- (5,0,5) -- (5,1,5) -- (5,1,0) -- cycle; % groundplane \filldraw [groundplane] (0,0,5) -- (5,0,5) -- (5,0,0) -- (5,-0.2,0) -- (5,-0.2,5) -- (0,-0.2,5) -- cycle; % stripline front \filldraw [striplinefront] (1.5,1.2,5) coordinate (length front) -- (3.5,1.2,5) coordinate (thickness top) -- (3.5,1,5) coordinate (thickness bottom) -- (1.5,1,5) -- cycle; %stripline top \shade [top color = striplinetopleft, bottom color = striplinetopright, shading angle=75] (1.5,1.2,0) coordinate (width left) coordinate (length back) -- (3.5,1.2,0) coordinate (width right) -- (3.5,1.2,5) -- (1.5,1.2,5) -- cycle; % stripline right \filldraw [striplineright] (3.5,1,5) -- (3.5,1.2,5) -- (3.5,1.2,0) -- (3.5,1,0) -- cycle; \node at (4,0.5,5) {$\varepsilon$}; % stripline width \Dimline[($(width left)+(0,1,0)$)][($(width right)+(0,1,0)$)][$w$]; \draw ($(width left)+(0,0.1,0)$) -- ($(width left)+(0,1.1,0)$); \draw ($(width right)+(0,0.1,0)$) -- ($(width right)+(0,1.1,0)$); % stripline length \Dimline[($(length back)+(-2.5,0,0)$)][($(length front)+(-2.5,0,0)$)][$l$]; %[left]; \draw ($(length front)+(-0.1,0,0)$) -- ($(length front)+(-2.6,0,0)$); \draw ($(length back)+(-0.1,0,0)$) -- ($(length back)+(-2.6,0,0)$); % stripline thickness \Dimline[($(thickness top)+(3.5,0,0)$)][($(thickness bottom)+(3.5,0,0)$)][$t$]; %[left]; \draw ($(thickness top)+(0.1,0,0)$) -- ($(thickness top)+(3.6,0,0)$); \draw ($(thickness bottom)+(0.1,0,0)$) -- ($(thickness bottom)+(3.6,0,0)$); % PCB height \Dimline[($(height top)+(-1,0,0)$)][($(height bottom)+(-1,0,0)$)][$h$]; %[left]; \draw ($(height top)+(-0.1,0,0)$) -- ($(height top)+(-1.1,0,0)$); \draw ($(height bottom)+(-0.1,0,0)$) -- ($(height bottom)+(-1.1,0,0)$); \end{tikzpicture} \end{document}
Double the height of the copper-colored box on top.
A technical diagram, with a somewhat high red box on top of a green one.
easy
update
scientific
[ "@@ -37,3 +37,3 @@\n\n-\\filldraw [striplinefront] (1.5,1.2,5) coordinate (length front) -- (3.5,1.2,5) coordinate (thickness top) -- (3.5,1,5) coordinate (thickness bottom) -- (1.5,1,5) -- cycle;\n-\\shade [top color = striplinetopleft, bottom color = striplinetopright, shading angle=75] (1.5,1.2,0) coordinate (width left) coordinate (length back) -- (3.5,1.2,0) coordinate (width right) -- (3.5,1.2,5) -- (1.5,1.2,5) -- cycle;\n-\\filldraw [striplineright] (3.5,1,5) -- (3.5,1.2,5) -- (3.5,1.2,0) -- (3.5,1,0) -- cycle;\n+\\filldraw [striplinefront] (1.5,1.4,5) coordinate (length front) -- (3.5,1.4,5) coordinate (thickness top) -- (3.5,1,5) coordinate (thickness bottom) -- (1.5,1,5) -- cycle;\n+\\shade [top color = striplinetopleft, bottom color = striplinetopright, shading angle=75] (1.5,1.4,0) coordinate (width left) coordinate (length back) -- (3.5,1.4,0) coordinate (width right) -- (3.5,1.4,5) -- (1.5,1.4,5) -- cycle;\n+\\filldraw [striplineright] (3.5,1,5) -- (3.5,1.4,5) -- (3.5,1.4,0) -- (3.5,1,0) -- cycle;" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{\n decorations.pathreplacing,\n decorations.pathmorphing,\n decorations.markings\n}\n\\usetikzlibrary{patterns,calc,arrows}\n\\usepackage{pgfplots}\n\n\\definecolor{copper}{rgb}{1,0,0}\n\\definecolor{pcb}{rgb}{0,1,0}\n\\colorlet{groundplane}{copper!50!black}\n\\colorlet{pcbfront}{pcb!50!black}\n\\colorlet{pcbright}{pcb!20!black}\n\\colorlet{pcbtopleft}{pcb!70!black}\n\\colorlet{pcbtopright}{pcb!50!black}\n\\colorlet{striplinefront}{copper!50!black}\n\\colorlet{striplineright}{copper!50!black}\n\\colorlet{striplinetopleft}{copper!90!black}\n\\colorlet{striplinetopright}{copper!60!black}\n\n\\begin{document}\n\n\\pgfarrowsdeclarecombine{dimarrow}{dimarrow}{latex}{latex}{}{}\n\\def\\Dimline[#1][#2][#3]{\n \\draw[ \n decoration={markings, \n mark=at position 0 with {\\arrowreversed[scale=0.5]{dimarrow}};,\n mark=at position .5 with {\\node[black] at (0,0.25) {#3};},\n mark=at position 1 with {\\arrow[scale=0.5]{dimarrow}};,\n },\n postaction=decorate] #1 -- #2 ;\n}\n\n\\begin{tikzpicture}\n\n\\filldraw [pcbfront] (0,0,5) coordinate (height bottom) -- (0,1,5) coordinate (height top) -- (5,1,5) -- (5,0,5) -- cycle;\n\n\\shade[top color = pcbtopleft, bottom color = pcbtopright, shading angle=75] (0,1,0) -- (5,1,0) -- (5,1,5) -- (0,1,5) -- cycle;\n\n\\filldraw [pcbright] (5,0,0) -- (5,0,5) -- (5,1,5) -- (5,1,0) -- cycle;\n\n\\filldraw [groundplane] (0,0,5) -- (5,0,5) -- (5,0,0) -- (5,-0.2,0) -- (5,-0.2,5) -- (0,-0.2,5) -- cycle;\n\n\\filldraw [striplinefront] (1.5,1.4,5) coordinate (length front) -- (3.5,1.4,5) coordinate (thickness top) -- (3.5,1,5) coordinate (thickness bottom) -- (1.5,1,5) -- cycle;\n\n\\shade [top color = striplinetopleft, bottom color = striplinetopright, shading angle=75] (1.5,1.4,0) coordinate (width left) coordinate (length back) -- (3.5,1.4,0) coordinate (width right) -- (3.5,1.4,5) -- (1.5,1.4,5) -- cycle;\n\n\\filldraw [striplineright] (3.5,1,5) -- (3.5,1.4,5) -- (3.5,1.4,0) -- (3.5,1,0) -- cycle;\n\n\\node at (4,0.5,5) {$\\varepsilon$};\n\n\n\\Dimline[($(width left)+(0,1,0)$)][($(width right)+(0,1,0)$)][$w$];\n\\draw ($(width left)+(0,0.1,0)$) -- ($(width left)+(0,1.1,0)$);\n\\draw ($(width right)+(0,0.1,0)$) -- ($(width right)+(0,1.1,0)$);\n\n\\Dimline[($(length back)+(-2.5,0,0)$)][($(length front)+(-2.5,0,0)$)][$l$]; \n\\draw ($(length front)+(-0.1,0,0)$) -- ($(length front)+(-2.6,0,0)$);\n\\draw ($(length back)+(-0.1,0,0)$) -- ($(length back)+(-2.6,0,0)$); \n\n\\Dimline[($(thickness top)+(3.5,0,0)$)][($(thickness bottom)+(3.5,0,0)$)][$t$]; \n\\draw ($(thickness top)+(0.1,0,0)$) -- ($(thickness top)+(3.6,0,0)$);\n\\draw ($(thickness bottom)+(0.1,0,0)$) -- ($(thickness bottom)+(3.6,0,0)$); \n\n\\Dimline[($(height top)+(-1,0,0)$)][($(height bottom)+(-1,0,0)$)][$h$]; \n\\draw ($(height top)+(-0.1,0,0)$) -- ($(height top)+(-1.1,0,0)$);\n\\draw ($(height bottom)+(-0.1,0,0)$) -- ($(height bottom)+(-1.1,0,0)$);\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{\n decorations.pathreplacing,\n decorations.pathmorphing,\n decorations.markings\n}\n\\usetikzlibrary{patterns,calc,arrows}\n\\usepackage{pgfplots}\n\n\\definecolor{copper}{rgb}{1,0,0}\n\\definecolor{pcb}{rgb}{0,1,0}\n\\colorlet{groundplane}{copper!50!black}\n\\colorlet{pcbfront}{pcb!50!black}\n\\colorlet{pcbright}{pcb!20!black}\n\\colorlet{pcbtopleft}{pcb!70!black}\n\\colorlet{pcbtopright}{pcb!50!black}\n\\colorlet{striplinefront}{copper!50!black}\n\\colorlet{striplineright}{copper!50!black}\n\\colorlet{striplinetopleft}{copper!90!black}\n\\colorlet{striplinetopright}{copper!60!black}\n\n\\begin{document}\n\n\\pgfarrowsdeclarecombine{dimarrow}{dimarrow}{latex}{latex}{}{}\n\\def\\Dimline[#1][#2][#3]{\n \\draw[ \n decoration={markings, \n mark=at position 0 with {\\arrowreversed[scale=0.5]{dimarrow}};,\n mark=at position .5 with {\\node[black] at (0,0.25) {#3};},\n mark=at position 1 with {\\arrow[scale=0.5]{dimarrow}};,\n },\n postaction=decorate] #1 -- #2 ;\n}\n\n\\begin{tikzpicture}\n\n\\filldraw [pcbfront] (0,0,5) coordinate (height bottom) -- (0,1,5) coordinate (height top) -- (5,1,5) -- (5,0,5) -- cycle;\n\n\\shade[top color = pcbtopleft, bottom color = pcbtopright, shading angle=75] (0,1,0) -- (5,1,0) -- (5,1,5) -- (0,1,5) -- cycle;\n\n\\filldraw [pcbright] (5,0,0) -- (5,0,5) -- (5,1,5) -- (5,1,0) -- cycle;\n\n\\filldraw [groundplane] (0,0,5) -- (5,0,5) -- (5,0,0) -- (5,-0.2,0) -- (5,-0.2,5) -- (0,-0.2,5) -- cycle;\n\n\\filldraw [striplinefront] (1.5,1.4,5) coordinate (length front) -- (3.5,1.4,5) coordinate (thickness top) -- (3.5,1,5) coordinate (thickness bottom) -- (1.5,1,5) -- cycle;\n\n\\shade [top color = striplinetopleft, bottom color = striplinetopright, shading angle=75] (1.5,1.4,0) coordinate (width left) coordinate (length back) -- (3.5,1.4,0) coordinate (width right) -- (3.5,1.4,5) -- (1.5,1.4,5) -- cycle;\n\n\\filldraw [striplineright] (3.5,1,5) -- (3.5,1.4,5) -- (3.5,1.4,0) -- (3.5,1,0) -- cycle;\n\n\\node at (4,0.5,5) {$\\varepsilon$};\n\n\n\\Dimline[($(width left)+(0,1,0)$)][($(width right)+(0,1,0)$)][$w$];\n\\draw ($(width left)+(0,0.1,0)$) -- ($(width left)+(0,1.1,0)$);\n\\draw ($(width right)+(0,0.1,0)$) -- ($(width right)+(0,1.1,0)$);\n\n\\Dimline[($(length back)+(-2.5,0,0)$)][($(length front)+(-2.5,0,0)$)][$l$]; \n\\draw ($(length front)+(-0.1,0,0)$) -- ($(length front)+(-2.6,0,0)$);\n\\draw ($(length back)+(-0.1,0,0)$) -- ($(length back)+(-2.6,0,0)$); \n\n\\Dimline[($(thickness top)+(3.5,0,0)$)][($(thickness bottom)+(3.5,0,0)$)][$t$]; \n\\draw ($(thickness top)+(0.1,0,0)$) -- ($(thickness top)+(3.6,0,0)$);\n\\draw ($(thickness bottom)+(0.1,0,0)$) -- ($(thickness bottom)+(3.6,0,0)$); \n\n\\Dimline[($(height top)+(-1,0,0)$)][($(height bottom)+(-1,0,0)$)][$h$]; \n\\draw ($(height top)+(-0.1,0,0)$) -- ($(height top)+(-1.1,0,0)$);\n\\draw ($(height bottom)+(-0.1,0,0)$) -- ($(height bottom)+(-1.1,0,0)$);\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ 3 ]
pcb_increase_width
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{ decorations.pathreplacing, decorations.pathmorphing, decorations.markings } \usetikzlibrary{patterns,calc,arrows} \usepackage{pgfplots} \definecolor{copper}{rgb}{1,0,0} \definecolor{pcb}{rgb}{0,1,0} \colorlet{groundplane}{copper!50!black} \colorlet{pcbfront}{pcb!50!black} \colorlet{pcbright}{pcb!20!black} \colorlet{pcbtopleft}{pcb!70!black} \colorlet{pcbtopright}{pcb!50!black} \colorlet{striplinefront}{copper!50!black} \colorlet{striplineright}{copper!50!black} \colorlet{striplinetopleft}{copper!90!black} \colorlet{striplinetopright}{copper!60!black} \begin{document} \pgfarrowsdeclarecombine{dimarrow}{dimarrow}{latex}{latex}{}{} \def\Dimline[#1][#2][#3]{ \draw[ decoration={markings, mark=at position 0 with {\arrowreversed[scale=0.5]{dimarrow}};, mark=at position .5 with {\node[black] at (0,0.25) {#3};}, mark=at position 1 with {\arrow[scale=0.5]{dimarrow}};, }, postaction=decorate] #1 -- #2 ; } \begin{tikzpicture} \filldraw [pcbfront] (0,0,5) coordinate (height bottom) -- (0,1,5) coordinate (height top) -- (5,1,5) -- (5,0,5) -- cycle; \shade[top color = pcbtopleft, bottom color = pcbtopright, shading angle=75] (0,1,0) -- (5,1,0) -- (5,1,5) -- (0,1,5) -- cycle; \filldraw [pcbright] (5,0,0) -- (5,0,5) -- (5,1,5) -- (5,1,0) -- cycle; \filldraw [groundplane] (0,0,5) -- (5,0,5) -- (5,0,0) -- (5,-0.2,0) -- (5,-0.2,5) -- (0,-0.2,5) -- cycle; \filldraw [striplinefront] (1.5,1.2,5) coordinate (length front) -- (3.5,1.2,5) coordinate (thickness top) -- (3.5,1,5) coordinate (thickness bottom) -- (1.5,1,5) -- cycle; \shade [top color = striplinetopleft, bottom color = striplinetopright, shading angle=75] (1.5,1.2,0) coordinate (width left) coordinate (length back) -- (3.5,1.2,0) coordinate (width right) -- (3.5,1.2,5) -- (1.5,1.2,5) -- cycle; \filldraw [striplineright] (3.5,1,5) -- (3.5,1.2,5) -- (3.5,1.2,0) -- (3.5,1,0) -- cycle; \node at (4,0.5,5) {$\varepsilon$}; \Dimline[($(width left)+(0,1,0)$)][($(width right)+(0,1,0)$)][$w$]; \draw ($(width left)+(0,0.1,0)$) -- ($(width left)+(0,1.1,0)$); \draw ($(width right)+(0,0.1,0)$) -- ($(width right)+(0,1.1,0)$); \Dimline[($(length back)+(-2.5,0,0)$)][($(length front)+(-2.5,0,0)$)][$l$]; \draw ($(length front)+(-0.1,0,0)$) -- ($(length front)+(-2.6,0,0)$); \draw ($(length back)+(-0.1,0,0)$) -- ($(length back)+(-2.6,0,0)$); \Dimline[($(thickness top)+(3.5,0,0)$)][($(thickness bottom)+(3.5,0,0)$)][$t$]; \draw ($(thickness top)+(0.1,0,0)$) -- ($(thickness top)+(3.6,0,0)$); \draw ($(thickness bottom)+(0.1,0,0)$) -- ($(thickness bottom)+(3.6,0,0)$); \Dimline[($(height top)+(-1,0,0)$)][($(height bottom)+(-1,0,0)$)][$h$]; \draw ($(height top)+(-0.1,0,0)$) -- ($(height top)+(-1.1,0,0)$); \draw ($(height bottom)+(-0.1,0,0)$) -- ($(height bottom)+(-1.1,0,0)$); \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{% decorations.pathreplacing,% decorations.pathmorphing, decorations.markings% } \usetikzlibrary{patterns,calc,arrows} \usepackage{pgfplots} %% please note changes in color %% % base color for copper and PCB \definecolor{copper}{rgb}{1,0,0} \definecolor{pcb}{rgb}{0,1,0} % shades of them for the different elements \colorlet{groundplane}{copper!50!black} \colorlet{pcbfront}{pcb!50!black} \colorlet{pcbright}{pcb!20!black} \colorlet{pcbtopleft}{pcb!70!black} \colorlet{pcbtopright}{pcb!50!black} \colorlet{striplinefront}{copper!50!black} \colorlet{striplineright}{copper!50!black} \colorlet{striplinetopleft}{copper!90!black} \colorlet{striplinetopright}{copper!60!black} \begin{document} \pgfarrowsdeclarecombine{dimarrow}{dimarrow}{latex}{latex}{}{} \def\Dimline[#1][#2][#3]{ \draw[ % |-|, % removed, looks odd for l decoration={markings, % switch on markings mark=at position 0 with {\arrowreversed[scale=0.5]{dimarrow}};, mark=at position .5 with {\node[black] at (0,0.25) {#3};}, mark=at position 1 with {\arrow[scale=0.5]{dimarrow}};, }, postaction=decorate] #1 -- #2 ; } \begin{tikzpicture} % PCB front, use cycle to close path \filldraw [pcbfront] (0,0,5) coordinate (height bottom) -- (0,1,5) coordinate (height top) -- (5,1,5) -- (5,0,5) -- cycle; % PCB top \shade[top color = pcbtopleft, bottom color = pcbtopright, shading angle=75] (0,1,0) -- (5,1,0) -- (5,1,5) -- (0,1,5) -- cycle; % PCB right, closed it \filldraw [pcbright] (5,0,0) -- (5,0,5) -- (5,1,5) -- (5,1,0) -- cycle; % groundplane \filldraw [groundplane] (0,0,5) -- (5,0,5) -- (5,0,0) -- (5,-0.2,0) -- (5,-0.2,5) -- (0,-0.2,5) -- cycle; % stripline front \filldraw [striplinefront] (1.5,1.2,5) coordinate (length front) -- (3.5,1.2,5) coordinate (thickness top) -- (3.5,1,5) coordinate (thickness bottom) -- (1.5,1,5) -- cycle; %stripline top \shade [top color = striplinetopleft, bottom color = striplinetopright, shading angle=75] (1.5,1.2,0) coordinate (width left) coordinate (length back) -- (3.5,1.2,0) coordinate (width right) -- (3.5,1.2,5) -- (1.5,1.2,5) -- cycle; % stripline right \filldraw [striplineright] (3.5,1,5) -- (3.5,1.2,5) -- (3.5,1.2,0) -- (3.5,1,0) -- cycle; \node at (4,0.5,5) {$\varepsilon$}; % stripline width \Dimline[($(width left)+(0,1,0)$)][($(width right)+(0,1,0)$)][$w$]; \draw ($(width left)+(0,0.1,0)$) -- ($(width left)+(0,1.1,0)$); \draw ($(width right)+(0,0.1,0)$) -- ($(width right)+(0,1.1,0)$); % stripline length \Dimline[($(length back)+(-2.5,0,0)$)][($(length front)+(-2.5,0,0)$)][$l$]; %[left]; \draw ($(length front)+(-0.1,0,0)$) -- ($(length front)+(-2.6,0,0)$); \draw ($(length back)+(-0.1,0,0)$) -- ($(length back)+(-2.6,0,0)$); % stripline thickness \Dimline[($(thickness top)+(3.5,0,0)$)][($(thickness bottom)+(3.5,0,0)$)][$t$]; %[left]; \draw ($(thickness top)+(0.1,0,0)$) -- ($(thickness top)+(3.6,0,0)$); \draw ($(thickness bottom)+(0.1,0,0)$) -- ($(thickness bottom)+(3.6,0,0)$); % PCB height \Dimline[($(height top)+(-1,0,0)$)][($(height bottom)+(-1,0,0)$)][$h$]; %[left]; \draw ($(height top)+(-0.1,0,0)$) -- ($(height top)+(-1.1,0,0)$); \draw ($(height bottom)+(-0.1,0,0)$) -- ($(height bottom)+(-1.1,0,0)$); \end{tikzpicture} \end{document}
Increase the width of the copper-colored box on the top, so that its right side aligns with the right side of the box under it.
A technical diagram, with a red layer that has its right side aligned with the right side of the green box under it
medium
update
scientific
[ "@@ -37,3 +37,3 @@\n\n-\\filldraw [striplinefront] (1.5,1.2,5) coordinate (length front) -- (3.5,1.2,5) coordinate (thickness top) -- (3.5,1,5) coordinate (thickness bottom) -- (1.5,1,5) -- cycle;\n-\\shade [top color = striplinetopleft, bottom color = striplinetopright, shading angle=75] (1.5,1.2,0) coordinate (width left) coordinate (length back) -- (3.5,1.2,0) coordinate (width right) -- (3.5,1.2,5) -- (1.5,1.2,5) -- cycle;\n-\\filldraw [striplineright] (3.5,1,5) -- (3.5,1.2,5) -- (3.5,1.2,0) -- (3.5,1,0) -- cycle;\n+\\filldraw [striplinefront] (1.5,1.2,5) coordinate (length front) -- (5,1.2,5) coordinate (thickness top) -- (5,1,5) coordinate (thickness bottom) -- (1.5,1,5) -- cycle;\n+\\shade [top color = striplinetopleft, bottom color = striplinetopright, shading angle=75] (1.5,1.2,0) coordinate (width left) coordinate (length back) -- (5,1.2,0) coordinate (width right) -- (5,1.2,5) -- (1.5,1.2,5) -- cycle;\n+\\filldraw [striplineright] (5,1,5) -- (5,1.2,5) -- (5,1.2,0) -- (5,1,0) -- cycle;" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{\n decorations.pathreplacing,\n decorations.pathmorphing,\n decorations.markings\n}\n\\usetikzlibrary{patterns,calc,arrows}\n\\usepackage{pgfplots}\n\n\\definecolor{copper}{rgb}{1,0,0}\n\\definecolor{pcb}{rgb}{0,1,0}\n\\colorlet{groundplane}{copper!50!black}\n\\colorlet{pcbfront}{pcb!50!black}\n\\colorlet{pcbright}{pcb!20!black}\n\\colorlet{pcbtopleft}{pcb!70!black}\n\\colorlet{pcbtopright}{pcb!50!black}\n\\colorlet{striplinefront}{copper!50!black}\n\\colorlet{striplineright}{copper!50!black}\n\\colorlet{striplinetopleft}{copper!90!black}\n\\colorlet{striplinetopright}{copper!60!black}\n\n\\begin{document}\n\n\\pgfarrowsdeclarecombine{dimarrow}{dimarrow}{latex}{latex}{}{}\n\\def\\Dimline[#1][#2][#3]{\n \\draw[ \n decoration={markings, \n mark=at position 0 with {\\arrowreversed[scale=0.5]{dimarrow}};,\n mark=at position .5 with {\\node[black] at (0,0.25) {#3};},\n mark=at position 1 with {\\arrow[scale=0.5]{dimarrow}};,\n },\n postaction=decorate] #1 -- #2 ;\n}\n\n\\begin{tikzpicture}\n\n\\filldraw [pcbfront] (0,0,5) coordinate (height bottom) -- (0,1,5) coordinate (height top) -- (5,1,5) -- (5,0,5) -- cycle;\n\n\\shade[top color = pcbtopleft, bottom color = pcbtopright, shading angle=75] (0,1,0) -- (5,1,0) -- (5,1,5) -- (0,1,5) -- cycle;\n\n\\filldraw [pcbright] (5,0,0) -- (5,0,5) -- (5,1,5) -- (5,1,0) -- cycle;\n\n\\filldraw [groundplane] (0,0,5) -- (5,0,5) -- (5,0,0) -- (5,-0.2,0) -- (5,-0.2,5) -- (0,-0.2,5) -- cycle;\n\n\\filldraw [striplinefront] (1.5,1.2,5) coordinate (length front) -- (5,1.2,5) coordinate (thickness top) -- (5,1,5) coordinate (thickness bottom) -- (1.5,1,5) -- cycle;\n\n\\shade [top color = striplinetopleft, bottom color = striplinetopright, shading angle=75] (1.5,1.2,0) coordinate (width left) coordinate (length back) -- (5,1.2,0) coordinate (width right) -- (5,1.2,5) -- (1.5,1.2,5) -- cycle;\n\n\\filldraw [striplineright] (5,1,5) -- (5,1.2,5) -- (5,1.2,0) -- (5,1,0) -- cycle;\n\n\\node at (4,0.5,5) {$\\varepsilon$};\n\n\n\\Dimline[($(width left)+(0,1,0)$)][($(width right)+(0,1,0)$)][$w$];\n\\draw ($(width left)+(0,0.1,0)$) -- ($(width left)+(0,1.1,0)$);\n\\draw ($(width right)+(0,0.1,0)$) -- ($(width right)+(0,1.1,0)$);\n\n\\Dimline[($(length back)+(-2.5,0,0)$)][($(length front)+(-2.5,0,0)$)][$l$]; \n\\draw ($(length front)+(-0.1,0,0)$) -- ($(length front)+(-2.6,0,0)$);\n\\draw ($(length back)+(-0.1,0,0)$) -- ($(length back)+(-2.6,0,0)$); \n\n\\Dimline[($(thickness top)+(3.5,0,0)$)][($(thickness bottom)+(3.5,0,0)$)][$t$]; \n\\draw ($(thickness top)+(0.1,0,0)$) -- ($(thickness top)+(3.6,0,0)$);\n\\draw ($(thickness bottom)+(0.1,0,0)$) -- ($(thickness bottom)+(3.6,0,0)$); \n\n\\Dimline[($(height top)+(-1,0,0)$)][($(height bottom)+(-1,0,0)$)][$h$]; \n\\draw ($(height top)+(-0.1,0,0)$) -- ($(height top)+(-1.1,0,0)$);\n\\draw ($(height bottom)+(-0.1,0,0)$) -- ($(height bottom)+(-1.1,0,0)$);\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{\n decorations.pathreplacing,\n decorations.pathmorphing,\n decorations.markings\n}\n\\usetikzlibrary{patterns,calc,arrows}\n\\usepackage{pgfplots}\n\n\\definecolor{copper}{rgb}{1,0,0}\n\\definecolor{pcb}{rgb}{0,1,0}\n\\colorlet{groundplane}{copper!50!black}\n\\colorlet{pcbfront}{pcb!50!black}\n\\colorlet{pcbright}{pcb!20!black}\n\\colorlet{pcbtopleft}{pcb!70!black}\n\\colorlet{pcbtopright}{pcb!50!black}\n\\colorlet{striplinefront}{copper!50!black}\n\\colorlet{striplineright}{copper!50!black}\n\\colorlet{striplinetopleft}{copper!90!black}\n\\colorlet{striplinetopright}{copper!60!black}\n\n\\begin{document}\n\n\\pgfarrowsdeclarecombine{dimarrow}{dimarrow}{latex}{latex}{}{}\n\\def\\Dimline[#1][#2][#3]{\n \\draw[ \n decoration={markings, \n mark=at position 0 with {\\arrowreversed[scale=0.5]{dimarrow}};,\n mark=at position .5 with {\\node[black] at (0,0.25) {#3};},\n mark=at position 1 with {\\arrow[scale=0.5]{dimarrow}};,\n },\n postaction=decorate] #1 -- #2 ;\n}\n\n\\begin{tikzpicture}\n\n\\filldraw [pcbfront] (0,0,5) coordinate (height bottom) -- (0,1,5) coordinate (height top) -- (5,1,5) -- (5,0,5) -- cycle;\n\n\\shade[top color = pcbtopleft, bottom color = pcbtopright, shading angle=75] (0,1,0) -- (5,1,0) -- (5,1,5) -- (0,1,5) -- cycle;\n\n\\filldraw [pcbright] (5,0,0) -- (5,0,5) -- (5,1,5) -- (5,1,0) -- cycle;\n\n\\filldraw [groundplane] (0,0,5) -- (5,0,5) -- (5,0,0) -- (5,-0.2,0) -- (5,-0.2,5) -- (0,-0.2,5) -- cycle;\n\n\\filldraw [striplinefront] (1.5,1.2,5) coordinate (length front) -- (5,1.2,5) coordinate (thickness top) -- (5,1,5) coordinate (thickness bottom) -- (1.5,1,5) -- cycle;\n\n\\shade [top color = striplinetopleft, bottom color = striplinetopright, shading angle=75] (1.5,1.2,0) coordinate (width left) coordinate (length back) -- (5,1.2,0) coordinate (width right) -- (5,1.2,5) -- (1.5,1.2,5) -- cycle;\n\n\\filldraw [striplineright] (5,1,5) -- (5,1.2,5) -- (5,1.2,0) -- (5,1,0) -- cycle;\n\n\\node at (4,0.5,5) {$\\varepsilon$};\n\n\n\\Dimline[($(width left)+(0,1,0)$)][($(width right)+(0,1,0)$)][$w$];\n\\draw ($(width left)+(0,0.1,0)$) -- ($(width left)+(0,1.1,0)$);\n\\draw ($(width right)+(0,0.1,0)$) -- ($(width right)+(0,1.1,0)$);\n\n\\Dimline[($(length back)+(-2.5,0,0)$)][($(length front)+(-2.5,0,0)$)][$l$]; \n\\draw ($(length front)+(-0.1,0,0)$) -- ($(length front)+(-2.6,0,0)$);\n\\draw ($(length back)+(-0.1,0,0)$) -- ($(length back)+(-2.6,0,0)$); \n\n\\Dimline[($(thickness top)+(3.5,0,0)$)][($(thickness bottom)+(3.5,0,0)$)][$t$]; \n\\draw ($(thickness top)+(0.1,0,0)$) -- ($(thickness top)+(3.6,0,0)$);\n\\draw ($(thickness bottom)+(0.1,0,0)$) -- ($(thickness bottom)+(3.6,0,0)$); \n\n\\Dimline[($(height top)+(-1,0,0)$)][($(height bottom)+(-1,0,0)$)][$h$]; \n\\draw ($(height top)+(-0.1,0,0)$) -- ($(height top)+(-1.1,0,0)$);\n\\draw ($(height bottom)+(-0.1,0,0)$) -- ($(height bottom)+(-1.1,0,0)$);\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ 62 ]
plane_intersection
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \usepackage{physics} \begin{document} \def\t{0.9} \def\s{0.04} \def\tt{0.3} \def\ss{0.7} \def\ttt{0.5} \def\sss{0.5} \begin{tikzpicture}[x={(1cm,0.4cm)}, y={(8mm, -3mm)}, z={(0cm,1cm)}, line cap=round, line join=round] \coordinate (x1) at (-2,2,3); \coordinate (x2) at (2,2,5); \coordinate (x3) at (2,-2,5); \coordinate (x4) at (-2,-2,3); \coordinate (n1) at ($(x2) - (x1)$); \coordinate (n2) at ($(x2) - (x3)$); \coordinate (x5) at ($(x1) + \s*(n1) - \t*(n2)$); \node[outer sep = 1pt, inner sep = 1pt] (x6) at ($(x1) + \ss*(n1) - \tt*(n2)$) {}; \coordinate (x7) at ($(x1) + \sss*(n1) - \ttt*(n2)$); \coordinate (O) at (0,0,0); \node[outer sep = 1pt, inner sep = 1pt] (P) at (2.5,1,5.5) {}; \draw[-latex] (-2.5,0,0) -- (2.5,0,0) node[pos = 1.05] {$x$}; \draw[-latex] (0,-3.5,0) -- (0,3.5,0) node[pos = 1.05] {$y$}; \draw[-latex] (0,0,0) -- (0,0,7) node[pos = 1.05] {$z$}; \draw[draw=black, fill=black] (O) circle (1pt) node[below] {${O}$}; \draw[-latex, thick] (O) -- (x6) node[pos=0.45, shift={(0.1,0.3)}] {$\vb{r_o}$}; \path[draw=black, fill=black!20, thick, opacity = 0.8] (x1) -- (x2) -- (x3) -- (x4) -- (x1); \node[shift={(-0.45,0.6)}] at (x3) {$\Pi$}; \draw[-latex, thick] (x5) -- ($(x5)!0.07!(-8,0,24)$) node[pos=0.5, shift={(-0.2,-0.1)}] {$\vb{u}$}; \draw[draw=black, fill=black] (x6) circle (1pt) node[above right] {${P_o}$}; \draw[draw=black, fill=black] (x7) circle (0.5pt); \draw (x7) -- (0,0,6.5); \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} %Drawing \usepackage{tikz} %Tikz Library \usetikzlibrary{calc} %Notation \usepackage{physics} \begin{document} % All numbers must be in [0,1] to fall in the plane drawn \def\t{0.9} \def\s{0.04} \def\tt{0.3} \def\ss{0.7} \def\ttt{0.5} \def\sss{0.5} \begin{tikzpicture}[x={(1cm,0.4cm)}, y={(8mm, -3mm)}, z={(0cm,1cm)}, line cap=round, line join=round] %Coordinates %Plane Vertex Points \coordinate (x1) at (-2,2,3); \coordinate (x2) at (2,2,5); \coordinate (x3) at (2,-2,5); \coordinate (x4) at (-2,-2,3); %Vectors Parallel to Plane \coordinate (n1) at ($(x2) - (x1)$); \coordinate (n2) at ($(x2) - (x3)$); %Points on Plane \coordinate (x5) at ($(x1) + \s*(n1) - \t*(n2)$); \node[outer sep = 1pt, inner sep = 1pt] (x6) at ($(x1) + \ss*(n1) - \tt*(n2)$) {}; \coordinate (x7) at ($(x1) + \sss*(n1) - \ttt*(n2)$); %Beginning of Axis \coordinate (O) at (0,0,0); %Random Point \node[outer sep = 1pt, inner sep = 1pt] (P) at (2.5,1,5.5) {}; %Axis \draw[-latex] (-2.5,0,0) -- (2.5,0,0) node[pos = 1.05] {$x$}; \draw[-latex] (0,-3.5,0) -- (0,3.5,0) node[pos = 1.05] {$y$}; \draw[-latex] (0,0,0) -- (0,0,7) node[pos = 1.05] {$z$}; \draw[draw=black, fill=black] (O) circle (1pt) node[below] {${O}$}; %Point on Plane \draw[-latex, thick] (O) -- (x6) node[pos=0.45, shift={(0.1,0.3)}] {$\vb{r_o}$}; %Plane \path[draw=black, fill=black!20, thick, opacity = 0.8] (x1) -- (x2) -- (x3) -- (x4) -- (x1); \node[shift={(-0.45,0.6)}] at (x3) {$\Pi$}; %Perpendicular Vector \draw[-latex, thick] (x5) -- ($(x5)!0.07!(-8,0,24)$) node[pos=0.5, shift={(-0.2,-0.1)}] {$\vb{u}$}; %Point on Plane \draw[draw=black, fill=black] (x6) circle (1pt) node[above right] {${P_o}$}; %Z-axis Section \draw[draw=black, fill=black] (x7) circle (0.5pt); \draw (x7) -- (0,0,6.5); \end{tikzpicture} \end{document}
Add a second plane Pi_2, parallel to the x-y-plane. This plane should intersect with the existing plane, and their intersection should cross the z-axis.
Two planes intersecting in a 3-dimensional diagram.
hard
add
scientific
[ "@@ -16,0 +17,4 @@\n\n+\\coordinate (x8) at (-2,2,4);\n+\\coordinate (x9) at (2,2,4);\n+\\coordinate (x10) at (2,-2,4);\n+\\coordinate (x11) at (-2,-2,4);\n@@ -32,0 +37,5 @@\n\n+\\path[draw=black, fill=black!20, thick, opacity = 0.8] (x8) -- (x9) -- (x10) -- (x11) -- (x8);\n+\\node[shift={(-0.45,0.6)}] at (x10) {$\\Pi_2$};\n+\\draw[draw=gray!50, thick] (0,-2,4) -- (x10);\n+\\draw[draw=gray!50, thick] (2,-2,4) -- (2,1,4);\n+\\draw[draw=black, thick] (0,2,4) -- (x2);" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\n\\usepackage{tikz}\n\n\\usetikzlibrary{calc}\n\n\\usepackage{physics}\n\n\\begin{document}\n\n\\def\\t{0.9}\n\\def\\s{0.04}\n\\def\\tt{0.3}\n\\def\\ss{0.7}\n\\def\\ttt{0.5}\n\\def\\sss{0.5}\n\t\n\\begin{tikzpicture}[x={(1cm,0.4cm)}, y={(8mm, -3mm)}, z={(0cm,1cm)}, line cap=round, line join=round]\n\t\\coordinate (x1) at (-2,2,3);\n\t\\coordinate (x2) at (2,2,5);\n\t\\coordinate (x3) at (2,-2,5);\n\t\\coordinate (x4) at (-2,-2,3);\n\n\t\\coordinate (x8) at (-2,2,4);\n\t\\coordinate (x9) at (2,2,4);\n\t\\coordinate (x10) at (2,-2,4);\n\t\\coordinate (x11) at (-2,-2,4);\n \n\t\\coordinate (n1) at ($(x2) - (x1)$);\n\t\\coordinate (n2) at ($(x2) - (x3)$); \n\t\\coordinate (x5) at ($(x1) + \\s*(n1) - \\t*(n2)$);\n\t\\node[outer sep = 1pt, inner sep = 1pt] (x6) at ($(x1) + \\ss*(n1) - \\tt*(n2)$) {};\n\t\\coordinate (x7) at ($(x1) + \\sss*(n1) - \\ttt*(n2)$);\n\t\\coordinate (O) at (0,0,0);\n\t\\node[outer sep = 1pt, inner sep = 1pt] (P) at (2.5,1,5.5) {};\n\t\n\t\\draw[-latex] (-2.5,0,0) -- (2.5,0,0) node[pos = 1.05] {$x$};\n\t\\draw[-latex] (0,-3.5,0) -- (0,3.5,0) node[pos = 1.05] {$y$};\n\t\\draw[-latex] (0,0,0) -- (0,0,7) node[pos = 1.05] {$z$};\n\t\\draw[draw=black, fill=black] (O) circle (1pt) node[below] {${O}$};\n\t\n\t\\draw[-latex, thick] (O) -- (x6) node[pos=0.45, shift={(0.1,0.3)}] {$\\vb{r_o}$};\n\t\\path[draw=black, fill=black!20, thick, opacity = 0.8] (x1) -- (x2) -- (x3) -- (x4) -- (x1);\n\t\\node[shift={(-0.45,0.6)}] at (x3) {$\\Pi$};\n\t\\draw[-latex, thick] (x5) -- ($(x5)!0.07!(-8,0,24)$) node[pos=0.5, shift={(-0.2,-0.1)}] {$\\vb{u}$};\n\t\\draw[draw=black, fill=black] (x6) circle (1pt) node[above right] {${P_o}$};\n\n\t\\path[draw=black, fill=black!20, thick, opacity = 0.8] (x8) -- (x9) -- (x10) -- (x11) -- (x8);\n\t\\node[shift={(-0.45,0.6)}] at (x10) {$\\Pi_2$};\n\n\t\\draw[draw=gray!50, thick] (0,-2,4) -- (x10);\n \\draw[draw=gray!50, thick] (2,-2,4) -- (2,1,4);\n \\draw[draw=black, thick] (0,2,4) -- (x2);\n\n\t\\draw[draw=black, fill=black] (x7) circle (0.5pt);\n\t\\draw (x7) -- (0,0,6.5);\n\n\\end{tikzpicture}\n\t\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\n\\usepackage{tikz}\n\n\\usetikzlibrary{calc}\n\n\\usepackage{physics}\n\n\\begin{document}\n\n\\def\\t{0.9}\n\\def\\s{0.04}\n\\def\\tt{0.3}\n\\def\\ss{0.7}\n\\def\\ttt{0.5}\n\\def\\sss{0.5}\n\t\n\\begin{tikzpicture}[x={(1cm,0.4cm)}, y={(8mm, -3mm)}, z={(0cm,1cm)}, line cap=round, line join=round]\n\t\\coordinate (x1) at (-2,2,3);\n\t\\coordinate (x2) at (2,2,5);\n\t\\coordinate (x3) at (2,-2,5);\n\t\\coordinate (x4) at (-2,-2,3);\n\n\t\\coordinate (x8) at (-2,2,4);\n\t\\coordinate (x9) at (2,2,4);\n\t\\coordinate (x10) at (2,-2,4);\n\t\\coordinate (x11) at (-2,-2,4);\n \n\t\\coordinate (n1) at ($(x2) - (x1)$);\n\t\\coordinate (n2) at ($(x2) - (x3)$); \n\t\\coordinate (x5) at ($(x1) + \\s*(n1) - \\t*(n2)$);\n\t\\node[outer sep = 1pt, inner sep = 1pt] (x6) at ($(x1) + \\ss*(n1) - \\tt*(n2)$) {};\n\t\\coordinate (x7) at ($(x1) + \\sss*(n1) - \\ttt*(n2)$);\n\t\\coordinate (O) at (0,0,0);\n\t\\node[outer sep = 1pt, inner sep = 1pt] (P) at (2.5,1,5.5) {};\n\t\n\t\\draw[-latex] (-2.5,0,0) -- (2.5,0,0) node[pos = 1.05] {$x$};\n\t\\draw[-latex] (0,-3.5,0) -- (0,3.5,0) node[pos = 1.05] {$y$};\n\t\\draw[-latex] (0,0,0) -- (0,0,7) node[pos = 1.05] {$z$};\n\t\\draw[draw=black, fill=black] (O) circle (1pt) node[below] {${O}$};\n\t\n\t\\draw[-latex, thick] (O) -- (x6) node[pos=0.45, shift={(0.1,0.3)}] {$\\vb{r_o}$};\n\t\\path[draw=black, fill=black!20, thick, opacity = 0.8] (x1) -- (x2) -- (x3) -- (x4) -- (x1);\n\t\\node[shift={(-0.45,0.6)}] at (x3) {$\\Pi$};\n\t\\draw[-latex, thick] (x5) -- ($(x5)!0.07!(-8,0,24)$) node[pos=0.5, shift={(-0.2,-0.1)}] {$\\vb{u}$};\n\t\\draw[draw=black, fill=black] (x6) circle (1pt) node[above right] {${P_o}$};\n\n\t\\path[draw=black, fill=black!20, thick, opacity = 0.8] (x8) -- (x9) -- (x10) -- (x11) -- (x8);\n\t\\node[shift={(-0.45,0.6)}] at (x10) {$\\Pi_2$};\n\n\t\\draw[draw=gray!50, thick] (0,-2,4) -- (x10);\n \\draw[draw=gray!50, thick] (2,-2,4) -- (2,1,4);\n \\draw[draw=black, thick] (0,2,4) -- (x2);\n\n\t\\draw[draw=black, fill=black] (x7) circle (0.5pt);\n\t\\draw (x7) -- (0,0,6.5);\n\n\\end{tikzpicture}\n\t\n\\end{document}" ]
[ 14 ]
polygon_added_right
\documentclass[tikz,border=5]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \usepackage{tkz-euclide} \newcommand{\polygon}[2]{ \draw (0,0) coordinate (X) ; \pgfmathsetmacro{\angle}{360/#1} \foreach \i in {0,1,2,...,#1}{ \draw(X)--++(\angle*\i:2.5) coordinate (A\i); } \foreach \i in {0,...,\fpeval{#1-1}}{ \pgfmathsetmacro{\k}{100*\i/#1} \pgfmathtruncatemacro{\j}{\i+1} \filldraw[red!\k,line join=bevel] (X)--(A\i)--(A\j)--cycle; } \draw (A0) foreach \i in {1,...,\fpeval{#1-1}}{ -- (A\i) } -- cycle; \foreach \i in {0,...,#1}{ \draw(X)--(A\i); } \foreach [count=\i] \txt in {#2} { \path (X)-- ++({(\i+0.5)*\angle}:1) node (B\i) {\txt}; } \filldraw (X) circle [radius=3pt]; } \begin{document} \begin{tikzpicture}[line width =0.7mm] \polygon{4}{1,2,3,4} \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \usepackage{tkz-euclide} \newcommand{\polygon}[2]{%#1 number of sides, #2--numbers to go in spinner \draw (0,0) coordinate (X) ; \pgfmathsetmacro{\angle}{360/#1} \foreach \i in {0,1,2,...,#1}{ \draw(X)--++(\angle*\i:2.5) coordinate (A\i); } \foreach \i in {0,...,\fpeval{#1-1}}{ \pgfmathsetmacro{\k}{100*\i/#1} \pgfmathtruncatemacro{\j}{\i+1} % add line join=bevel to avoid bits of fill sticking outside the frame \filldraw[red!\k,line join=bevel] (X)--(A\i)--(A\j)--cycle; } % draw border as single path to improve joins \draw (A0) foreach \i in {1,...,\fpeval{#1-1}}{ -- (A\i) } -- cycle; \foreach \i in {0,...,#1}{ \draw(X)--(A\i); } \foreach [count=\i] \txt in {#2} { \path (X)-- ++({(\i+0.5)*\angle}:1) node (B\i) {\txt}; } \filldraw (X) circle [radius=3pt]; }% \begin{document} \begin{tikzpicture}[line width =0.7mm] \polygon{4}{1,2,3,4} \end{tikzpicture} \end{document}
Add a second polygon with 5 sides on the right side of the first one, numbered from 1 to 5.
A square and a pentagon next to eachother.
easy
add
scientific
[ "@@ -28,0 +29,3 @@\n\n+\\begin{scope}[shift={(5,0)}]\n+\\polygon{5}{1,2,3,4,5}\n+\\end{scope}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{pgfplots}\n\\pgfplotsset{compat=1.18}\n\\usepackage{tkz-euclide}\n\n\\newcommand{\\polygon}[2]{\n\n \\draw (0,0) coordinate (X) ;\n\n \\pgfmathsetmacro{\\angle}{360/#1}\n \\foreach \\i in {0,1,2,...,#1}{\n \\draw(X)--++(\\angle*\\i:2.5) coordinate (A\\i);\n }\n \n \\foreach \\i in {0,...,\\fpeval{#1-1}}{\n \\pgfmathsetmacro{\\k}{100*\\i/#1}\n \\pgfmathtruncatemacro{\\j}{\\i+1}\n \n \\filldraw[red!\\k,line join=bevel] (X)--(A\\i)--(A\\j)--cycle;\n }\n\n \\draw (A0) foreach \\i in {1,...,\\fpeval{#1-1}}{ -- (A\\i) } -- cycle;\n\n \\foreach \\i in {0,...,#1}{\n \\draw(X)--(A\\i);\n }\n\n \\foreach [count=\\i] \\txt in {#2}\n {\n \\path (X)-- ++({(\\i+0.5)*\\angle}:1) node (B\\i) {\\txt};\n }\n\n \\filldraw (X) circle [radius=3pt];\n\n }\n\n\\begin{document}\n\\begin{tikzpicture}[line width =0.7mm]\n\n\\polygon{4}{1,2,3,4}\n\n\\begin{scope}[shift={(§range(5,6,5),0)}]\n \\polygon{5}{1,2,3,4,5}\n\\end{scope}\n\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{pgfplots}\n\\pgfplotsset{compat=1.18}\n\\usepackage{tkz-euclide}\n\n\\newcommand{\\polygon}[2]{\n\n \\draw (0,0) coordinate (X) ;\n\n \\pgfmathsetmacro{\\angle}{360/#1}\n \\foreach \\i in {0,1,2,...,#1}{\n \\draw(X)--++(\\angle*\\i:2.5) coordinate (A\\i);\n }\n \n \\foreach \\i in {0,...,\\fpeval{#1-1}}{\n \\pgfmathsetmacro{\\k}{100*\\i/#1}\n \\pgfmathtruncatemacro{\\j}{\\i+1}\n \n \\filldraw[red!\\k,line join=bevel] (X)--(A\\i)--(A\\j)--cycle;\n }\n\n \\draw (A0) foreach \\i in {1,...,\\fpeval{#1-1}}{ -- (A\\i) } -- cycle;\n\n \\foreach \\i in {0,...,#1}{\n \\draw(X)--(A\\i);\n }\n\n \\foreach [count=\\i] \\txt in {#2}\n {\n \\path (X)-- ++({(\\i+0.5)*\\angle}:1) node (B\\i) {\\txt};\n }\n\n \\filldraw (X) circle [radius=3pt];\n\n }\n\n\\begin{document}\n\\begin{tikzpicture}[line width =0.7mm]\n\n\\polygon{4}{1,2,3,4}\n\n\\begin{scope}[shift={(5,0)}]\n \\polygon{5}{1,2,3,4,5}\n\\end{scope}\n\n\\end{tikzpicture}\n\\end{document}" ]
[ 113 ]
quantum_removed_first
\documentclass[tikz,border=5]{standalone} \usepackage{amsmath} \usepackage{amssymb} \usepackage[usenames,dvipsnames]{xcolor} \usepackage[utf8]{inputenc} \usepackage{tcolorbox} \usepackage{tikz} \usetikzlibrary{quantikz} \usetikzlibrary{calc} \pgfdeclarelayer{bg} \pgfsetlayers{bg,main} \begin{document} \begin{tikzpicture}[scale=0.8, transform shape] \begin{scope} \node[draw, fill=white] (gate0) at (0.5, 0) {$H$}; \node[draw, fill=white] (gate1) at (0.5, -1) {$H$}; \node[draw, fill=white] (gate2) at (0.5, -2) {$H$}; \node[draw, fill=white] (gate3) at (0.5, -3) {$H$}; \node[draw, fill=white] (gate4) at (0.5, -4) {$H$}; \node[draw, fill=white] (gate5) at (1.9, 0) {$RZ(x_1)$}; \node[draw, fill=white] (gate6) at (1.9, -1) {$RZ(x_2)$}; \node[draw, fill=white] (gate7) at (1.9, -2) {$RZ(x_1)$}; \node[draw, fill=white] (gate8) at (1.9, -3) {$RZ(x_2)$}; \node[draw, fill=white] (gate9) at (1.9, -4) {$RZ(x_1)$}; \node[draw, fill=white] (gate10) at (3.7, 0) {$RY(\theta_{2})$}; \node[draw, fill=white] (gate11) at (3.7, -1) {$RY(\theta_{2})$}; \node[draw, fill=white] (gate12) at (3.7, -2) {$RY(\theta_{3})$}; \node[draw, fill=white] (gate13) at (3.7, -3) {$RY(\theta_{4})$}; \node[draw, fill=white] (gate14) at (3.7, -4) {$RY(\theta_{5})$}; \draw[] (5.5, 0) -- +(0, -1) node[pos=0, circle, fill=black, inner sep=0pt,minimum size=3pt] {{}} node[pos=1, draw, fill=white] (gate15) {$RZ(\theta_{6})$}; \draw[] (5.5, -2) -- +(0, -1) node[pos=0, circle, fill=black, inner sep=0pt,minimum size=3pt] {{}} node[pos=1, draw, fill=white] (gate16) {$RZ(\theta_{8})$}; \draw[] (7.3, -1) -- +(0, -1) node[pos=0, circle, fill=black, inner sep=0pt,minimum size=3pt] {{}} node[pos=1, draw, fill=white] (gate17) {$RZ(\theta_{7})$}; \draw[] (7.3, -3) -- +(0, -1) node[pos=0, circle, fill=black, inner sep=0pt,minimum size=3pt] {{}} node[pos=1, draw, fill=white] (gate18) {$RZ(\theta_{9})$}; \draw[] (9.1, -4) -- +(0, 4) node[pos=0, circle, fill=black, inner sep=0pt,minimum size=3pt] {{}} node[pos=1, draw, fill=white] (gate19) {$RZ(\theta_{10})$}; \begin{pgfonlayer}{bg} \draw (0, 0) -- (10.0, 0); \draw (0, -1) -- (10.0, -1); \draw (0, -2) -- (10.0, -2); \draw (0, -3) -- (10.0, -3); \draw (0, -4) -- (10.0, -4); \end{pgfonlayer} \end{scope} \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{amsmath} \usepackage{amssymb} \usepackage[usenames,dvipsnames]{xcolor} \usepackage[utf8]{inputenc} \usepackage{tcolorbox} \usepackage{tikz} \usetikzlibrary{quantikz} \usetikzlibrary{calc} \pgfdeclarelayer{bg} \pgfsetlayers{bg,main} \begin{document} \begin{tikzpicture}[scale=0.8, transform shape] \begin{scope} \node[draw, fill=white] (gate0) at (0.5, 0) {$H$}; %Hadamard \node[draw, fill=white] (gate1) at (0.5, -1) {$H$}; %Hadamard \node[draw, fill=white] (gate2) at (0.5, -2) {$H$}; %Hadamard \node[draw, fill=white] (gate3) at (0.5, -3) {$H$}; %Hadamard \node[draw, fill=white] (gate4) at (0.5, -4) {$H$}; %Hadamard \node[draw, fill=white] (gate5) at (1.9, 0) {$RZ(x_1)$}; %RZ \node[draw, fill=white] (gate6) at (1.9, -1) {$RZ(x_2)$}; %RZ \node[draw, fill=white] (gate7) at (1.9, -2) {$RZ(x_1)$}; %RZ \node[draw, fill=white] (gate8) at (1.9, -3) {$RZ(x_2)$}; %RZ \node[draw, fill=white] (gate9) at (1.9, -4) {$RZ(x_1)$}; %RZ \node[draw, fill=white] (gate10) at (3.7, 0) {$RY(\theta_{2})$}; %RY \node[draw, fill=white] (gate11) at (3.7, -1) {$RY(\theta_{2})$}; %RY \node[draw, fill=white] (gate12) at (3.7, -2) {$RY(\theta_{3})$}; %RY \node[draw, fill=white] (gate13) at (3.7, -3) {$RY(\theta_{4})$}; %RY \node[draw, fill=white] (gate14) at (3.7, -4) {$RY(\theta_{5})$}; %RY \draw[] (5.5, 0) -- +(0, -1) node[pos=0, circle, fill=black, inner sep=0pt,minimum size=3pt] {{}} node[pos=1, draw, fill=white] (gate15) {$RZ(\theta_{6})$}; %CRZ \draw[] (5.5, -2) -- +(0, -1) node[pos=0, circle, fill=black, inner sep=0pt,minimum size=3pt] {{}} node[pos=1, draw, fill=white] (gate16) {$RZ(\theta_{8})$}; %CRZ \draw[] (7.3, -1) -- +(0, -1) node[pos=0, circle, fill=black, inner sep=0pt,minimum size=3pt] {{}} node[pos=1, draw, fill=white] (gate17) {$RZ(\theta_{7})$}; %CRZ \draw[] (7.3, -3) -- +(0, -1) node[pos=0, circle, fill=black, inner sep=0pt,minimum size=3pt] {{}} node[pos=1, draw, fill=white] (gate18) {$RZ(\theta_{9})$}; %CRZ \draw[] (9.1, -4) -- +(0, 4) node[pos=0, circle, fill=black, inner sep=0pt,minimum size=3pt] {{}} node[pos=1, draw, fill=white] (gate19) {$RZ(\theta_{10})$}; %CRZ \begin{pgfonlayer}{bg} \draw (0, 0) -- (10.0, 0); \draw (0, -1) -- (10.0, -1); \draw (0, -2) -- (10.0, -2); \draw (0, -3) -- (10.0, -3); \draw (0, -4) -- (10.0, -4); \end{pgfonlayer} \end{scope} \end{tikzpicture} \end{document}
Remove the first row, i.e. all the boxes and connections at the top of the image. Remove the lines that were connected to this row as well.
A technical diagram, with the box Rz(theta6) on the top line
medium
remove
scientific
[ "@@ -15 +14,0 @@\n\n-\\node[draw, fill=white] (gate0) at (0.5, 0) {$H$};\n@@ -20 +18,0 @@\n\n-\\node[draw, fill=white] (gate5) at (1.9, 0) {$RZ(x_1)$};\n@@ -25 +22,0 @@\n\n-\\node[draw, fill=white] (gate10) at (3.7, 0) {$RY(\\theta_{2})$};\n@@ -30 +27 @@\n\n-\\draw[] (5.5, 0) -- +(0, -1) node[pos=0, circle, fill=black, inner sep=0pt,minimum size=3pt] {{}} node[pos=1, draw, fill=white] (gate15) {$RZ(\\theta_{6})$};\n+\\draw[] (5.5, -1) node[draw, fill=white] (gate15) {$RZ(\\theta_{6})$};\n@@ -34 +30,0 @@\n\n-\\draw[] (9.1, -4) -- +(0, 4) node[pos=0, circle, fill=black, inner sep=0pt,minimum size=3pt] {{}} node[pos=1, draw, fill=white] (gate19) {$RZ(\\theta_{10})$};\n@@ -36 +31,0 @@\n\n-\\draw (0, 0) -- (10.0, 0);" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath}\n\\usepackage{amssymb}\n\\usepackage[usenames,dvipsnames]{xcolor}\n\\usepackage[utf8]{inputenc}\n\\usepackage{tcolorbox}\n\\usepackage{tikz}\n\\usetikzlibrary{quantikz}\n\\usetikzlibrary{calc}\n\\pgfdeclarelayer{bg}\n\\pgfsetlayers{bg,main}\n\n\\begin{document}\n\n\\begin{tikzpicture}[scale=0.8, transform shape]\n\\begin{scope}\n \\node[draw, fill=white] (gate1) at (0.5, -1) {$H$}; \n \\node[draw, fill=white] (gate2) at (0.5, -2) {$H$}; \n \\node[draw, fill=white] (gate3) at (0.5, -3) {$H$}; \n \\node[draw, fill=white] (gate4) at (0.5, -4) {$H$}; \n \\node[draw, fill=white] (gate6) at (1.9, -1) {$RZ(x_2)$}; \n \\node[draw, fill=white] (gate7) at (1.9, -2) {$RZ(x_1)$}; \n \\node[draw, fill=white] (gate8) at (1.9, -3) {$RZ(x_2)$}; \n \\node[draw, fill=white] (gate9) at (1.9, -4) {$RZ(x_1)$}; \n \\node[draw, fill=white] (gate11) at (3.7, -1) {$RY(\\theta_{2})$}; \n \\node[draw, fill=white] (gate12) at (3.7, -2) {$RY(\\theta_{3})$}; \n \\node[draw, fill=white] (gate13) at (3.7, -3) {$RY(\\theta_{4})$}; \n \\node[draw, fill=white] (gate14) at (3.7, -4) {$RY(\\theta_{5})$}; \n \\draw[] (5.5, -1) node[draw, fill=white] (gate15) {$RZ(\\theta_{6})$};\n \\draw[] (5.5, -2) -- +(0, -1) node[pos=0, circle, fill=black, inner sep=0pt,minimum size=3pt] {{}} node[pos=1, draw, fill=white] (gate16) {$RZ(\\theta_{8})$}; \n \\draw[] (7.3, -1) -- +(0, -1) node[pos=0, circle, fill=black, inner sep=0pt,minimum size=3pt] {{}} node[pos=1, draw, fill=white] (gate17) {$RZ(\\theta_{7})$}; \n \\draw[] (7.3, -3) -- +(0, -1) node[pos=0, circle, fill=black, inner sep=0pt,minimum size=3pt] {{}} node[pos=1, draw, fill=white] (gate18) {$RZ(\\theta_{9})$}; \n\\begin{pgfonlayer}{bg}\n \\draw (0, -1) -- (10.0, -1);\n \\draw (0, -2) -- (10.0, -2);\n \\draw (0, -3) -- (10.0, -3);\n \\draw (0, -4) -- (10.0, -4);\n\\end{pgfonlayer}\n\\end{scope}\n\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath}\n\\usepackage{amssymb}\n\\usepackage[usenames,dvipsnames]{xcolor}\n\\usepackage[utf8]{inputenc}\n\\usepackage{tcolorbox}\n\\usepackage{tikz}\n\\usetikzlibrary{quantikz}\n\\usetikzlibrary{calc}\n\\pgfdeclarelayer{bg}\n\\pgfsetlayers{bg,main}\n\n\\begin{document}\n\n\\begin{tikzpicture}[scale=0.8, transform shape]\n\\begin{scope}\n \\node[draw, fill=white] (gate1) at (0.5, -1) {$H$}; \n \\node[draw, fill=white] (gate2) at (0.5, -2) {$H$}; \n \\node[draw, fill=white] (gate3) at (0.5, -3) {$H$}; \n \\node[draw, fill=white] (gate4) at (0.5, -4) {$H$}; \n \\node[draw, fill=white] (gate6) at (1.9, -1) {$RZ(x_2)$}; \n \\node[draw, fill=white] (gate7) at (1.9, -2) {$RZ(x_1)$}; \n \\node[draw, fill=white] (gate8) at (1.9, -3) {$RZ(x_2)$}; \n \\node[draw, fill=white] (gate9) at (1.9, -4) {$RZ(x_1)$}; \n \\node[draw, fill=white] (gate11) at (3.7, -1) {$RY(\\theta_{2})$}; \n \\node[draw, fill=white] (gate12) at (3.7, -2) {$RY(\\theta_{3})$}; \n \\node[draw, fill=white] (gate13) at (3.7, -3) {$RY(\\theta_{4})$}; \n \\node[draw, fill=white] (gate14) at (3.7, -4) {$RY(\\theta_{5})$}; \n \\draw[] (5.5, -1) node[draw, fill=white] (gate15) {$RZ(\\theta_{6})$};\n \\draw[] (5.5, -2) -- +(0, -1) node[pos=0, circle, fill=black, inner sep=0pt,minimum size=3pt] {{}} node[pos=1, draw, fill=white] (gate16) {$RZ(\\theta_{8})$}; \n \\draw[] (7.3, -1) -- +(0, -1) node[pos=0, circle, fill=black, inner sep=0pt,minimum size=3pt] {{}} node[pos=1, draw, fill=white] (gate17) {$RZ(\\theta_{7})$}; \n \\draw[] (7.3, -3) -- +(0, -1) node[pos=0, circle, fill=black, inner sep=0pt,minimum size=3pt] {{}} node[pos=1, draw, fill=white] (gate18) {$RZ(\\theta_{9})$}; \n\\begin{pgfonlayer}{bg}\n \\draw (0, -1) -- (10.0, -1);\n \\draw (0, -2) -- (10.0, -2);\n \\draw (0, -3) -- (10.0, -3);\n \\draw (0, -4) -- (10.0, -4);\n\\end{pgfonlayer}\n\\end{scope}\n\\end{tikzpicture}\n\n\\end{document}" ]
[ 4 ]
ray_closer_observer
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{angles, quotes, decorations.markings} \tikzset{midarrow1/.style = {postaction=decorate, decoration={markings,mark=at position .8 with \arrow{stealth}}}} \tikzset{midarrow2/.style = {postaction=decorate, decoration={markings,mark=at position .4 with \arrow{stealth}}}} \tikzset{midarrow/.style={midarrow1, midarrow2}} \definecolor{lust}{rgb}{0.9, 0.13, 0.13} \definecolor{richelectricblue}{rgb}{0.03, 0.57, 0.82} \begin{document} \begin{tikzpicture} \draw[line width = 2, color = richelectricblue] (4,7.5) -- ++(0,1); \draw[color = lust, line width = 0.7, midarrow1] (-1,8) -- (4,8); \draw[color = lust, line width = 0.7, midarrow2] (4,8) -- +(3,-5) coordinate (C); \path[fill = richelectricblue!40] (2,8.25) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) ; \draw[line width = 0.5] (0, 8.1) -- (0,8.25) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0, 0.15); \path[fill = richelectricblue!40, rotate = 121] (0.96,-7.3) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) ; \draw[line width = 0.5, rotate = 121] (-1.04,-7.3) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0,0.50); \draw [fill = lust, draw = lust] (-1,8) circle [radius=0.1]; \draw[dashed, line width = 0.5] (4,8)coordinate(A) -- ++(3,0)coordinate(B); \pic[draw , "\small$\theta$", line width = 0.5, angle radius=0.5cm, angle eccentricity = 1.5] {angle=C--A--B}; \node[above] at (-1,8.2) {\scriptsize Source}; \node[above] at (1,8.5) {\scriptsize Guide}; \node at (4,9) {\scriptsize Barrier}; \node[rotate=32] at (7.15,2.7) {\scriptsize Observer}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} % Drawing \usepackage{tikz} % Tikz Library \usetikzlibrary{angles, quotes, decorations.markings} %Styles %%Arrow in the Middle \tikzset{midarrow1/.style = {postaction=decorate, decoration={markings,mark=at position .8 with \arrow{stealth}}}} \tikzset{midarrow2/.style = {postaction=decorate, decoration={markings,mark=at position .4 with \arrow{stealth}}}} \tikzset{midarrow/.style={midarrow1, midarrow2}} % Define Color \definecolor{lust}{rgb}{0.9, 0.13, 0.13} \definecolor{richelectricblue}{rgb}{0.03, 0.57, 0.82} \begin{document} \begin{tikzpicture} % Barrier \draw[line width = 2, color = richelectricblue] (4,7.5) -- ++(0,1); % Rays \draw[color = lust, line width = 0.7, midarrow1] (-1,8) -- (4,8); \draw[color = lust, line width = 0.7, midarrow2] (4,8) -- +(3,-5) coordinate (C); % Guide and Lens %% Top \path[fill = richelectricblue!40] (2,8.25) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) ; \draw[line width = 0.5] (0, 8.1) -- (0,8.25) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0, 0.15); %% Bottom \path[fill = richelectricblue!40, rotate = 121] (0.96,-7.3) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) ; \draw[line width = 0.5, rotate = 121] (-1.04,-7.3) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0,0.50); % Source \draw [fill = lust, draw = lust] (-1,8) circle [radius=0.1]; % Dashed \draw[dashed, line width = 0.5] (4,8)coordinate(A) -- ++(3,0)coordinate(B); % Angle \pic[draw , "\small$\theta$", line width = 0.5, angle radius=0.5cm, angle eccentricity = 1.5] {angle=C--A--B}; % Nodes \node[above] at (-1,8.2) {\scriptsize Source}; \node[above] at (1,8.5) {\scriptsize Guide}; \node at (4,9) {\scriptsize Barrier}; \node[rotate=32] at (7.15,2.7) {\scriptsize Observer}; \end{tikzpicture} \end{document}
Move the Diopter and the observer much closer to the barrier, as close as it can be without interfering with other existing drawings.
A ray going through a barrier, with an obsever close to the barrier.
medium
update
scientific
[ "@@ -13 +13 @@\n\n-\\draw[color = lust, line width = 0.7, midarrow2] (4,8) -- +(3,-5) coordinate (C);\n+\\draw[color = lust, line width = 0.7, midarrow2] (4,8) -- +(1.44,-2.4) coordinate (C);\n@@ -16,2 +16,2 @@\n\n-\\path[fill = richelectricblue!40, rotate = 121] (0.96,-7.3) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) ;\n-\\draw[line width = 0.5, rotate = 121] (-1.04,-7.3) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0,0.50);\n+\\path[fill = richelectricblue!40, rotate = 121] (4,-7.3) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) ;\n+\\draw[line width = 0.5, rotate = 121] (2,-7.3) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0,0.50);\n@@ -24 +24 @@\n\n-\\node[rotate=32] at (7.15,2.7) {\\scriptsize Observer};\n+\\node[rotate=32] at (5.6,5.3) {\\scriptsize Observer};" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\n\\usepackage{tikz}\n\n\\usetikzlibrary{angles, quotes, decorations.markings}\n\n\n\\tikzset{midarrow1/.style = {postaction=decorate, decoration={markings,mark=at position .8 with \\arrow{stealth}}}}\n\\tikzset{midarrow2/.style = {postaction=decorate, decoration={markings,mark=at position .4 with \\arrow{stealth}}}}\n\\tikzset{midarrow/.style={midarrow1, midarrow2}}\n\n\n\\definecolor{lust}{rgb}{0.9, 0.13, 0.13}\n\\definecolor{richelectricblue}{rgb}{0.03, 0.57, 0.82}\n\n\\begin{document}\n\t\n\t\\begin{tikzpicture}\n\t\t\n\t\t\\draw[line width = 2, color = richelectricblue] (4,7.5) -- ++(0,1);\n\t\t\n\t\t\\draw[color = lust, line width = 0.7, midarrow1] (-1,8) -- (4,8);\n\t\t\\draw[color = lust, line width = 0.7, midarrow2] (4,8) -- +(§rangei(1.44,0.1),§rangei(-2.4,0.1)) coordinate (C);\n\t\t\n\t\t\\path[fill = richelectricblue!40] (2,8.25) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) ;\n\t\t\\draw[line width = 0.5] (0, 8.1) -- (0,8.25) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0, 0.15);\n\t\t\\path[fill = richelectricblue!40, rotate = 121] (§rangei(4,0.25),-7.3) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) ;\n\t\t\\draw[line width = 0.5, rotate = 121] (§rangei(2,0.25),-7.3) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0,0.50);\n\t\t\n\t\t\\draw [fill = lust, draw = lust] (-1,8) circle [radius=0.1];\n\t\t\n\t\t\\draw[dashed, line width = 0.5] (4,8)coordinate(A) -- ++(3,0)coordinate(B);\n\t\t\n\t\t\\pic[draw , \"\\small$\\theta$\", line width = 0.5, angle radius=0.5cm, angle eccentricity = 1.5] {angle=C--A--B};\n\t\t\n\t\t\\node[above] at (-1,8.2) {\\scriptsize Source};\n\t\t\\node[above] at (1,8.5) {\\scriptsize Guide};\n\t\t\\node at (4,9) {\\scriptsize Barrier};\n\t\t\\node[rotate=32] at (§rangei(5.6,0.5),§rangei(5.3,0.5)) {\\scriptsize Observer}; \n\t\\end{tikzpicture}\n\t\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\n\\usepackage{tikz}\n\n\\usetikzlibrary{angles, quotes, decorations.markings}\n\n\n\\tikzset{midarrow1/.style = {postaction=decorate, decoration={markings,mark=at position .8 with \\arrow{stealth}}}}\n\\tikzset{midarrow2/.style = {postaction=decorate, decoration={markings,mark=at position .4 with \\arrow{stealth}}}}\n\\tikzset{midarrow/.style={midarrow1, midarrow2}}\n\n\n\\definecolor{lust}{rgb}{0.9, 0.13, 0.13}\n\\definecolor{richelectricblue}{rgb}{0.03, 0.57, 0.82}\n\n\\begin{document}\n\t\n\t\\begin{tikzpicture}\n\t\t\n\t\t\\draw[line width = 2, color = richelectricblue] (4,7.5) -- ++(0,1);\n\t\t\n\t\t\\draw[color = lust, line width = 0.7, midarrow1] (-1,8) -- (4,8);\n\t\t\\draw[color = lust, line width = 0.7, midarrow2] (4,8) -- +(1.44,-2.4) coordinate (C);\n\t\t\n\t\t\\path[fill = richelectricblue!40] (2,8.25) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) ;\n\t\t\\draw[line width = 0.5] (0, 8.1) -- (0,8.25) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0, 0.15);\n\t\t\\path[fill = richelectricblue!40, rotate = 121] (4,-7.3) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) ;\n\t\t\\draw[line width = 0.5, rotate = 121] (2,-7.3) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0,0.50);\n\t\t\n\t\t\\draw [fill = lust, draw = lust] (-1,8) circle [radius=0.1];\n\t\t\n\t\t\\draw[dashed, line width = 0.5] (4,8)coordinate(A) -- ++(3,0)coordinate(B);\n\t\t\n\t\t\\pic[draw , \"\\small$\\theta$\", line width = 0.5, angle radius=0.5cm, angle eccentricity = 1.5] {angle=C--A--B};\n\t\t\n\t\t\\node[above] at (-1,8.2) {\\scriptsize Source};\n\t\t\\node[above] at (1,8.5) {\\scriptsize Guide};\n\t\t\\node at (4,9) {\\scriptsize Barrier};\n\t\t\\node[rotate=32] at (5.6,5.3) {\\scriptsize Observer}; \n\t\\end{tikzpicture}\n\t\n\\end{document}" ]
[ 13, 3, 5 ]
ray_green_laser
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{angles, quotes, decorations.markings} \tikzset{midarrow1/.style = {postaction=decorate, decoration={markings,mark=at position .8 with \arrow{stealth}}}} \tikzset{midarrow2/.style = {postaction=decorate, decoration={markings,mark=at position .4 with \arrow{stealth}}}} \tikzset{midarrow/.style={midarrow1, midarrow2}} \definecolor{lust}{rgb}{0.9, 0.13, 0.13} \definecolor{richelectricblue}{rgb}{0.03, 0.57, 0.82} \begin{document} \begin{tikzpicture} \draw[line width = 2, color = richelectricblue] (4,7.5) -- ++(0,1); \draw[color = lust, line width = 0.7, midarrow1] (-1,8) -- (4,8); \draw[color = lust, line width = 0.7, midarrow2] (4,8) -- +(3,-5) coordinate (C); \path[fill = richelectricblue!40] (2,8.25) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) ; \draw[line width = 0.5] (0, 8.1) -- (0,8.25) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0, 0.15); \path[fill = richelectricblue!40, rotate = 121] (0.96,-7.3) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) ; \draw[line width = 0.5, rotate = 121] (-1.04,-7.3) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0,0.50); \draw [fill = lust, draw = lust] (-1,8) circle [radius=0.1]; \draw[dashed, line width = 0.5] (4,8)coordinate(A) -- ++(3,0)coordinate(B); \pic[draw , "\small$\theta$", line width = 0.5, angle radius=0.5cm, angle eccentricity = 1.5] {angle=C--A--B}; \node[above] at (-1,8.2) {\scriptsize Source}; \node[above] at (1,8.5) {\scriptsize Guide}; \node at (4,9) {\scriptsize Barrier}; \node[rotate=32] at (7.15,2.7) {\scriptsize Observer}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} % Drawing \usepackage{tikz} % Tikz Library \usetikzlibrary{angles, quotes, decorations.markings} %Styles %%Arrow in the Middle \tikzset{midarrow1/.style = {postaction=decorate, decoration={markings,mark=at position .8 with \arrow{stealth}}}} \tikzset{midarrow2/.style = {postaction=decorate, decoration={markings,mark=at position .4 with \arrow{stealth}}}} \tikzset{midarrow/.style={midarrow1, midarrow2}} % Define Color \definecolor{lust}{rgb}{0.9, 0.13, 0.13} \definecolor{richelectricblue}{rgb}{0.03, 0.57, 0.82} \begin{document} \begin{tikzpicture} % Barrier \draw[line width = 2, color = richelectricblue] (4,7.5) -- ++(0,1); % Rays \draw[color = lust, line width = 0.7, midarrow1] (-1,8) -- (4,8); \draw[color = lust, line width = 0.7, midarrow2] (4,8) -- +(3,-5) coordinate (C); % Guide and Lens %% Top \path[fill = richelectricblue!40] (2,8.25) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) ; \draw[line width = 0.5] (0, 8.1) -- (0,8.25) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0, 0.15); %% Bottom \path[fill = richelectricblue!40, rotate = 121] (0.96,-7.3) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) ; \draw[line width = 0.5, rotate = 121] (-1.04,-7.3) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0,0.50); % Source \draw [fill = lust, draw = lust] (-1,8) circle [radius=0.1]; % Dashed \draw[dashed, line width = 0.5] (4,8)coordinate(A) -- ++(3,0)coordinate(B); % Angle \pic[draw , "\small$\theta$", line width = 0.5, angle radius=0.5cm, angle eccentricity = 1.5] {angle=C--A--B}; % Nodes \node[above] at (-1,8.2) {\scriptsize Source}; \node[above] at (1,8.5) {\scriptsize Guide}; \node at (4,9) {\scriptsize Barrier}; \node[rotate=32] at (7.15,2.7) {\scriptsize Observer}; \end{tikzpicture} \end{document}
Make the laser green.
A green ray going through a barrier.
easy
update
scientific
[ "@@ -1 +1 @@\n\n-\\documentclass[tikz,border=5]{standalone}\n+\\documentclass[border=2pt]{standalone}\n@@ -8,0 +9 @@\n\n+\\definecolor{green}{rgb}{0.13, 0.9, 0.13}\n@@ -12,2 +13,2 @@\n\n-\\draw[color = lust, line width = 0.7, midarrow1] (-1,8) -- (4,8);\n-\\draw[color = lust, line width = 0.7, midarrow2] (4,8) -- +(3,-5) coordinate (C);\n+\\draw[color = green, line width = 0.7, midarrow1] (-1,8) -- (4,8);\n+\\draw[color = green, line width = 0.7, midarrow2] (4,8) -- +(3,-5) coordinate (C);\n@@ -17,2 +18,2 @@\n\n-\\draw[line width = 0.5, rotate = 121] (-1.04,-7.3) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0,0.50);\n-\\draw [fill = lust, draw = lust] (-1,8) circle [radius=0.1];\n+\\draw[line width = 0.5, rotate = 121] (-1.04,-7.3) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0,0.508);\n+\\draw [fill = green, draw = green] (-1,8) circle [radius=0.1];", "@@ -1 +1 @@\n\n-\\documentclass[tikz,border=5]{standalone}\n+\\documentclass[border=2pt]{standalone}\n@@ -7 +7 @@\n\n-\\definecolor{lust}{rgb}{0.9, 0.13, 0.13}\n+\\definecolor{lust}{rgb}{0.13, 0.9, 0.13}\n@@ -17 +17 @@\n\n-\\draw[line width = 0.5, rotate = 121] (-1.04,-7.3) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0,0.50);\n+\\draw[line width = 0.5, rotate = 121] (-1.04,-7.3) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0,0.508);", "@@ -1 +1 @@\n\n-\\documentclass[tikz,border=5]{standalone}\n+\\documentclass[border=2pt]{standalone}\n@@ -12,2 +12,2 @@\n\n-\\draw[color = lust, line width = 0.7, midarrow1] (-1,8) -- (4,8);\n-\\draw[color = lust, line width = 0.7, midarrow2] (4,8) -- +(3,-5) coordinate (C);\n+\\draw[color = green, line width = 0.7, midarrow1] (-1,8) -- (4,8);\n+\\draw[color = green, line width = 0.7, midarrow2] (4,8) -- +(3,-5) coordinate (C);\n@@ -17,2 +17,2 @@\n\n-\\draw[line width = 0.5, rotate = 121] (-1.04,-7.3) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0,0.50);\n-\\draw [fill = lust, draw = lust] (-1,8) circle [radius=0.1];\n+\\draw[line width = 0.5, rotate = 121] (-1.04,-7.3) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0,0.508);\n+\\draw [fill = green, draw = green] (-1,8) circle [radius=0.1];" ]
[ "\\documentclass[border=2pt]{standalone}\n\n\\usepackage{tikz}\n\n\\usetikzlibrary{angles, quotes, decorations.markings}\n\n\n\\tikzset{midarrow1/.style = {postaction=decorate, decoration={markings,mark=at position .8 with \\arrow{stealth}}}}\n\\tikzset{midarrow2/.style = {postaction=decorate, decoration={markings,mark=at position .4 with \\arrow{stealth}}}}\n\\tikzset{midarrow/.style={midarrow1, midarrow2}}\n\n\n\\definecolor{lust}{rgb}{0.9, 0.13, 0.13}\n\\definecolor{richelectricblue}{rgb}{0.03, 0.57, 0.82}\n\\definecolor{§def(green)}{rgb}{§rangei(0.13,0.13), §rangei(0.9,0.1), §rangei(0.13,0.13)}\n\n\\begin{document}\n\t\n\t\\begin{tikzpicture}\n\t\t\n\t\t\\draw[line width = 2, color = richelectricblue] (4,7.5) -- ++(0,1);\n\t\t\n\t\t\\draw[color = green, line width = 0.7, midarrow1] (-1,8) -- (4,8);\n\t\t\\draw[color = green, line width = 0.7, midarrow2] (4,8) -- +(3,-5) coordinate (C);\n\t\t\n\t\t\\path[fill = richelectricblue!40] (2,8.25) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) ;\n\t\t\\draw[line width = 0.5] (0, 8.1) -- (0,8.25) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0, 0.15);\n\t\t\\path[fill = richelectricblue!40, rotate = 121] (0.96,-7.3) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) ;\n\t\t\\draw[line width = 0.5, rotate = 121] (-1.04,-7.3) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0,0.508);\n\t\t\n\t\t\\draw [fill = green, draw = green] (-1,8) circle [radius=0.1];\n\t\t\n\t\t\\draw[dashed, line width = 0.5] (4,8)coordinate(A) -- ++(3,0)coordinate(B);\n\t\t\n\t\t\\pic[draw , \"\\small$\\theta$\", line width = 0.5, angle radius=0.5cm, angle eccentricity = 1.5] {angle=C--A--B};\n\t\t\n\t\t\\node[above] at (-1,8.2) {\\scriptsize Source};\n\t\t\\node[above] at (1,8.5) {\\scriptsize Guide};\n\t\t\\node at (4,9) {\\scriptsize Barrier};\n\t\t\\node[rotate=32] at (7.15,2.7) {\\scriptsize Observer}; \n\t\\end{tikzpicture}\n\t\n\\end{document}", "\\documentclass[border=2pt]{standalone}\n\n\\usepackage{tikz}\n\n\\usetikzlibrary{angles, quotes, decorations.markings}\n\n\n\\tikzset{midarrow1/.style = {postaction=decorate, decoration={markings,mark=at position .8 with \\arrow{stealth}}}}\n\\tikzset{midarrow2/.style = {postaction=decorate, decoration={markings,mark=at position .4 with \\arrow{stealth}}}}\n\\tikzset{midarrow/.style={midarrow1, midarrow2}}\n\n\n\\definecolor{§def(lust)}{rgb}{§rangei(0.13,0.13), §rangei(0.9,0.1), §rangei(0.13,0.13)}\n\\definecolor{richelectricblue}{rgb}{0.03, 0.57, 0.82}\n\n\\begin{document}\n\t\n\t\\begin{tikzpicture}\n\t\t\n\t\t\\draw[line width = 2, color = richelectricblue] (4,7.5) -- ++(0,1);\n\t\t\n\t\t\\draw[color = lust, line width = 0.7, midarrow1] (-1,8) -- (4,8);\n\t\t\\draw[color = lust, line width = 0.7, midarrow2] (4,8) -- +(3,-5) coordinate (C);\n\t\t\n\t\t\\path[fill = richelectricblue!40] (2,8.25) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) ;\n\t\t\\draw[line width = 0.5] (0, 8.1) -- (0,8.25) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0, 0.15);\n\t\t\\path[fill = richelectricblue!40, rotate = 121] (0.96,-7.3) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) ;\n\t\t\\draw[line width = 0.5, rotate = 121] (-1.04,-7.3) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0,0.508);\n\t\t\n\t\t\\draw [fill = lust, draw = lust] (-1,8) circle [radius=0.1];\n\t\t\n\t\t\\draw[dashed, line width = 0.5] (4,8)coordinate(A) -- ++(3,0)coordinate(B);\n\t\t\n\t\t\\pic[draw , \"\\small$\\theta$\", line width = 0.5, angle radius=0.5cm, angle eccentricity = 1.5] {angle=C--A--B};\n\t\t\n\t\t\\node[above] at (-1,8.2) {\\scriptsize Source};\n\t\t\\node[above] at (1,8.5) {\\scriptsize Guide};\n\t\t\\node at (4,9) {\\scriptsize Barrier};\n\t\t\\node[rotate=32] at (7.15,2.7) {\\scriptsize Observer}; \n\t\\end{tikzpicture}\n\t\n\\end{document}", "\\documentclass[border=2pt]{standalone}\n\n\\usepackage{tikz}\n\n\\usetikzlibrary{angles, quotes, decorations.markings}\n\n\n\\tikzset{midarrow1/.style = {postaction=decorate, decoration={markings,mark=at position .8 with \\arrow{stealth}}}}\n\\tikzset{midarrow2/.style = {postaction=decorate, decoration={markings,mark=at position .4 with \\arrow{stealth}}}}\n\\tikzset{midarrow/.style={midarrow1, midarrow2}}\n\n\n\\definecolor{lust}{rgb}{0.9, 0.13, 0.13}\n\\definecolor{richelectricblue}{rgb}{0.03, 0.57, 0.82}\n\n\\begin{document}\n\t\n\t\\begin{tikzpicture}\n\t\t\n\t\t\\draw[line width = 2, color = richelectricblue] (4,7.5) -- ++(0,1);\n\t\t\n\t\t\\draw[color = green, line width = 0.7, midarrow1] (-1,8) -- (4,8);\n\t\t\\draw[color = green, line width = 0.7, midarrow2] (4,8) -- +(3,-5) coordinate (C);\n\t\t\n\t\t\\path[fill = richelectricblue!40] (2,8.25) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) ;\n\t\t\\draw[line width = 0.5] (0, 8.1) -- (0,8.25) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0, 0.15);\n\t\t\\path[fill = richelectricblue!40, rotate = 121] (0.96,-7.3) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) ;\n\t\t\\draw[line width = 0.5, rotate = 121] (-1.04,-7.3) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0,0.508);\n\t\t\n\t\t\\draw [fill = green, draw = green] (-1,8) circle [radius=0.1];\n\t\t\n\t\t\\draw[dashed, line width = 0.5] (4,8)coordinate(A) -- ++(3,0)coordinate(B);\n\t\t\n\t\t\\pic[draw , \"\\small$\\theta$\", line width = 0.5, angle radius=0.5cm, angle eccentricity = 1.5] {angle=C--A--B};\n\t\t\n\t\t\\node[above] at (-1,8.2) {\\scriptsize Source};\n\t\t\\node[above] at (1,8.5) {\\scriptsize Guide};\n\t\t\\node at (4,9) {\\scriptsize Barrier};\n\t\t\\node[rotate=32] at (7.15,2.7) {\\scriptsize Observer}; \n\t\\end{tikzpicture}\n\t\n\\end{document}" ]
[ "\\documentclass[border=2pt]{standalone}\n\n\\usepackage{tikz}\n\n\\usetikzlibrary{angles, quotes, decorations.markings}\n\n\n\\tikzset{midarrow1/.style = {postaction=decorate, decoration={markings,mark=at position .8 with \\arrow{stealth}}}}\n\\tikzset{midarrow2/.style = {postaction=decorate, decoration={markings,mark=at position .4 with \\arrow{stealth}}}}\n\\tikzset{midarrow/.style={midarrow1, midarrow2}}\n\n\n\\definecolor{lust}{rgb}{0.9, 0.13, 0.13}\n\\definecolor{richelectricblue}{rgb}{0.03, 0.57, 0.82}\n\\definecolor{green}{rgb}{0.13, 0.9, 0.13}\n\n\\begin{document}\n\t\n\t\\begin{tikzpicture}\n\t\t\n\t\t\\draw[line width = 2, color = richelectricblue] (4,7.5) -- ++(0,1);\n\t\t\n\t\t\\draw[color = green, line width = 0.7, midarrow1] (-1,8) -- (4,8);\n\t\t\\draw[color = green, line width = 0.7, midarrow2] (4,8) -- +(3,-5) coordinate (C);\n\t\t\n\t\t\\path[fill = richelectricblue!40] (2,8.25) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) ;\n\t\t\\draw[line width = 0.5] (0, 8.1) -- (0,8.25) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0, 0.15);\n\t\t\\path[fill = richelectricblue!40, rotate = 121] (0.96,-7.3) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) ;\n\t\t\\draw[line width = 0.5, rotate = 121] (-1.04,-7.3) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0,0.508);\n\t\t\n\t\t\\draw [fill = green, draw = green] (-1,8) circle [radius=0.1];\n\t\t\n\t\t\\draw[dashed, line width = 0.5] (4,8)coordinate(A) -- ++(3,0)coordinate(B);\n\t\t\n\t\t\\pic[draw , \"\\small$\\theta$\", line width = 0.5, angle radius=0.5cm, angle eccentricity = 1.5] {angle=C--A--B};\n\t\t\n\t\t\\node[above] at (-1,8.2) {\\scriptsize Source};\n\t\t\\node[above] at (1,8.5) {\\scriptsize Guide};\n\t\t\\node at (4,9) {\\scriptsize Barrier};\n\t\t\\node[rotate=32] at (7.15,2.7) {\\scriptsize Observer}; \n\t\\end{tikzpicture}\n\t\n\\end{document}", "\\documentclass[border=2pt]{standalone}\n\n\\usepackage{tikz}\n\n\\usetikzlibrary{angles, quotes, decorations.markings}\n\n\n\\tikzset{midarrow1/.style = {postaction=decorate, decoration={markings,mark=at position .8 with \\arrow{stealth}}}}\n\\tikzset{midarrow2/.style = {postaction=decorate, decoration={markings,mark=at position .4 with \\arrow{stealth}}}}\n\\tikzset{midarrow/.style={midarrow1, midarrow2}}\n\n\n\\definecolor{lust}{rgb}{0.13, 0.9, 0.13}\n\\definecolor{richelectricblue}{rgb}{0.03, 0.57, 0.82}\n\n\\begin{document}\n\t\n\t\\begin{tikzpicture}\n\t\t\n\t\t\\draw[line width = 2, color = richelectricblue] (4,7.5) -- ++(0,1);\n\t\t\n\t\t\\draw[color = lust, line width = 0.7, midarrow1] (-1,8) -- (4,8);\n\t\t\\draw[color = lust, line width = 0.7, midarrow2] (4,8) -- +(3,-5) coordinate (C);\n\t\t\n\t\t\\path[fill = richelectricblue!40] (2,8.25) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) ;\n\t\t\\draw[line width = 0.5] (0, 8.1) -- (0,8.25) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0, 0.15);\n\t\t\\path[fill = richelectricblue!40, rotate = 121] (0.96,-7.3) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) ;\n\t\t\\draw[line width = 0.5, rotate = 121] (-1.04,-7.3) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0,0.508);\n\t\t\n\t\t\\draw [fill = lust, draw = lust] (-1,8) circle [radius=0.1];\n\t\t\n\t\t\\draw[dashed, line width = 0.5] (4,8)coordinate(A) -- ++(3,0)coordinate(B);\n\t\t\n\t\t\\pic[draw , \"\\small$\\theta$\", line width = 0.5, angle radius=0.5cm, angle eccentricity = 1.5] {angle=C--A--B};\n\t\t\n\t\t\\node[above] at (-1,8.2) {\\scriptsize Source};\n\t\t\\node[above] at (1,8.5) {\\scriptsize Guide};\n\t\t\\node at (4,9) {\\scriptsize Barrier};\n\t\t\\node[rotate=32] at (7.15,2.7) {\\scriptsize Observer}; \n\t\\end{tikzpicture}\n\t\n\\end{document}", "\\documentclass[border=2pt]{standalone}\n\n\\usepackage{tikz}\n\n\\usetikzlibrary{angles, quotes, decorations.markings}\n\n\n\\tikzset{midarrow1/.style = {postaction=decorate, decoration={markings,mark=at position .8 with \\arrow{stealth}}}}\n\\tikzset{midarrow2/.style = {postaction=decorate, decoration={markings,mark=at position .4 with \\arrow{stealth}}}}\n\\tikzset{midarrow/.style={midarrow1, midarrow2}}\n\n\n\\definecolor{lust}{rgb}{0.9, 0.13, 0.13}\n\\definecolor{richelectricblue}{rgb}{0.03, 0.57, 0.82}\n\n\\begin{document}\n\t\n\t\\begin{tikzpicture}\n\t\t\n\t\t\\draw[line width = 2, color = richelectricblue] (4,7.5) -- ++(0,1);\n\t\t\n\t\t\\draw[color = green, line width = 0.7, midarrow1] (-1,8) -- (4,8);\n\t\t\\draw[color = green, line width = 0.7, midarrow2] (4,8) -- +(3,-5) coordinate (C);\n\t\t\n\t\t\\path[fill = richelectricblue!40] (2,8.25) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) ;\n\t\t\\draw[line width = 0.5] (0, 8.1) -- (0,8.25) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0, 0.15);\n\t\t\\path[fill = richelectricblue!40, rotate = 121] (0.96,-7.3) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) ;\n\t\t\\draw[line width = 0.5, rotate = 121] (-1.04,-7.3) -- ++(2,0) ..controls +(0.1,0) and +(0.1,0).. ++(0,-0.5) -- ++(-2,0) -- +(0,0.508);\n\t\t\n\t\t\\draw [fill = green, draw = green] (-1,8) circle [radius=0.1];\n\t\t\n\t\t\\draw[dashed, line width = 0.5] (4,8)coordinate(A) -- ++(3,0)coordinate(B);\n\t\t\n\t\t\\pic[draw , \"\\small$\\theta$\", line width = 0.5, angle radius=0.5cm, angle eccentricity = 1.5] {angle=C--A--B};\n\t\t\n\t\t\\node[above] at (-1,8.2) {\\scriptsize Source};\n\t\t\\node[above] at (1,8.5) {\\scriptsize Guide};\n\t\t\\node at (4,9) {\\scriptsize Barrier};\n\t\t\\node[rotate=32] at (7.15,2.7) {\\scriptsize Observer}; \n\t\\end{tikzpicture}\n\t\n\\end{document}" ]
[ 12, 5, 26 ]
setswap_add_triangle
\documentclass[tikz,border=5]{standalone} \usepackage[T1]{fontenc} \usepackage{amsmath,amssymb,enumerate, amsthm} \usepackage[dvipsnames]{xcolor} \usepackage{tikz} \usetikzlibrary{shapes} \usepackage[many]{tcolorbox} \usetikzlibrary{decorations.pathreplacing} \usepackage{colortbl} \tikzset{ mystyle/.style={line width = 1.5pt, color = red!70!black} } \begin{document} \begin{tikzpicture}[scale=0.6, opt/.style={shape=regular polygon,regular polygon sides = 3,draw=black,minimum size=0.45cm,inner sep = 0pt}, local/.style={shape=rectangle, draw=black,minimum size= 0.35cm}, swap/.style={fill=gray!20!white,dotted} ] \pgfset{ foreach/parallel foreach/.style args={#1in#2via#3}{evaluate=#3 as #1 using {{#2}[#3-1]}}, } \def \n {4} \draw[swap] (0.6,-0.5) rectangle (2.4,3); \draw[swap] (2.6,-0.5) rectangle (4.4,3); \draw[swap] (4.6,-0.5) rectangle (6.4,3); \draw[swap] (6.6,-0.5) rectangle (7.4,3); \draw[swap] (7.6,-0.5) rectangle (9.4,3); \draw[swap] (9.6,-0.5) rectangle (11.4,3); \def \cc {black!20} \def \candc {blue!80!white} \def \srgtc {black} \def \srgtoc {yellow!80} \def \colorlistf{"\cc","\candc","\candc","\candc","\srgtc","\candc","\candc","\cc","\candc","\candc","\candc"} \def \colorlisto{"\cc","\srgtoc","\srgtoc","\srgtoc","\srgtoc","\srgtoc","\srgtoc","\cc","\srgtoc","\srgtoc"} \foreach \i [parallel foreach=\c in \colorlisto via \i] in {1,...,10}{ \node [opt,fill=\c] (o\i) at (\i,0) {}; } \foreach \i [parallel foreach=\c in \colorlistf via \i] in {1,...,6,8,9,10,11}{ \node [local,fill=\c] (f\i) at (\i,2.5) {}; } \node [local,fill=\candc,draw = red,very thick] (f7) at (7,2.5) {}; \draw (o1) edge[->,>=latex,gray,thick] (f1); \draw (o2) edge[->,>=latex,gray,thick,dashed] (f5); \draw (o3) edge[->,>=latex,gray,thick,dashed] (f5); \draw (o4) edge[->,>=latex,gray,thick,dashed] (f5); \draw (o5) edge[->,>=latex,gray,thick,dashed] (f5); \draw (o6) edge[->,>=latex,gray,thick,dashed] (f5); \draw (o7) edge[->,>=latex,gray,thick] (f7); \draw (o8) edge[->,>=latex,gray,thick] (f8); \draw (o9) edge[->,>=latex,gray,thick] (f8); \draw (o10) edge[->,>=latex,gray,thick] (f10); \node at (0,0) {$F^*$}; \node at (0,2.5) {$F$}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[T1]{fontenc} \usepackage{amsmath,amssymb,enumerate, amsthm} \usepackage[dvipsnames]{xcolor} \usepackage{tikz} \usetikzlibrary{shapes} \usepackage[many]{tcolorbox} \usetikzlibrary{decorations.pathreplacing} \usepackage{colortbl} \tikzset{ mystyle/.style={line width = 1.5pt, color = red!70!black} } \begin{document} \begin{tikzpicture}[scale=0.6, opt/.style={shape=regular polygon,regular polygon sides = 3,draw=black,minimum size=0.45cm,inner sep = 0pt}, local/.style={shape=rectangle, draw=black,minimum size= 0.35cm}, swap/.style={fill=gray!20!white,dotted} ] \pgfset{ foreach/parallel foreach/.style args={#1in#2via#3}{evaluate=#3 as #1 using {{#2}[#3-1]}}, } \def \n {4} \draw[swap] (0.6,-0.5) rectangle (2.4,3); \draw[swap] (2.6,-0.5) rectangle (4.4,3); \draw[swap] (4.6,-0.5) rectangle (6.4,3); \draw[swap] (6.6,-0.5) rectangle (7.4,3); \draw[swap] (7.6,-0.5) rectangle (9.4,3); \draw[swap] (9.6,-0.5) rectangle (11.4,3); \def \cc {black!20} \def \candc {blue!80!white} \def \srgtc {black} \def \srgtoc {yellow!80} \def \colorlistf{"\cc","\candc","\candc","\candc","\srgtc","\candc","\candc","\cc","\candc","\candc","\candc"} \def \colorlisto{"\cc","\srgtoc","\srgtoc","\srgtoc","\srgtoc","\srgtoc","\srgtoc","\cc","\srgtoc","\srgtoc"} \foreach \i [parallel foreach=\c in \colorlisto via \i] in {1,...,10}{ \node [opt,fill=\c] (o\i) at (\i,0) {}; } \foreach \i [parallel foreach=\c in \colorlistf via \i] in {1,...,6,8,9,10,11}{ \node [local,fill=\c] (f\i) at (\i,2.5) {}; } \node [local,fill=\candc,draw = red,very thick] (f7) at (7,2.5) {}; \draw (o1) edge[->,>=latex,gray,thick] (f1); \draw (o2) edge[->,>=latex,gray,thick,dashed] (f5); \draw (o3) edge[->,>=latex,gray,thick,dashed] (f5); \draw (o4) edge[->,>=latex,gray,thick,dashed] (f5); \draw (o5) edge[->,>=latex,gray,thick,dashed] (f5); \draw (o6) edge[->,>=latex,gray,thick,dashed] (f5); \draw (o7) edge[->,>=latex,gray,thick] (f7); \draw (o8) edge[->,>=latex,gray,thick] (f8); \draw (o9) edge[->,>=latex,gray,thick] (f8); \draw (o10) edge[->,>=latex,gray,thick] (f10); \node at (0,0) {$F^*$}; \node at (0,2.5) {$F$}; \end{tikzpicture} \end{document}
Add a last yellow triangle, without any arrow pointing from it.
A technical diagram, with as much triangle as squares.
easy
add
scientific
[ "@@ -37,0 +38 @@\n\n+\\node [opt,fill=\\srgtoc] (o11) at (11,0) {};", "@@ -34,2 +34,2 @@\n\n-\\def \\colorlisto{\"\\cc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\cc\",\"\\srgtoc\",\"\\srgtoc\"}\n-\\foreach \\i [parallel foreach=\\c in \\colorlisto via \\i] in {1,...,10}{\n+\\def \\colorlisto{\"\\cc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\cc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\"}\n+\\foreach \\i [parallel foreach=\\c in \\colorlisto via \\i] in {1,...,11}{", "@@ -53,0 +54 @@\n\n+\\node [opt,fill=\\srgtoc] (o11) at (11,0) {};" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[T1]{fontenc}\n\\usepackage{amsmath,amssymb,enumerate, amsthm}\n\\usepackage[dvipsnames]{xcolor}\n\\usepackage{tikz}\n\\usetikzlibrary{shapes}\n\\usepackage[many]{tcolorbox}\n\\usetikzlibrary{decorations.pathreplacing}\n\\usepackage{colortbl}\n\\tikzset{\n\tmystyle/.style={line width = 1.5pt, color = red!70!black}\n}\n\n\\begin{document}\n\n\\begin{tikzpicture}[scale=0.6,\n\t\topt/.style={shape=regular polygon,regular polygon sides = 3,draw=black,minimum size=0.45cm,inner sep = 0pt},\n\t\tlocal/.style={shape=rectangle, draw=black,minimum size= 0.35cm},\n\t\tswap/.style={fill=gray!20!white,dotted}\n]\n\\pgfset{\n foreach/parallel foreach/.style args={#1in#2via#3}{evaluate=#3 as #1 using {{#2}[#3-1]}},\n}\n\t\\def \\n {4}\n\t\n\t\\draw[swap] (0.6,-0.5) rectangle (2.4,3);\n\t\\draw[swap] (2.6,-0.5) rectangle (4.4,3);\t\n\t\\draw[swap] (4.6,-0.5) rectangle (6.4,3);\t\n\t\\draw[swap] (6.6,-0.5) rectangle (7.4,3);\n\t\\draw[swap] (7.6,-0.5) rectangle (9.4,3);\t\n\t\\draw[swap] (9.6,-0.5) rectangle (11.4,3);\t\t\n\n\t\\def \\cc {black!20}\n\t\\def \\candc {blue!80!white}\n\t\\def \\srgtc {black}\n\t\\def \\srgtoc {yellow!80}\n\t\n\t\\def \\colorlistf{\"\\cc\",\"\\candc\",\"\\candc\",\"\\candc\",\"\\srgtc\",\"\\candc\",\"\\candc\",\"\\cc\",\"\\candc\",\"\\candc\",\"\\candc\"}\t\n\t\\def \\colorlisto{\"\\cc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\cc\",\"\\srgtoc\",\"\\srgtoc\"}\t\n\n\n\t\\foreach \\i [parallel foreach=\\c in \\colorlisto via \\i] in {1,...,10}{\n\t\t\\node [opt,fill=\\c] (o\\i) at (\\i,0) {};\n\t}\n \\node [opt,fill=\\srgtoc] (o11) at (11,0) {};\n\t\\foreach \\i [parallel foreach=\\c in \\colorlistf via \\i] in {1,...,6,8,9,10,11}{\n\t\t\\node [local,fill=\\c] (f\\i) at (\\i,2.5) {};\n\t}\n\t\\node [local,fill=\\candc,draw = red,very thick] (f7) at (7,2.5) {};\n\t\n\t\\draw (o1) edge[->,>=latex,gray,thick] (f1);\n\t\\draw (o2) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\\draw (o3) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\\draw (o4) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\\draw (o5) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\\draw (o6) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\\draw (o7) edge[->,>=latex,gray,thick] (f7);\n\t\\draw (o8) edge[->,>=latex,gray,thick] (f8);\n\t\\draw (o9) edge[->,>=latex,gray,thick] (f8);\n\t\\draw (o10) edge[->,>=latex,gray,thick] (f10);\t\n\n\t\\node at (0,0) {$F^*$};\n\t\\node at (0,2.5) {$F$};\t\n\n\\end{tikzpicture}\n\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[T1]{fontenc}\n\\usepackage{amsmath,amssymb,enumerate, amsthm}\n\\usepackage[dvipsnames]{xcolor}\n\\usepackage{tikz}\n\\usetikzlibrary{shapes}\n\\usepackage[many]{tcolorbox}\n\\usetikzlibrary{decorations.pathreplacing}\n\\usepackage{colortbl}\n\\tikzset{\n\tmystyle/.style={line width = 1.5pt, color = red!70!black}\n}\n\n\\begin{document}\n\n\\begin{tikzpicture}[scale=0.6,\n\t\topt/.style={shape=regular polygon,regular polygon sides = 3,draw=black,minimum size=0.45cm,inner sep = 0pt},\n\t\tlocal/.style={shape=rectangle, draw=black,minimum size= 0.35cm},\n\t\tswap/.style={fill=gray!20!white,dotted}\n]\n\\pgfset{\n foreach/parallel foreach/.style args={#1in#2via#3}{evaluate=#3 as #1 using {{#2}[#3-1]}},\n}\n\t\\def \\n {4}\n\t\n\t\\draw[swap] (0.6,-0.5) rectangle (2.4,3);\n\t\\draw[swap] (2.6,-0.5) rectangle (4.4,3);\t\n\t\\draw[swap] (4.6,-0.5) rectangle (6.4,3);\t\n\t\\draw[swap] (6.6,-0.5) rectangle (7.4,3);\n\t\\draw[swap] (7.6,-0.5) rectangle (9.4,3);\t\n\t\\draw[swap] (9.6,-0.5) rectangle (11.4,3);\t\t\n\n\t\\def \\cc {black!20}\n\t\\def \\candc {blue!80!white}\n\t\\def \\srgtc {black}\n\t\\def \\srgtoc {yellow!80}\n\t\n\t\\def \\colorlistf{\"\\cc\",\"\\candc\",\"\\candc\",\"\\candc\",\"\\srgtc\",\"\\candc\",\"\\candc\",\"\\cc\",\"\\candc\",\"\\candc\",\"\\candc\"}\t\n\t\\def \\colorlisto{\"\\cc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\cc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\"}\t\n\n\n\t\\foreach \\i [parallel foreach=\\c in \\colorlisto via \\i] in {1,...,11}{\n\t\t\\node [opt,fill=\\c] (o\\i) at (\\i,0) {};\n\t}\n\t\\foreach \\i [parallel foreach=\\c in \\colorlistf via \\i] in {1,...,6,8,9,10,11}{\n\t\t\\node [local,fill=\\c] (f\\i) at (\\i,2.5) {};\n\t}\n\t\\node [local,fill=\\candc,draw = red,very thick] (f7) at (7,2.5) {};\n\t\n\t\\draw (o1) edge[->,>=latex,gray,thick] (f1);\n\t\\draw (o2) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\\draw (o3) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\\draw (o4) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\\draw (o5) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\\draw (o6) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\\draw (o7) edge[->,>=latex,gray,thick] (f7);\n\t\\draw (o8) edge[->,>=latex,gray,thick] (f8);\n\t\\draw (o9) edge[->,>=latex,gray,thick] (f8);\n\t\\draw (o10) edge[->,>=latex,gray,thick] (f10);\t\n\n\t\\node at (0,0) {$F^*$};\n\t\\node at (0,2.5) {$F$};\t\n\n\\end{tikzpicture}\n\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[T1]{fontenc}\n\\usepackage{amsmath,amssymb,enumerate, amsthm}\n\\usepackage[dvipsnames]{xcolor}\n\\usepackage{tikz}\n\\usetikzlibrary{shapes}\n\\usepackage[many]{tcolorbox}\n\\usetikzlibrary{decorations.pathreplacing}\n\\usepackage{colortbl}\n\\tikzset{\n\tmystyle/.style={line width = 1.5pt, color = red!70!black}\n}\n\n\\begin{document}\n\n\\begin{tikzpicture}[scale=0.6,\n\t\topt/.style={shape=regular polygon,regular polygon sides = 3,draw=black,minimum size=0.45cm,inner sep = 0pt},\n\t\tlocal/.style={shape=rectangle, draw=black,minimum size= 0.35cm},\n\t\tswap/.style={fill=gray!20!white,dotted}\n]\n\\pgfset{\n foreach/parallel foreach/.style args={#1in#2via#3}{evaluate=#3 as #1 using {{#2}[#3-1]}},\n}\n\t\\def \\n {4}\n\t\n\t\\draw[swap] (0.6,-0.5) rectangle (2.4,3);\n\t\\draw[swap] (2.6,-0.5) rectangle (4.4,3);\t\n\t\\draw[swap] (4.6,-0.5) rectangle (6.4,3);\t\n\t\\draw[swap] (6.6,-0.5) rectangle (7.4,3);\n\t\\draw[swap] (7.6,-0.5) rectangle (9.4,3);\t\n\t\\draw[swap] (9.6,-0.5) rectangle (11.4,3);\t\t\n\n\t\\def \\cc {black!20}\n\t\\def \\candc {blue!80!white}\n\t\\def \\srgtc {black}\n\t\\def \\srgtoc {yellow!80}\n\t\n\t\\def \\colorlistf{\"\\cc\",\"\\candc\",\"\\candc\",\"\\candc\",\"\\srgtc\",\"\\candc\",\"\\candc\",\"\\cc\",\"\\candc\",\"\\candc\",\"\\candc\"}\t\n\t\\def \\colorlisto{\"\\cc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\cc\",\"\\srgtoc\",\"\\srgtoc\"}\t\n\n\n\t\\foreach \\i [parallel foreach=\\c in \\colorlisto via \\i] in {1,...,10}{\n\t\t\\node [opt,fill=\\c] (o\\i) at (\\i,0) {};\n\t}\n\t\\foreach \\i [parallel foreach=\\c in \\colorlistf via \\i] in {1,...,6,8,9,10,11}{\n\t\t\\node [local,fill=\\c] (f\\i) at (\\i,2.5) {};\n\t\t}\n\t\t\\node [local,fill=\\candc,draw = red,very thick] (f7) at (7,2.5) {};\n\t\t\n\t\t\\draw (o1) edge[->,>=latex,gray,thick] (f1);\n\t\t\\draw (o2) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\t\\draw (o3) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\t\\draw (o4) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\t\\draw (o5) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\t\\draw (o6) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\t\\draw (o7) edge[->,>=latex,gray,thick] (f7);\n\t\t\\draw (o8) edge[->,>=latex,gray,thick] (f8);\n\t\t\\draw (o9) edge[->,>=latex,gray,thick] (f8);\n\t\t\\draw (o10) edge[->,>=latex,gray,thick] (f10);\t\n\t\t\n\t\t\\node at (0,0) {$F^*$};\n\t\t\\node at (0,2.5) {$F$};\t\n\t\t\n\t\t\\node [opt,fill=\\srgtoc] (o11) at (11,0) {};\n\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[T1]{fontenc}\n\\usepackage{amsmath,amssymb,enumerate, amsthm}\n\\usepackage[dvipsnames]{xcolor}\n\\usepackage{tikz}\n\\usetikzlibrary{shapes}\n\\usepackage[many]{tcolorbox}\n\\usetikzlibrary{decorations.pathreplacing}\n\\usepackage{colortbl}\n\\tikzset{\n\tmystyle/.style={line width = 1.5pt, color = red!70!black}\n}\n\n\\begin{document}\n\n\\begin{tikzpicture}[scale=0.6,\n\t\topt/.style={shape=regular polygon,regular polygon sides = 3,draw=black,minimum size=0.45cm,inner sep = 0pt},\n\t\tlocal/.style={shape=rectangle, draw=black,minimum size= 0.35cm},\n\t\tswap/.style={fill=gray!20!white,dotted}\n]\n\\pgfset{\n foreach/parallel foreach/.style args={#1in#2via#3}{evaluate=#3 as #1 using {{#2}[#3-1]}},\n}\n\t\\def \\n {4}\n\t\n\t\\draw[swap] (0.6,-0.5) rectangle (2.4,3);\n\t\\draw[swap] (2.6,-0.5) rectangle (4.4,3);\t\n\t\\draw[swap] (4.6,-0.5) rectangle (6.4,3);\t\n\t\\draw[swap] (6.6,-0.5) rectangle (7.4,3);\n\t\\draw[swap] (7.6,-0.5) rectangle (9.4,3);\t\n\t\\draw[swap] (9.6,-0.5) rectangle (11.4,3);\t\t\n\n\t\\def \\cc {black!20}\n\t\\def \\candc {blue!80!white}\n\t\\def \\srgtc {black}\n\t\\def \\srgtoc {yellow!80}\n\t\n\t\\def \\colorlistf{\"\\cc\",\"\\candc\",\"\\candc\",\"\\candc\",\"\\srgtc\",\"\\candc\",\"\\candc\",\"\\cc\",\"\\candc\",\"\\candc\",\"\\candc\"}\t\n\t\\def \\colorlisto{\"\\cc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\cc\",\"\\srgtoc\",\"\\srgtoc\"}\t\n\n\n\t\\foreach \\i [parallel foreach=\\c in \\colorlisto via \\i] in {1,...,10}{\n\t\t\\node [opt,fill=\\c] (o\\i) at (\\i,0) {};\n\t}\n \\node [opt,fill=\\srgtoc] (o11) at (11,0) {};\n\t\\foreach \\i [parallel foreach=\\c in \\colorlistf via \\i] in {1,...,6,8,9,10,11}{\n\t\t\\node [local,fill=\\c] (f\\i) at (\\i,2.5) {};\n\t}\n\t\\node [local,fill=\\candc,draw = red,very thick] (f7) at (7,2.5) {};\n\t\n\t\\draw (o1) edge[->,>=latex,gray,thick] (f1);\n\t\\draw (o2) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\\draw (o3) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\\draw (o4) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\\draw (o5) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\\draw (o6) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\\draw (o7) edge[->,>=latex,gray,thick] (f7);\n\t\\draw (o8) edge[->,>=latex,gray,thick] (f8);\n\t\\draw (o9) edge[->,>=latex,gray,thick] (f8);\n\t\\draw (o10) edge[->,>=latex,gray,thick] (f10);\t\n\n\t\\node at (0,0) {$F^*$};\n\t\\node at (0,2.5) {$F$};\t\n\n\\end{tikzpicture}\n\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[T1]{fontenc}\n\\usepackage{amsmath,amssymb,enumerate, amsthm}\n\\usepackage[dvipsnames]{xcolor}\n\\usepackage{tikz}\n\\usetikzlibrary{shapes}\n\\usepackage[many]{tcolorbox}\n\\usetikzlibrary{decorations.pathreplacing}\n\\usepackage{colortbl}\n\\tikzset{\n\tmystyle/.style={line width = 1.5pt, color = red!70!black}\n}\n\n\\begin{document}\n\n\\begin{tikzpicture}[scale=0.6,\n\t\topt/.style={shape=regular polygon,regular polygon sides = 3,draw=black,minimum size=0.45cm,inner sep = 0pt},\n\t\tlocal/.style={shape=rectangle, draw=black,minimum size= 0.35cm},\n\t\tswap/.style={fill=gray!20!white,dotted}\n]\n\\pgfset{\n foreach/parallel foreach/.style args={#1in#2via#3}{evaluate=#3 as #1 using {{#2}[#3-1]}},\n}\n\t\\def \\n {4}\n\t\n\t\\draw[swap] (0.6,-0.5) rectangle (2.4,3);\n\t\\draw[swap] (2.6,-0.5) rectangle (4.4,3);\t\n\t\\draw[swap] (4.6,-0.5) rectangle (6.4,3);\t\n\t\\draw[swap] (6.6,-0.5) rectangle (7.4,3);\n\t\\draw[swap] (7.6,-0.5) rectangle (9.4,3);\t\n\t\\draw[swap] (9.6,-0.5) rectangle (11.4,3);\t\t\n\n\t\\def \\cc {black!20}\n\t\\def \\candc {blue!80!white}\n\t\\def \\srgtc {black}\n\t\\def \\srgtoc {yellow!80}\n\t\n\t\\def \\colorlistf{\"\\cc\",\"\\candc\",\"\\candc\",\"\\candc\",\"\\srgtc\",\"\\candc\",\"\\candc\",\"\\cc\",\"\\candc\",\"\\candc\",\"\\candc\"}\t\n\t\\def \\colorlisto{\"\\cc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\cc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\"}\t\n\n\n\t\\foreach \\i [parallel foreach=\\c in \\colorlisto via \\i] in {1,...,11}{\n\t\t\\node [opt,fill=\\c] (o\\i) at (\\i,0) {};\n\t}\n\t\\foreach \\i [parallel foreach=\\c in \\colorlistf via \\i] in {1,...,6,8,9,10,11}{\n\t\t\\node [local,fill=\\c] (f\\i) at (\\i,2.5) {};\n\t}\n\t\\node [local,fill=\\candc,draw = red,very thick] (f7) at (7,2.5) {};\n\t\n\t\\draw (o1) edge[->,>=latex,gray,thick] (f1);\n\t\\draw (o2) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\\draw (o3) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\\draw (o4) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\\draw (o5) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\\draw (o6) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\\draw (o7) edge[->,>=latex,gray,thick] (f7);\n\t\\draw (o8) edge[->,>=latex,gray,thick] (f8);\n\t\\draw (o9) edge[->,>=latex,gray,thick] (f8);\n\t\\draw (o10) edge[->,>=latex,gray,thick] (f10);\t\n\n\t\\node at (0,0) {$F^*$};\n\t\\node at (0,2.5) {$F$};\t\n\n\\end{tikzpicture}\n\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[T1]{fontenc}\n\\usepackage{amsmath,amssymb,enumerate, amsthm}\n\\usepackage[dvipsnames]{xcolor}\n\\usepackage{tikz}\n\\usetikzlibrary{shapes}\n\\usepackage[many]{tcolorbox}\n\\usetikzlibrary{decorations.pathreplacing}\n\\usepackage{colortbl}\n\\tikzset{\n\tmystyle/.style={line width = 1.5pt, color = red!70!black}\n}\n\n\\begin{document}\n\n\\begin{tikzpicture}[scale=0.6,\n\t\topt/.style={shape=regular polygon,regular polygon sides = 3,draw=black,minimum size=0.45cm,inner sep = 0pt},\n\t\tlocal/.style={shape=rectangle, draw=black,minimum size= 0.35cm},\n\t\tswap/.style={fill=gray!20!white,dotted}\n]\n\\pgfset{\n foreach/parallel foreach/.style args={#1in#2via#3}{evaluate=#3 as #1 using {{#2}[#3-1]}},\n}\n\t\\def \\n {4}\n\t\n\t\\draw[swap] (0.6,-0.5) rectangle (2.4,3);\n\t\\draw[swap] (2.6,-0.5) rectangle (4.4,3);\t\n\t\\draw[swap] (4.6,-0.5) rectangle (6.4,3);\t\n\t\\draw[swap] (6.6,-0.5) rectangle (7.4,3);\n\t\\draw[swap] (7.6,-0.5) rectangle (9.4,3);\t\n\t\\draw[swap] (9.6,-0.5) rectangle (11.4,3);\t\t\n\n\t\\def \\cc {black!20}\n\t\\def \\candc {blue!80!white}\n\t\\def \\srgtc {black}\n\t\\def \\srgtoc {yellow!80}\n\t\n\t\\def \\colorlistf{\"\\cc\",\"\\candc\",\"\\candc\",\"\\candc\",\"\\srgtc\",\"\\candc\",\"\\candc\",\"\\cc\",\"\\candc\",\"\\candc\",\"\\candc\"}\t\n\t\\def \\colorlisto{\"\\cc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\cc\",\"\\srgtoc\",\"\\srgtoc\"}\t\n\n\n\t\\foreach \\i [parallel foreach=\\c in \\colorlisto via \\i] in {1,...,10}{\n\t\t\\node [opt,fill=\\c] (o\\i) at (\\i,0) {};\n\t}\n\t\\foreach \\i [parallel foreach=\\c in \\colorlistf via \\i] in {1,...,6,8,9,10,11}{\n\t\t\\node [local,fill=\\c] (f\\i) at (\\i,2.5) {};\n\t\t}\n\t\t\\node [local,fill=\\candc,draw = red,very thick] (f7) at (7,2.5) {};\n\t\t\n\t\t\\draw (o1) edge[->,>=latex,gray,thick] (f1);\n\t\t\\draw (o2) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\t\\draw (o3) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\t\\draw (o4) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\t\\draw (o5) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\t\\draw (o6) edge[->,>=latex,gray,thick,dashed] (f5);\n\t\t\\draw (o7) edge[->,>=latex,gray,thick] (f7);\n\t\t\\draw (o8) edge[->,>=latex,gray,thick] (f8);\n\t\t\\draw (o9) edge[->,>=latex,gray,thick] (f8);\n\t\t\\draw (o10) edge[->,>=latex,gray,thick] (f10);\t\n\t\t\n\t\t\\node at (0,0) {$F^*$};\n\t\t\\node at (0,2.5) {$F$};\t\n\t\t\n\t\t\\node [opt,fill=\\srgtoc] (o11) at (11,0) {};\n\\end{tikzpicture}\n\n\\end{document}" ]
[ 60 ]
setswap_second_removed
\documentclass[tikz,border=5]{standalone} \usepackage[T1]{fontenc} \usepackage{amsmath,amssymb,enumerate, amsthm} \usepackage[dvipsnames]{xcolor} \usepackage{tikz} \usetikzlibrary{shapes} \usepackage[many]{tcolorbox} \usetikzlibrary{decorations.pathreplacing} \usepackage{colortbl} \tikzset{ mystyle/.style={line width = 1.5pt, color = red!70!black} } \begin{document} \begin{tikzpicture}[scale=0.6, opt/.style={shape=regular polygon,regular polygon sides = 3,draw=black,minimum size=0.45cm,inner sep = 0pt}, local/.style={shape=rectangle, draw=black,minimum size= 0.35cm}, swap/.style={fill=gray!20!white,dotted} ] \pgfset{ foreach/parallel foreach/.style args={#1in#2via#3}{evaluate=#3 as #1 using {{#2}[#3-1]}}, } \def \n {4} \draw[swap] (0.6,-0.5) rectangle (2.4,3); \draw[swap] (2.6,-0.5) rectangle (4.4,3); \draw[swap] (4.6,-0.5) rectangle (6.4,3); \draw[swap] (6.6,-0.5) rectangle (7.4,3); \draw[swap] (7.6,-0.5) rectangle (9.4,3); \draw[swap] (9.6,-0.5) rectangle (11.4,3); \def \cc {black!20} \def \candc {blue!80!white} \def \srgtc {black} \def \srgtoc {yellow!80} \def \colorlistf{"\cc","\candc","\candc","\candc","\srgtc","\candc","\candc","\cc","\candc","\candc","\candc"} \def \colorlisto{"\cc","\srgtoc","\srgtoc","\srgtoc","\srgtoc","\srgtoc","\srgtoc","\cc","\srgtoc","\srgtoc"} \foreach \i [parallel foreach=\c in \colorlisto via \i] in {1,...,10}{ \node [opt,fill=\c] (o\i) at (\i,0) {}; } \foreach \i [parallel foreach=\c in \colorlistf via \i] in {1,...,6,8,9,10,11}{ \node [local,fill=\c] (f\i) at (\i,2.5) {}; } \node [local,fill=\candc,draw = red,very thick] (f7) at (7,2.5) {}; \draw (o1) edge[->,>=latex,gray,thick] (f1); \draw (o2) edge[->,>=latex,gray,thick,dashed] (f5); \draw (o3) edge[->,>=latex,gray,thick,dashed] (f5); \draw (o4) edge[->,>=latex,gray,thick,dashed] (f5); \draw (o5) edge[->,>=latex,gray,thick,dashed] (f5); \draw (o6) edge[->,>=latex,gray,thick,dashed] (f5); \draw (o7) edge[->,>=latex,gray,thick] (f7); \draw (o8) edge[->,>=latex,gray,thick] (f8); \draw (o9) edge[->,>=latex,gray,thick] (f8); \draw (o10) edge[->,>=latex,gray,thick] (f10); \node at (0,0) {$F^*$}; \node at (0,2.5) {$F$}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[T1]{fontenc} \usepackage{amsmath,amssymb,enumerate, amsthm} \usepackage[dvipsnames]{xcolor} \usepackage{tikz} \usetikzlibrary{shapes} \usepackage[many]{tcolorbox} \usetikzlibrary{decorations.pathreplacing} \usepackage{colortbl} \tikzset{ mystyle/.style={line width = 1.5pt, color = red!70!black} } \begin{document} \begin{tikzpicture}[scale=0.6, opt/.style={shape=regular polygon,regular polygon sides = 3,draw=black,minimum size=0.45cm,inner sep = 0pt}, local/.style={shape=rectangle, draw=black,minimum size= 0.35cm}, swap/.style={fill=gray!20!white,dotted} ] \pgfset{ foreach/parallel foreach/.style args={#1in#2via#3}{evaluate=#3 as #1 using {{#2}[#3-1]}}, } \def \n {4} \draw[swap] (0.6,-0.5) rectangle (2.4,3); \draw[swap] (2.6,-0.5) rectangle (4.4,3); \draw[swap] (4.6,-0.5) rectangle (6.4,3); \draw[swap] (6.6,-0.5) rectangle (7.4,3); \draw[swap] (7.6,-0.5) rectangle (9.4,3); \draw[swap] (9.6,-0.5) rectangle (11.4,3); \def \cc {black!20} \def \candc {blue!80!white} \def \srgtc {black} \def \srgtoc {yellow!80} \def \colorlistf{"\cc","\candc","\candc","\candc","\srgtc","\candc","\candc","\cc","\candc","\candc","\candc"} \def \colorlisto{"\cc","\srgtoc","\srgtoc","\srgtoc","\srgtoc","\srgtoc","\srgtoc","\cc","\srgtoc","\srgtoc"} \foreach \i [parallel foreach=\c in \colorlisto via \i] in {1,...,10}{ \node [opt,fill=\c] (o\i) at (\i,0) {}; } \foreach \i [parallel foreach=\c in \colorlistf via \i] in {1,...,6,8,9,10,11}{ \node [local,fill=\c] (f\i) at (\i,2.5) {}; } \node [local,fill=\candc,draw = red,very thick] (f7) at (7,2.5) {}; \draw (o1) edge[->,>=latex,gray,thick] (f1); \draw (o2) edge[->,>=latex,gray,thick,dashed] (f5); \draw (o3) edge[->,>=latex,gray,thick,dashed] (f5); \draw (o4) edge[->,>=latex,gray,thick,dashed] (f5); \draw (o5) edge[->,>=latex,gray,thick,dashed] (f5); \draw (o6) edge[->,>=latex,gray,thick,dashed] (f5); \draw (o7) edge[->,>=latex,gray,thick] (f7); \draw (o8) edge[->,>=latex,gray,thick] (f8); \draw (o9) edge[->,>=latex,gray,thick] (f8); \draw (o10) edge[->,>=latex,gray,thick] (f10); \node at (0,0) {$F^*$}; \node at (0,2.5) {$F$}; \end{tikzpicture} \end{document}
Remove the second gray container and its content.
A technical diagram, with five gray dotted areas.
hard
remove
scientific
[ "@@ -25,2 +25,2 @@\n\n-\\draw[swap] (4.6,-0.5) rectangle (6.4,3);\n-\\draw[swap] (6.6,-0.5) rectangle (7.4,3);\n+\\draw[swap] (4.6,-0.5) rectangle (5.4,3);\n+\\draw[swap] (5.6,-0.5) rectangle (7.4,3);\n@@ -28 +27,0 @@\n\n-\\draw[swap] (9.6,-0.5) rectangle (11.4,3);\n@@ -33,3 +32,3 @@\n\n-\\def \\colorlistf{\"\\cc\",\"\\candc\",\"\\candc\",\"\\candc\",\"\\srgtc\",\"\\candc\",\"\\candc\",\"\\cc\",\"\\candc\",\"\\candc\",\"\\candc\"}\n-\\def \\colorlisto{\"\\cc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\cc\",\"\\srgtoc\",\"\\srgtoc\"}\n-\\foreach \\i [parallel foreach=\\c in \\colorlisto via \\i] in {1,...,10}{\n+\\def \\colorlistf{\"\\cc\",\"\\candc\",\"\\srgtc\",\"\\candc\",\"\\candc\",\"\\cc\",\"\\candc\",\"\\candc\",\"\\candc\"}\n+\\def \\colorlisto{\"\\cc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\cc\",\"\\srgtoc\",\"\\srgtoc\"}\n+\\foreach \\i [parallel foreach=\\c in \\colorlisto via \\i] in {1,...,8}{\n@@ -38 +37 @@\n\n-\\foreach \\i [parallel foreach=\\c in \\colorlistf via \\i] in {1,...,6,8,9,10,11}{\n+\\foreach \\i [parallel foreach=\\c in \\colorlistf via \\i] in {1,...,6,7,8,9}{\n@@ -41 +40 @@\n\n-\\node [local,fill=\\candc,draw = red,very thick] (f7) at (7,2.5) {};\n+\\node [local,fill=\\candc,draw = red,very thick] (f5) at (5,2.5) {};\n@@ -43,6 +42,6 @@\n\n-\\draw (o2) edge[->,>=latex,gray,thick,dashed] (f5);\n-\\draw (o3) edge[->,>=latex,gray,thick,dashed] (f5);\n-\\draw (o4) edge[->,>=latex,gray,thick,dashed] (f5);\n-\\draw (o5) edge[->,>=latex,gray,thick,dashed] (f5);\n-\\draw (o6) edge[->,>=latex,gray,thick,dashed] (f5);\n-\\draw (o7) edge[->,>=latex,gray,thick] (f7);\n+\\draw (o2) edge[->,>=latex,gray,thick,dashed] (f3);\n+\\draw (o3) edge[->,>=latex,gray,thick,dashed] (f3);\n+\\draw (o4) edge[->,>=latex,gray,thick,dashed] (f3);\n+\\draw (o5) edge[->,>=latex,gray,thick] (f5);\n+\\draw (o6) edge[->,>=latex,gray,thick] (f6);\n+\\draw (o7) edge[->,>=latex,gray,thick] (f6);\n@@ -50,2 +48,0 @@\n\n-\\draw (o9) edge[->,>=latex,gray,thick] (f8);\n-\\draw (o10) edge[->,>=latex,gray,thick] (f10);" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[T1]{fontenc}\n\\usepackage{amsmath,amssymb,enumerate, amsthm}\n\\usepackage[dvipsnames]{xcolor}\n\\usepackage{tikz}\n\\usetikzlibrary{shapes}\n\\usepackage[many]{tcolorbox}\n\\usetikzlibrary{decorations.pathreplacing}\n\\usepackage{colortbl}\n\\tikzset{\n\tmystyle/.style={line width = 1.5pt, color = red!70!black}\n}\n\n\\begin{document}\n\n\\begin{tikzpicture}[scale=0.6,\n\t\topt/.style={shape=regular polygon,regular polygon sides = 3,draw=black,minimum size=0.45cm,inner sep = 0pt},\n\t\tlocal/.style={shape=rectangle, draw=black,minimum size= 0.35cm},\n\t\tswap/.style={fill=gray!20!white,dotted}\n]\n\\pgfset{\n foreach/parallel foreach/.style args={#1in#2via#3}{evaluate=#3 as #1 using {{#2}[#3-1]}},\n}\n\t\\def \\n {4}\n\t\n\t\\draw[swap] (0.6,-0.5) rectangle (2.4,3);\n\t\\draw[swap] (2.6,-0.5) rectangle (4.4,3);\t\n\t\\draw[swap] (4.6,-0.5) rectangle (5.4,3);\t\n\t\\draw[swap] (5.6,-0.5) rectangle (7.4,3);\n\t\\draw[swap] (7.6,-0.5) rectangle (9.4,3);\t\n\n\t\\def \\cc {black!20}\n\t\\def \\candc {blue!80!white}\n\t\\def \\srgtc {black}\n\t\\def \\srgtoc {yellow!80}\n\t\n\t\\def \\colorlistf{\"\\cc\",\"\\candc\",\"\\srgtc\",\"\\candc\",\"\\candc\",\"\\cc\",\"\\candc\",\"\\candc\",\"\\candc\"}\t\n\t\\def \\colorlisto{\"\\cc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\cc\",\"\\srgtoc\",\"\\srgtoc\"}\t\n\n\n\t\\foreach \\i [parallel foreach=\\c in \\colorlisto via \\i] in {1,...,8}{\n\t\t\\node [opt,fill=\\c] (o\\i) at (\\i,0) {};\n\t}\n\t\\foreach \\i [parallel foreach=\\c in \\colorlistf via \\i] in {1,...,6,7,8,9}{\n\t\t\\node [local,fill=\\c] (f\\i) at (\\i,2.5) {};\n\t}\n\t\\node [local,fill=\\candc,draw = red,very thick] (f5) at (5,2.5) {};\n\t\n\t\\draw (o1) edge[->,>=latex,gray,thick] (f1);\n\t\\draw (o2) edge[->,>=latex,gray,thick,dashed] (f3);\n\t\\draw (o3) edge[->,>=latex,gray,thick,dashed] (f3);\n\t\\draw (o4) edge[->,>=latex,gray,thick,dashed] (f3);\n\t\\draw (o5) edge[->,>=latex,gray,thick] (f5);\n\t\\draw (o6) edge[->,>=latex,gray,thick] (f6);\n\t\\draw (o7) edge[->,>=latex,gray,thick] (f6);\n\t\\draw (o8) edge[->,>=latex,gray,thick] (f8);\t\n\n\t\\node at (0,0) {$F^*$};\n\t\\node at (0,2.5) {$F$};\t\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[T1]{fontenc}\n\\usepackage{amsmath,amssymb,enumerate, amsthm}\n\\usepackage[dvipsnames]{xcolor}\n\\usepackage{tikz}\n\\usetikzlibrary{shapes}\n\\usepackage[many]{tcolorbox}\n\\usetikzlibrary{decorations.pathreplacing}\n\\usepackage{colortbl}\n\\tikzset{\n\tmystyle/.style={line width = 1.5pt, color = red!70!black}\n}\n\n\\begin{document}\n\n\\begin{tikzpicture}[scale=0.6,\n\t\topt/.style={shape=regular polygon,regular polygon sides = 3,draw=black,minimum size=0.45cm,inner sep = 0pt},\n\t\tlocal/.style={shape=rectangle, draw=black,minimum size= 0.35cm},\n\t\tswap/.style={fill=gray!20!white,dotted}\n]\n\\pgfset{\n foreach/parallel foreach/.style args={#1in#2via#3}{evaluate=#3 as #1 using {{#2}[#3-1]}},\n}\n\t\\def \\n {4}\n\t\n\t\\draw[swap] (0.6,-0.5) rectangle (2.4,3);\n\t\\draw[swap] (2.6,-0.5) rectangle (4.4,3);\t\n\t\\draw[swap] (4.6,-0.5) rectangle (5.4,3);\t\n\t\\draw[swap] (5.6,-0.5) rectangle (7.4,3);\n\t\\draw[swap] (7.6,-0.5) rectangle (9.4,3);\t\n\n\t\\def \\cc {black!20}\n\t\\def \\candc {blue!80!white}\n\t\\def \\srgtc {black}\n\t\\def \\srgtoc {yellow!80}\n\t\n\t\\def \\colorlistf{\"\\cc\",\"\\candc\",\"\\srgtc\",\"\\candc\",\"\\candc\",\"\\cc\",\"\\candc\",\"\\candc\",\"\\candc\"}\t\n\t\\def \\colorlisto{\"\\cc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\srgtoc\",\"\\cc\",\"\\srgtoc\",\"\\srgtoc\"}\t\n\n\n\t\\foreach \\i [parallel foreach=\\c in \\colorlisto via \\i] in {1,...,8}{\n\t\t\\node [opt,fill=\\c] (o\\i) at (\\i,0) {};\n\t}\n\t\\foreach \\i [parallel foreach=\\c in \\colorlistf via \\i] in {1,...,6,7,8,9}{\n\t\t\\node [local,fill=\\c] (f\\i) at (\\i,2.5) {};\n\t}\n\t\\node [local,fill=\\candc,draw = red,very thick] (f5) at (5,2.5) {};\n\t\n\t\\draw (o1) edge[->,>=latex,gray,thick] (f1);\n\t\\draw (o2) edge[->,>=latex,gray,thick,dashed] (f3);\n\t\\draw (o3) edge[->,>=latex,gray,thick,dashed] (f3);\n\t\\draw (o4) edge[->,>=latex,gray,thick,dashed] (f3);\n\t\\draw (o5) edge[->,>=latex,gray,thick] (f5);\n\t\\draw (o6) edge[->,>=latex,gray,thick] (f6);\n\t\\draw (o7) edge[->,>=latex,gray,thick] (f6);\n\t\\draw (o8) edge[->,>=latex,gray,thick] (f8);\t\n\n\t\\node at (0,0) {$F^*$};\n\t\\node at (0,2.5) {$F$};\t\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ 1 ]
shark_bigger_dorsal_fin
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ shark/.pic={ \tikzset{x=3cm/22,y=3cm/22,shift={(-8,-11)}} \fill [BlueGrey200] (2,16.75) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (3,16.25) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (1,17) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (2,15.5) -- ++(-.5,-1) -- ++(1,0) -- cycle (3,15) -- ++(-.5,-1) -- ++(1,0) -- cycle; \fill [BlueGrey700] (6,12) .. controls (5,11) and (5,8) .. (6,7) .. controls (7,8) and (7,9) .. (8,10) .. controls (8,11) and (7,12) .. (6,12)-- cycle; \fill [BlueGrey500] (0,20) .. controls (0,19) and (0,18) .. (1,17) .. controls (3,16) and (4,16) .. (4,15) .. controls (4,14) and (2,15) .. (1,15) .. controls (2,13) and (3,12) .. (5,10) .. controls (7,8) and (11,6) .. (14,5) .. controls (14,3) and (14,1) .. (15,0) .. controls (15,2) and (15,3) .. (16,4) .. controls (17,5) and (18,6) .. (20,6) .. controls (19,7) and (16,7) .. (15,6) .. controls (14,10) and (11,15) .. (9,17) .. controls (7,19) and (3,20) .. (0,20) -- cycle; \fill [BlueGrey100] (0,20) .. controls (0,19) and (0,18) .. (1,17) .. controls (3,16) and (4,16) .. (4,15) .. controls (4,14) and (2,15) .. (1,15) .. controls (2,13) and (3,12) .. (5,10) .. controls (7,8) and (11,6) .. (14,5) .. controls (13,8) and (7,8) .. (6,12) .. controls (5,16) and (2,19) .. (0,20) -- cycle; \fill [BlueGrey500] (3,13) .. controls (2,12) and (2,9) .. (3,8) .. controls (4,9) and (4,10) .. (5,11) .. controls (5,12) and (4,13) .. (3,13) -- cycle; \fill [BlueGrey500] (9,18) .. controls (8,18) and (7.5,17.5) .. (7,17) .. controls (7,16) and (9,14) .. (10,14) .. controls (10,15) and (11,17) .. (12,17) .. controls (11,18) and (10,18) .. (9,18) -- cycle; \fill [BlueGrey800] (6,17.5) circle [radius=0.5]; } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {shark}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ shark/.pic={ \tikzset{x=3cm/22,y=3cm/22,shift={(-8,-11)}} \fill [BlueGrey200] (2,16.75) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (3,16.25) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (1,17) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (2,15.5) -- ++(-.5,-1) -- ++(1,0) -- cycle (3,15) -- ++(-.5,-1) -- ++(1,0) -- cycle; \fill [BlueGrey700] (6,12) .. controls (5,11) and (5,8) .. (6,7) .. controls (7,8) and (7,9) .. (8,10) .. controls (8,11) and (7,12) .. (6,12)-- cycle; \fill [BlueGrey500] (0,20) .. controls (0,19) and (0,18) .. (1,17) .. controls (3,16) and (4,16) .. (4,15) .. controls (4,14) and (2,15) .. (1,15) .. controls (2,13) and (3,12) .. (5,10) .. controls (7,8) and (11,6) .. (14,5) .. controls (14,3) and (14,1) .. (15,0) .. controls (15,2) and (15,3) .. (16,4) .. controls (17,5) and (18,6) .. (20,6) .. controls (19,7) and (16,7) .. (15,6) .. controls (14,10) and (11,15) .. (9,17) .. controls (7,19) and (3,20) .. (0,20) -- cycle; \fill [BlueGrey100] (0,20) .. controls (0,19) and (0,18) .. (1,17) .. controls (3,16) and (4,16) .. (4,15) .. controls (4,14) and (2,15) .. (1,15) .. controls (2,13) and (3,12) .. (5,10) .. controls (7,8) and (11,6) .. (14,5) .. controls (13,8) and (7,8) .. (6,12) .. controls (5,16) and (2,19) .. (0,20) -- cycle; \fill [BlueGrey500] (3,13) .. controls (2,12) and (2,9) .. (3,8) .. controls (4,9) and (4,10) .. (5,11) .. controls (5,12) and (4,13) .. (3,13) -- cycle; \fill [BlueGrey500] (9,18) .. controls (8,18) and (7.5,17.5) .. (7,17) .. controls (7,16) and (9,14) .. (10,14) .. controls (10,15) and (11,17) .. (12,17) .. controls (11,18) and (10,18) .. (9,18) -- cycle; \fill [BlueGrey800] (6,17.5) circle [radius=0.5]; } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {shark}; \end{tikzpicture} \end{document}
Make the dorsal fin of the shark longer and pointy
A shark with a long and pointy dorsal fin
medium
update
animal
[ "@@ -43 +43 @@\n\n-.. controls (10,15) and (11,17) .. (12,17)\n+.. controls (10,15) and (13,17) .. (14,17)" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\nshark/.pic={\n\\tikzset{x=3cm/22,y=3cm/22,shift={(-8,-11)}}\n\\fill [BlueGrey200]\n (2,16.75) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (3,16.25) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (1,17) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (2,15.5) -- ++(-.5,-1) -- ++(1,0) -- cycle\n (3,15) -- ++(-.5,-1) -- ++(1,0) -- cycle;\n\\fill [BlueGrey700] (6,12)\n .. controls (5,11) and (5,8) .. (6,7)\n .. controls (7,8) and (7,9) .. (8,10)\n .. controls (8,11) and (7,12) .. (6,12)-- cycle;\n\\fill [BlueGrey500] (0,20)\n .. controls (0,19) and (0,18) .. (1,17)\n .. controls (3,16) and (4,16) .. (4,15)\n .. controls (4,14) and (2,15) .. (1,15)\n .. controls (2,13) and (3,12) .. (5,10)\n .. controls (7,8) and (11,6) .. (14,5)\n .. controls (14,3) and (14,1) .. (15,0)\n .. controls (15,2) and (15,3) .. (16,4)\n .. controls (17,5) and (18,6) .. (20,6)\n .. controls (19,7) and (16,7) .. (15,6)\n .. controls (14,10) and (11,15) .. (9,17)\n .. controls (7,19) and (3,20) .. (0,20) -- cycle;\n\\fill [BlueGrey100] (0,20)\n .. controls (0,19) and (0,18) .. (1,17)\n .. controls (3,16) and (4,16) .. (4,15)\n .. controls (4,14) and (2,15) .. (1,15)\n .. controls (2,13) and (3,12) .. (5,10)\n .. controls (7,8) and (11,6) .. (14,5)\n .. controls (13,8) and (7,8) .. (6,12)\n .. controls (5,16) and (2,19) .. (0,20) -- cycle;\n\\fill [BlueGrey500] (3,13)\n .. controls (2,12) and (2,9) .. (3,8)\n .. controls (4,9) and (4,10) .. (5,11)\n .. controls (5,12) and (4,13) .. (3,13) -- cycle;\n\\fill [BlueGrey500] (9,18)\n .. controls (8,18) and (7.5,17.5) .. (7,17)\n .. controls (7,16) and (9,14) .. (10,14)\n .. controls (10,15) and (§rangei(13,1),17) .. (§rangei(14,1),17)\n .. controls (11,18) and (10,18) .. (9,18) -- cycle;\n\\fill [BlueGrey800] (6,17.5) circle [radius=0.5];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {shark};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\nshark/.pic={\n\\tikzset{x=3cm/22,y=3cm/22,shift={(-8,-11)}}\n\\fill [BlueGrey200]\n (2,16.75) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (3,16.25) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (1,17) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (2,15.5) -- ++(-.5,-1) -- ++(1,0) -- cycle\n (3,15) -- ++(-.5,-1) -- ++(1,0) -- cycle;\n\\fill [BlueGrey700] (6,12)\n .. controls (5,11) and (5,8) .. (6,7)\n .. controls (7,8) and (7,9) .. (8,10)\n .. controls (8,11) and (7,12) .. (6,12)-- cycle;\n\\fill [BlueGrey500] (0,20)\n .. controls (0,19) and (0,18) .. (1,17)\n .. controls (3,16) and (4,16) .. (4,15)\n .. controls (4,14) and (2,15) .. (1,15)\n .. controls (2,13) and (3,12) .. (5,10)\n .. controls (7,8) and (11,6) .. (14,5)\n .. controls (14,3) and (14,1) .. (15,0)\n .. controls (15,2) and (15,3) .. (16,4)\n .. controls (17,5) and (18,6) .. (20,6)\n .. controls (19,7) and (16,7) .. (15,6)\n .. controls (14,10) and (11,15) .. (9,17)\n .. controls (7,19) and (3,20) .. (0,20) -- cycle;\n\\fill [BlueGrey100] (0,20)\n .. controls (0,19) and (0,18) .. (1,17)\n .. controls (3,16) and (4,16) .. (4,15)\n .. controls (4,14) and (2,15) .. (1,15)\n .. controls (2,13) and (3,12) .. (5,10)\n .. controls (7,8) and (11,6) .. (14,5)\n .. controls (13,8) and (7,8) .. (6,12)\n .. controls (5,16) and (2,19) .. (0,20) -- cycle;\n\\fill [BlueGrey500] (3,13)\n .. controls (2,12) and (2,9) .. (3,8)\n .. controls (4,9) and (4,10) .. (5,11)\n .. controls (5,12) and (4,13) .. (3,13) -- cycle;\n\\fill [BlueGrey500] (9,18)\n .. controls (8,18) and (7.5,17.5) .. (7,17)\n .. controls (7,16) and (9,14) .. (10,14)\n .. controls (10,15) and (13,17) .. (14,17)\n .. controls (11,18) and (10,18) .. (9,18) -- cycle;\n\\fill [BlueGrey800] (6,17.5) circle [radius=0.5];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {shark};\n\\end{tikzpicture}\n\\end{document}" ]
[ 4, 4 ]
shark_blue
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ shark/.pic={ \tikzset{x=3cm/22,y=3cm/22,shift={(-8,-11)}} \fill [BlueGrey200] (2,16.75) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (3,16.25) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (1,17) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (2,15.5) -- ++(-.5,-1) -- ++(1,0) -- cycle (3,15) -- ++(-.5,-1) -- ++(1,0) -- cycle; \fill [BlueGrey700] (6,12) .. controls (5,11) and (5,8) .. (6,7) .. controls (7,8) and (7,9) .. (8,10) .. controls (8,11) and (7,12) .. (6,12)-- cycle; \fill [BlueGrey500] (0,20) .. controls (0,19) and (0,18) .. (1,17) .. controls (3,16) and (4,16) .. (4,15) .. controls (4,14) and (2,15) .. (1,15) .. controls (2,13) and (3,12) .. (5,10) .. controls (7,8) and (11,6) .. (14,5) .. controls (14,3) and (14,1) .. (15,0) .. controls (15,2) and (15,3) .. (16,4) .. controls (17,5) and (18,6) .. (20,6) .. controls (19,7) and (16,7) .. (15,6) .. controls (14,10) and (11,15) .. (9,17) .. controls (7,19) and (3,20) .. (0,20) -- cycle; \fill [BlueGrey100] (0,20) .. controls (0,19) and (0,18) .. (1,17) .. controls (3,16) and (4,16) .. (4,15) .. controls (4,14) and (2,15) .. (1,15) .. controls (2,13) and (3,12) .. (5,10) .. controls (7,8) and (11,6) .. (14,5) .. controls (13,8) and (7,8) .. (6,12) .. controls (5,16) and (2,19) .. (0,20) -- cycle; \fill [BlueGrey500] (3,13) .. controls (2,12) and (2,9) .. (3,8) .. controls (4,9) and (4,10) .. (5,11) .. controls (5,12) and (4,13) .. (3,13) -- cycle; \fill [BlueGrey500] (9,18) .. controls (8,18) and (7.5,17.5) .. (7,17) .. controls (7,16) and (9,14) .. (10,14) .. controls (10,15) and (11,17) .. (12,17) .. controls (11,18) and (10,18) .. (9,18) -- cycle; \fill [BlueGrey800] (6,17.5) circle [radius=0.5]; } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {shark}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ shark/.pic={ \tikzset{x=3cm/22,y=3cm/22,shift={(-8,-11)}} \fill [BlueGrey200] (2,16.75) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (3,16.25) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (1,17) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (2,15.5) -- ++(-.5,-1) -- ++(1,0) -- cycle (3,15) -- ++(-.5,-1) -- ++(1,0) -- cycle; \fill [BlueGrey700] (6,12) .. controls (5,11) and (5,8) .. (6,7) .. controls (7,8) and (7,9) .. (8,10) .. controls (8,11) and (7,12) .. (6,12)-- cycle; \fill [BlueGrey500] (0,20) .. controls (0,19) and (0,18) .. (1,17) .. controls (3,16) and (4,16) .. (4,15) .. controls (4,14) and (2,15) .. (1,15) .. controls (2,13) and (3,12) .. (5,10) .. controls (7,8) and (11,6) .. (14,5) .. controls (14,3) and (14,1) .. (15,0) .. controls (15,2) and (15,3) .. (16,4) .. controls (17,5) and (18,6) .. (20,6) .. controls (19,7) and (16,7) .. (15,6) .. controls (14,10) and (11,15) .. (9,17) .. controls (7,19) and (3,20) .. (0,20) -- cycle; \fill [BlueGrey100] (0,20) .. controls (0,19) and (0,18) .. (1,17) .. controls (3,16) and (4,16) .. (4,15) .. controls (4,14) and (2,15) .. (1,15) .. controls (2,13) and (3,12) .. (5,10) .. controls (7,8) and (11,6) .. (14,5) .. controls (13,8) and (7,8) .. (6,12) .. controls (5,16) and (2,19) .. (0,20) -- cycle; \fill [BlueGrey500] (3,13) .. controls (2,12) and (2,9) .. (3,8) .. controls (4,9) and (4,10) .. (5,11) .. controls (5,12) and (4,13) .. (3,13) -- cycle; \fill [BlueGrey500] (9,18) .. controls (8,18) and (7.5,17.5) .. (7,17) .. controls (7,16) and (9,14) .. (10,14) .. controls (10,15) and (11,17) .. (12,17) .. controls (11,18) and (10,18) .. (9,18) -- cycle; \fill [BlueGrey800] (6,17.5) circle [radius=0.5]; } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {shark}; \end{tikzpicture} \end{document}
Change the color of the shark to blue
A blue shark
easy
update
animal
[ "@@ -12 +12 @@\n\n-\\fill [BlueGrey700] (6,12)\n+\\fill [Blue] (6,12)\n@@ -16 +16 @@\n\n-\\fill [BlueGrey500] (0,20)\n+\\fill [Blue] (0,20)\n@@ -36 +36 @@\n\n-\\fill [BlueGrey500] (3,13)\n+\\fill [Blue] (3,13)\n@@ -40 +40 @@\n\n-\\fill [BlueGrey500] (9,18)\n+\\fill [Blue] (9,18)", "@@ -12 +12 @@\n\n-\\fill [BlueGrey700] (6,12)\n+\\fill [Blue900] (6,12)\n@@ -16 +16 @@\n\n-\\fill [BlueGrey500] (0,20)\n+\\fill [Blue800] (0,20)\n@@ -36 +36 @@\n\n-\\fill [BlueGrey500] (3,13)\n+\\fill [Blue800] (3,13)\n@@ -40 +40 @@\n\n-\\fill [BlueGrey500] (9,18)\n+\\fill [Blue800] (9,18)" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\nshark/.pic={\n\\tikzset{x=3cm/22,y=3cm/22,shift={(-8,-11)}}\n\\fill [BlueGrey200]\n (2,16.75) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (3,16.25) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (1,17) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (2,15.5) -- ++(-.5,-1) -- ++(1,0) -- cycle\n (3,15) -- ++(-.5,-1) -- ++(1,0) -- cycle;\n\\fill [Blue] (6,12)\n .. controls (5,11) and (5,8) .. (6,7)\n .. controls (7,8) and (7,9) .. (8,10)\n .. controls (8,11) and (7,12) .. (6,12)-- cycle;\n\\fill [Blue] (0,20)\n .. controls (0,19) and (0,18) .. (1,17)\n .. controls (3,16) and (4,16) .. (4,15)\n .. controls (4,14) and (2,15) .. (1,15)\n .. controls (2,13) and (3,12) .. (5,10)\n .. controls (7,8) and (11,6) .. (14,5)\n .. controls (14,3) and (14,1) .. (15,0)\n .. controls (15,2) and (15,3) .. (16,4)\n .. controls (17,5) and (18,6) .. (20,6)\n .. controls (19,7) and (16,7) .. (15,6)\n .. controls (14,10) and (11,15) .. (9,17)\n .. controls (7,19) and (3,20) .. (0,20) -- cycle;\n\\fill [BlueGrey100] (0,20)\n .. controls (0,19) and (0,18) .. (1,17)\n .. controls (3,16) and (4,16) .. (4,15)\n .. controls (4,14) and (2,15) .. (1,15)\n .. controls (2,13) and (3,12) .. (5,10)\n .. controls (7,8) and (11,6) .. (14,5)\n .. controls (13,8) and (7,8) .. (6,12)\n .. controls (5,16) and (2,19) .. (0,20) -- cycle;\n\\fill [Blue] (3,13)\n .. controls (2,12) and (2,9) .. (3,8)\n .. controls (4,9) and (4,10) .. (5,11)\n .. controls (5,12) and (4,13) .. (3,13) -- cycle;\n\\fill [Blue] (9,18)\n .. controls (8,18) and (7.5,17.5) .. (7,17)\n .. controls (7,16) and (9,14) .. (10,14)\n .. controls (10,15) and (11,17) .. (12,17)\n .. controls (11,18) and (10,18) .. (9,18) -- cycle;\n\\fill [BlueGrey800] (6,17.5) circle [radius=0.5];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {shark};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\nshark/.pic={\n\\tikzset{x=3cm/22,y=3cm/22,shift={(-8,-11)}}\n\\fill [BlueGrey200]\n (2,16.75) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (3,16.25) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (1,17) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (2,15.5) -- ++(-.5,-1) -- ++(1,0) -- cycle\n (3,15) -- ++(-.5,-1) -- ++(1,0) -- cycle;\n\\fill [Blue§range(300,900,900)] (6,12)\n .. controls (5,11) and (5,8) .. (6,7)\n .. controls (7,8) and (7,9) .. (8,10)\n .. controls (8,11) and (7,12) .. (6,12)-- cycle;\n\\fill [Blue§range(300,900,800)] (0,20)\n .. controls (0,19) and (0,18) .. (1,17)\n .. controls (3,16) and (4,16) .. (4,15)\n .. controls (4,14) and (2,15) .. (1,15)\n .. controls (2,13) and (3,12) .. (5,10)\n .. controls (7,8) and (11,6) .. (14,5)\n .. controls (14,3) and (14,1) .. (15,0)\n .. controls (15,2) and (15,3) .. (16,4)\n .. controls (17,5) and (18,6) .. (20,6)\n .. controls (19,7) and (16,7) .. (15,6)\n .. controls (14,10) and (11,15) .. (9,17)\n .. controls (7,19) and (3,20) .. (0,20) -- cycle;\n\\fill [BlueGrey100] (0,20)\n .. controls (0,19) and (0,18) .. (1,17)\n .. controls (3,16) and (4,16) .. (4,15)\n .. controls (4,14) and (2,15) .. (1,15)\n .. controls (2,13) and (3,12) .. (5,10)\n .. controls (7,8) and (11,6) .. (14,5)\n .. controls (13,8) and (7,8) .. (6,12)\n .. controls (5,16) and (2,19) .. (0,20) -- cycle;\n\\fill [Blue§range(300,900,800)] (3,13)\n .. controls (2,12) and (2,9) .. (3,8)\n .. controls (4,9) and (4,10) .. (5,11)\n .. controls (5,12) and (4,13) .. (3,13) -- cycle;\n\\fill [Blue§range(300,900,800)] (9,18)\n .. controls (8,18) and (7.5,17.5) .. (7,17)\n .. controls (7,16) and (9,14) .. (10,14)\n .. controls (10,15) and (11,17) .. (12,17)\n .. controls (11,18) and (10,18) .. (9,18) -- cycle;\n\\fill [BlueGrey800] (6,17.5) circle [radius=0.5];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {shark};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\nshark/.pic={\n\\tikzset{x=3cm/22,y=3cm/22,shift={(-8,-11)}}\n\\fill [BlueGrey200]\n (2,16.75) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (3,16.25) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (1,17) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (2,15.5) -- ++(-.5,-1) -- ++(1,0) -- cycle\n (3,15) -- ++(-.5,-1) -- ++(1,0) -- cycle;\n\\fill [Blue] (6,12)\n .. controls (5,11) and (5,8) .. (6,7)\n .. controls (7,8) and (7,9) .. (8,10)\n .. controls (8,11) and (7,12) .. (6,12)-- cycle;\n\\fill [Blue] (0,20)\n .. controls (0,19) and (0,18) .. (1,17)\n .. controls (3,16) and (4,16) .. (4,15)\n .. controls (4,14) and (2,15) .. (1,15)\n .. controls (2,13) and (3,12) .. (5,10)\n .. controls (7,8) and (11,6) .. (14,5)\n .. controls (14,3) and (14,1) .. (15,0)\n .. controls (15,2) and (15,3) .. (16,4)\n .. controls (17,5) and (18,6) .. (20,6)\n .. controls (19,7) and (16,7) .. (15,6)\n .. controls (14,10) and (11,15) .. (9,17)\n .. controls (7,19) and (3,20) .. (0,20) -- cycle;\n\\fill [BlueGrey100] (0,20)\n .. controls (0,19) and (0,18) .. (1,17)\n .. controls (3,16) and (4,16) .. (4,15)\n .. controls (4,14) and (2,15) .. (1,15)\n .. controls (2,13) and (3,12) .. (5,10)\n .. controls (7,8) and (11,6) .. (14,5)\n .. controls (13,8) and (7,8) .. (6,12)\n .. controls (5,16) and (2,19) .. (0,20) -- cycle;\n\\fill [Blue] (3,13)\n .. controls (2,12) and (2,9) .. (3,8)\n .. controls (4,9) and (4,10) .. (5,11)\n .. controls (5,12) and (4,13) .. (3,13) -- cycle;\n\\fill [Blue] (9,18)\n .. controls (8,18) and (7.5,17.5) .. (7,17)\n .. controls (7,16) and (9,14) .. (10,14)\n .. controls (10,15) and (11,17) .. (12,17)\n .. controls (11,18) and (10,18) .. (9,18) -- cycle;\n\\fill [BlueGrey800] (6,17.5) circle [radius=0.5];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {shark};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\nshark/.pic={\n\\tikzset{x=3cm/22,y=3cm/22,shift={(-8,-11)}}\n\\fill [BlueGrey200]\n (2,16.75) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (3,16.25) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (1,17) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (2,15.5) -- ++(-.5,-1) -- ++(1,0) -- cycle\n (3,15) -- ++(-.5,-1) -- ++(1,0) -- cycle;\n\\fill [Blue900] (6,12)\n .. controls (5,11) and (5,8) .. (6,7)\n .. controls (7,8) and (7,9) .. (8,10)\n .. controls (8,11) and (7,12) .. (6,12)-- cycle;\n\\fill [Blue800] (0,20)\n .. controls (0,19) and (0,18) .. (1,17)\n .. controls (3,16) and (4,16) .. (4,15)\n .. controls (4,14) and (2,15) .. (1,15)\n .. controls (2,13) and (3,12) .. (5,10)\n .. controls (7,8) and (11,6) .. (14,5)\n .. controls (14,3) and (14,1) .. (15,0)\n .. controls (15,2) and (15,3) .. (16,4)\n .. controls (17,5) and (18,6) .. (20,6)\n .. controls (19,7) and (16,7) .. (15,6)\n .. controls (14,10) and (11,15) .. (9,17)\n .. controls (7,19) and (3,20) .. (0,20) -- cycle;\n\\fill [BlueGrey100] (0,20)\n .. controls (0,19) and (0,18) .. (1,17)\n .. controls (3,16) and (4,16) .. (4,15)\n .. controls (4,14) and (2,15) .. (1,15)\n .. controls (2,13) and (3,12) .. (5,10)\n .. controls (7,8) and (11,6) .. (14,5)\n .. controls (13,8) and (7,8) .. (6,12)\n .. controls (5,16) and (2,19) .. (0,20) -- cycle;\n\\fill [Blue800] (3,13)\n .. controls (2,12) and (2,9) .. (3,8)\n .. controls (4,9) and (4,10) .. (5,11)\n .. controls (5,12) and (4,13) .. (3,13) -- cycle;\n\\fill [Blue800] (9,18)\n .. controls (8,18) and (7.5,17.5) .. (7,17)\n .. controls (7,16) and (9,14) .. (10,14)\n .. controls (10,15) and (11,17) .. (12,17)\n .. controls (11,18) and (10,18) .. (9,18) -- cycle;\n\\fill [BlueGrey800] (6,17.5) circle [radius=0.5];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {shark};\n\\end{tikzpicture}\n\\end{document}" ]
[ 6 ]
shark_no_teeth
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ shark/.pic={ \tikzset{x=3cm/22,y=3cm/22,shift={(-8,-11)}} \fill [BlueGrey200] (2,16.75) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (3,16.25) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (1,17) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (2,15.5) -- ++(-.5,-1) -- ++(1,0) -- cycle (3,15) -- ++(-.5,-1) -- ++(1,0) -- cycle; \fill [BlueGrey700] (6,12) .. controls (5,11) and (5,8) .. (6,7) .. controls (7,8) and (7,9) .. (8,10) .. controls (8,11) and (7,12) .. (6,12)-- cycle; \fill [BlueGrey500] (0,20) .. controls (0,19) and (0,18) .. (1,17) .. controls (3,16) and (4,16) .. (4,15) .. controls (4,14) and (2,15) .. (1,15) .. controls (2,13) and (3,12) .. (5,10) .. controls (7,8) and (11,6) .. (14,5) .. controls (14,3) and (14,1) .. (15,0) .. controls (15,2) and (15,3) .. (16,4) .. controls (17,5) and (18,6) .. (20,6) .. controls (19,7) and (16,7) .. (15,6) .. controls (14,10) and (11,15) .. (9,17) .. controls (7,19) and (3,20) .. (0,20) -- cycle; \fill [BlueGrey100] (0,20) .. controls (0,19) and (0,18) .. (1,17) .. controls (3,16) and (4,16) .. (4,15) .. controls (4,14) and (2,15) .. (1,15) .. controls (2,13) and (3,12) .. (5,10) .. controls (7,8) and (11,6) .. (14,5) .. controls (13,8) and (7,8) .. (6,12) .. controls (5,16) and (2,19) .. (0,20) -- cycle; \fill [BlueGrey500] (3,13) .. controls (2,12) and (2,9) .. (3,8) .. controls (4,9) and (4,10) .. (5,11) .. controls (5,12) and (4,13) .. (3,13) -- cycle; \fill [BlueGrey500] (9,18) .. controls (8,18) and (7.5,17.5) .. (7,17) .. controls (7,16) and (9,14) .. (10,14) .. controls (10,15) and (11,17) .. (12,17) .. controls (11,18) and (10,18) .. (9,18) -- cycle; \fill [BlueGrey800] (6,17.5) circle [radius=0.5]; } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {shark}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ shark/.pic={ \tikzset{x=3cm/22,y=3cm/22,shift={(-8,-11)}} \fill [BlueGrey200] (2,16.75) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (3,16.25) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (1,17) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (2,15.5) -- ++(-.5,-1) -- ++(1,0) -- cycle (3,15) -- ++(-.5,-1) -- ++(1,0) -- cycle; \fill [BlueGrey700] (6,12) .. controls (5,11) and (5,8) .. (6,7) .. controls (7,8) and (7,9) .. (8,10) .. controls (8,11) and (7,12) .. (6,12)-- cycle; \fill [BlueGrey500] (0,20) .. controls (0,19) and (0,18) .. (1,17) .. controls (3,16) and (4,16) .. (4,15) .. controls (4,14) and (2,15) .. (1,15) .. controls (2,13) and (3,12) .. (5,10) .. controls (7,8) and (11,6) .. (14,5) .. controls (14,3) and (14,1) .. (15,0) .. controls (15,2) and (15,3) .. (16,4) .. controls (17,5) and (18,6) .. (20,6) .. controls (19,7) and (16,7) .. (15,6) .. controls (14,10) and (11,15) .. (9,17) .. controls (7,19) and (3,20) .. (0,20) -- cycle; \fill [BlueGrey100] (0,20) .. controls (0,19) and (0,18) .. (1,17) .. controls (3,16) and (4,16) .. (4,15) .. controls (4,14) and (2,15) .. (1,15) .. controls (2,13) and (3,12) .. (5,10) .. controls (7,8) and (11,6) .. (14,5) .. controls (13,8) and (7,8) .. (6,12) .. controls (5,16) and (2,19) .. (0,20) -- cycle; \fill [BlueGrey500] (3,13) .. controls (2,12) and (2,9) .. (3,8) .. controls (4,9) and (4,10) .. (5,11) .. controls (5,12) and (4,13) .. (3,13) -- cycle; \fill [BlueGrey500] (9,18) .. controls (8,18) and (7.5,17.5) .. (7,17) .. controls (7,16) and (9,14) .. (10,14) .. controls (10,15) and (11,17) .. (12,17) .. controls (11,18) and (10,18) .. (9,18) -- cycle; \fill [BlueGrey800] (6,17.5) circle [radius=0.5]; } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {shark}; \end{tikzpicture} \end{document}
Remove the teeth of the shark
A shark with no teeth
easy
remove
animal
[ "@@ -6,6 +5,0 @@\n\n-\\fill [BlueGrey200]\n-(2,16.75) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n-(3,16.25) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n-(1,17) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n-(2,15.5) -- ++(-.5,-1) -- ++(1,0) -- cycle\n-(3,15) -- ++(-.5,-1) -- ++(1,0) -- cycle;" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\nshark/.pic={\n\\tikzset{x=3cm/22,y=3cm/22,shift={(-8,-11)}}\n\\fill [BlueGrey700] (6,12)\n .. controls (5,11) and (5,8) .. (6,7)\n .. controls (7,8) and (7,9) .. (8,10)\n .. controls (8,11) and (7,12) .. (6,12)-- cycle;\n\\fill [BlueGrey500] (0,20)\n .. controls (0,19) and (0,18) .. (1,17)\n .. controls (3,16) and (4,16) .. (4,15)\n .. controls (4,14) and (2,15) .. (1,15)\n .. controls (2,13) and (3,12) .. (5,10)\n .. controls (7,8) and (11,6) .. (14,5)\n .. controls (14,3) and (14,1) .. (15,0)\n .. controls (15,2) and (15,3) .. (16,4)\n .. controls (17,5) and (18,6) .. (20,6)\n .. controls (19,7) and (16,7) .. (15,6)\n .. controls (14,10) and (11,15) .. (9,17)\n .. controls (7,19) and (3,20) .. (0,20) -- cycle;\n\\fill [BlueGrey100] (0,20)\n .. controls (0,19) and (0,18) .. (1,17)\n .. controls (3,16) and (4,16) .. (4,15)\n .. controls (4,14) and (2,15) .. (1,15)\n .. controls (2,13) and (3,12) .. (5,10)\n .. controls (7,8) and (11,6) .. (14,5)\n .. controls (13,8) and (7,8) .. (6,12)\n .. controls (5,16) and (2,19) .. (0,20) -- cycle;\n\\fill [BlueGrey500] (3,13)\n .. controls (2,12) and (2,9) .. (3,8)\n .. controls (4,9) and (4,10) .. (5,11)\n .. controls (5,12) and (4,13) .. (3,13) -- cycle;\n\\fill [BlueGrey500] (9,18)\n .. controls (8,18) and (7.5,17.5) .. (7,17)\n .. controls (7,16) and (9,14) .. (10,14)\n .. controls (10,15) and (11,17) .. (12,17)\n .. controls (11,18) and (10,18) .. (9,18) -- cycle;\n\\fill [BlueGrey800] (6,17.5) circle [radius=0.5];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {shark};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\nshark/.pic={\n\\tikzset{x=3cm/22,y=3cm/22,shift={(-8,-11)}}\n\\fill [BlueGrey700] (6,12)\n .. controls (5,11) and (5,8) .. (6,7)\n .. controls (7,8) and (7,9) .. (8,10)\n .. controls (8,11) and (7,12) .. (6,12)-- cycle;\n\\fill [BlueGrey500] (0,20)\n .. controls (0,19) and (0,18) .. (1,17)\n .. controls (3,16) and (4,16) .. (4,15)\n .. controls (4,14) and (2,15) .. (1,15)\n .. controls (2,13) and (3,12) .. (5,10)\n .. controls (7,8) and (11,6) .. (14,5)\n .. controls (14,3) and (14,1) .. (15,0)\n .. controls (15,2) and (15,3) .. (16,4)\n .. controls (17,5) and (18,6) .. (20,6)\n .. controls (19,7) and (16,7) .. (15,6)\n .. controls (14,10) and (11,15) .. (9,17)\n .. controls (7,19) and (3,20) .. (0,20) -- cycle;\n\\fill [BlueGrey100] (0,20)\n .. controls (0,19) and (0,18) .. (1,17)\n .. controls (3,16) and (4,16) .. (4,15)\n .. controls (4,14) and (2,15) .. (1,15)\n .. controls (2,13) and (3,12) .. (5,10)\n .. controls (7,8) and (11,6) .. (14,5)\n .. controls (13,8) and (7,8) .. (6,12)\n .. controls (5,16) and (2,19) .. (0,20) -- cycle;\n\\fill [BlueGrey500] (3,13)\n .. controls (2,12) and (2,9) .. (3,8)\n .. controls (4,9) and (4,10) .. (5,11)\n .. controls (5,12) and (4,13) .. (3,13) -- cycle;\n\\fill [BlueGrey500] (9,18)\n .. controls (8,18) and (7.5,17.5) .. (7,17)\n .. controls (7,16) and (9,14) .. (10,14)\n .. controls (10,15) and (11,17) .. (12,17)\n .. controls (11,18) and (10,18) .. (9,18) -- cycle;\n\\fill [BlueGrey800] (6,17.5) circle [radius=0.5];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {shark};\n\\end{tikzpicture}\n\\end{document}" ]
[ 12 ]
shark_other_set_pectoral_fin
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ shark/.pic={ \tikzset{x=3cm/22,y=3cm/22,shift={(-8,-11)}} \fill [BlueGrey200] (2,16.75) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (3,16.25) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (1,17) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (2,15.5) -- ++(-.5,-1) -- ++(1,0) -- cycle (3,15) -- ++(-.5,-1) -- ++(1,0) -- cycle; \fill [BlueGrey700] (6,12) .. controls (5,11) and (5,8) .. (6,7) .. controls (7,8) and (7,9) .. (8,10) .. controls (8,11) and (7,12) .. (6,12)-- cycle; \fill [BlueGrey500] (0,20) .. controls (0,19) and (0,18) .. (1,17) .. controls (3,16) and (4,16) .. (4,15) .. controls (4,14) and (2,15) .. (1,15) .. controls (2,13) and (3,12) .. (5,10) .. controls (7,8) and (11,6) .. (14,5) .. controls (14,3) and (14,1) .. (15,0) .. controls (15,2) and (15,3) .. (16,4) .. controls (17,5) and (18,6) .. (20,6) .. controls (19,7) and (16,7) .. (15,6) .. controls (14,10) and (11,15) .. (9,17) .. controls (7,19) and (3,20) .. (0,20) -- cycle; \fill [BlueGrey100] (0,20) .. controls (0,19) and (0,18) .. (1,17) .. controls (3,16) and (4,16) .. (4,15) .. controls (4,14) and (2,15) .. (1,15) .. controls (2,13) and (3,12) .. (5,10) .. controls (7,8) and (11,6) .. (14,5) .. controls (13,8) and (7,8) .. (6,12) .. controls (5,16) and (2,19) .. (0,20) -- cycle; \fill [BlueGrey500] (3,13) .. controls (2,12) and (2,9) .. (3,8) .. controls (4,9) and (4,10) .. (5,11) .. controls (5,12) and (4,13) .. (3,13) -- cycle; \fill [BlueGrey500] (9,18) .. controls (8,18) and (7.5,17.5) .. (7,17) .. controls (7,16) and (9,14) .. (10,14) .. controls (10,15) and (11,17) .. (12,17) .. controls (11,18) and (10,18) .. (9,18) -- cycle; \fill [BlueGrey800] (6,17.5) circle [radius=0.5]; } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {shark}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ shark/.pic={ \tikzset{x=3cm/22,y=3cm/22,shift={(-8,-11)}} \fill [BlueGrey200] (2,16.75) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (3,16.25) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (1,17) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (2,15.5) -- ++(-.5,-1) -- ++(1,0) -- cycle (3,15) -- ++(-.5,-1) -- ++(1,0) -- cycle; \fill [BlueGrey700] (6,12) .. controls (5,11) and (5,8) .. (6,7) .. controls (7,8) and (7,9) .. (8,10) .. controls (8,11) and (7,12) .. (6,12)-- cycle; \fill [BlueGrey500] (0,20) .. controls (0,19) and (0,18) .. (1,17) .. controls (3,16) and (4,16) .. (4,15) .. controls (4,14) and (2,15) .. (1,15) .. controls (2,13) and (3,12) .. (5,10) .. controls (7,8) and (11,6) .. (14,5) .. controls (14,3) and (14,1) .. (15,0) .. controls (15,2) and (15,3) .. (16,4) .. controls (17,5) and (18,6) .. (20,6) .. controls (19,7) and (16,7) .. (15,6) .. controls (14,10) and (11,15) .. (9,17) .. controls (7,19) and (3,20) .. (0,20) -- cycle; \fill [BlueGrey100] (0,20) .. controls (0,19) and (0,18) .. (1,17) .. controls (3,16) and (4,16) .. (4,15) .. controls (4,14) and (2,15) .. (1,15) .. controls (2,13) and (3,12) .. (5,10) .. controls (7,8) and (11,6) .. (14,5) .. controls (13,8) and (7,8) .. (6,12) .. controls (5,16) and (2,19) .. (0,20) -- cycle; \fill [BlueGrey500] (3,13) .. controls (2,12) and (2,9) .. (3,8) .. controls (4,9) and (4,10) .. (5,11) .. controls (5,12) and (4,13) .. (3,13) -- cycle; \fill [BlueGrey500] (9,18) .. controls (8,18) and (7.5,17.5) .. (7,17) .. controls (7,16) and (9,14) .. (10,14) .. controls (10,15) and (11,17) .. (12,17) .. controls (11,18) and (10,18) .. (9,18) -- cycle; \fill [BlueGrey800] (6,17.5) circle [radius=0.5]; } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {shark}; \end{tikzpicture} \end{document}
Add another set of pectoral fin to the shark, lower on its body
A shark with two sets of pectoral fins
hard
add
animal
[ "@@ -15,0 +16,4 @@\n\n+\\fill [BlueGrey700] (11,10)\n+.. controls (9,9) and (9,6) .. (10,5)\n+.. controls (11,6) and (11,7) .. (12,8)\n+.. controls (12,9) and (11,10) .. (10,10)-- cycle;\n@@ -39,0 +44,4 @@\n\n+\\fill [BlueGrey500] (7,9)\n+.. controls (6,8) and (6,5) .. (7,4)\n+.. controls (8,5) and (8,6) .. (9,7)\n+.. controls (9,8) and (8,9) .. (7,9) -- cycle;" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\nshark/.pic={\n\\tikzset{x=3cm/22,y=3cm/22,shift={(-8,-11)}}\n\\fill [BlueGrey200]\n (2,16.75) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (3,16.25) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (1,17) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (2,15.5) -- ++(-.5,-1) -- ++(1,0) -- cycle\n (3,15) -- ++(-.5,-1) -- ++(1,0) -- cycle;\n\\fill [BlueGrey700] (6,12)\n .. controls (5,11) and (5,8) .. (6,7)\n .. controls (7,8) and (7,9) .. (8,10)\n .. controls (8,11) and (7,12) .. (6,12)-- cycle;\n\\fill [BlueGrey700] (§rangei(11,1),§rangei(10,1))\n .. controls (§rangei(9,2),§rangei(9,2)) and (§rangei(9,2),§rangei(6,2)) .. (§rangei(10,2),§rangei(5,2))\n .. controls (§rangei(11,1),§rangei(6,1)) and (§rangei(11,1),§rangei(7,1)) .. (§rangei(12,2),§rangei(8,2))\n .. controls (§rangei(12,2),§rangei(9,2)) and (§rangei(11,2),§rangei(10,2)) .. (§rangei(10,2),§rangei(10,2))-- cycle;\n\\fill [BlueGrey500] (0,20)\n .. controls (0,19) and (0,18) .. (1,17)\n .. controls (3,16) and (4,16) .. (4,15)\n .. controls (4,14) and (2,15) .. (1,15)\n .. controls (2,13) and (3,12) .. (5,10)\n .. controls (7,8) and (11,6) .. (14,5)\n .. controls (14,3) and (14,1) .. (15,0)\n .. controls (15,2) and (15,3) .. (16,4)\n .. controls (17,5) and (18,6) .. (20,6)\n .. controls (19,7) and (16,7) .. (15,6)\n .. controls (14,10) and (11,15) .. (9,17)\n .. controls (7,19) and (3,20) .. (0,20) -- cycle;\n\\fill [BlueGrey100] (0,20)\n .. controls (0,19) and (0,18) .. (1,17)\n .. controls (3,16) and (4,16) .. (4,15)\n .. controls (4,14) and (2,15) .. (1,15)\n .. controls (2,13) and (3,12) .. (5,10)\n .. controls (7,8) and (11,6) .. (14,5)\n .. controls (13,8) and (7,8) .. (6,12)\n .. controls (5,16) and (2,19) .. (0,20) -- cycle;\n\\fill [BlueGrey500] (3,13)\n .. controls (2,12) and (2,9) .. (3,8)\n .. controls (4,9) and (4,10) .. (5,11)\n .. controls (5,12) and (4,13) .. (3,13) -- cycle;\n\\fill [BlueGrey500] (7,9)\n .. controls (§rangei(6,1),§rangei(8,1)) and (§rangei(6,1),§rangei(5,1)) .. (§rangei(7,1),§rangei(4,1))\n .. controls (§rangei(8,1),§rangei(5,1)) and (§rangei(8,1),§rangei(6,1)) .. (§rangei(9,1),§rangei(7,1))\n .. controls (§rangei(9,1),§rangei(8,1)) and (§rangei(8,1),§rangei(9,1)) .. (§rangei(7,1),§rangei(9,1)) -- cycle;\n\\fill [BlueGrey500] (9,18)\n .. controls (8,18) and (7.5,17.5) .. (7,17)\n .. controls (7,16) and (9,14) .. (10,14)\n .. controls (10,15) and (11,17) .. (12,17)\n .. controls (11,18) and (10,18) .. (9,18) -- cycle;\n\\fill [BlueGrey800] (6,17.5) circle [radius=0.5];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {shark};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\nshark/.pic={\n\\tikzset{x=3cm/22,y=3cm/22,shift={(-8,-11)}}\n\\fill [BlueGrey200]\n (2,16.75) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (3,16.25) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (1,17) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (2,15.5) -- ++(-.5,-1) -- ++(1,0) -- cycle\n (3,15) -- ++(-.5,-1) -- ++(1,0) -- cycle;\n\\fill [BlueGrey700] (6,12)\n .. controls (5,11) and (5,8) .. (6,7)\n .. controls (7,8) and (7,9) .. (8,10)\n .. controls (8,11) and (7,12) .. (6,12)-- cycle;\n\\fill [BlueGrey700] (11,10)\n .. controls (9,9) and (9,6) .. (10,5)\n .. controls (11,6) and (11,7) .. (12,8)\n .. controls (12,9) and (11,10) .. (10,10)-- cycle;\n\\fill [BlueGrey500] (0,20)\n .. controls (0,19) and (0,18) .. (1,17)\n .. controls (3,16) and (4,16) .. (4,15)\n .. controls (4,14) and (2,15) .. (1,15)\n .. controls (2,13) and (3,12) .. (5,10)\n .. controls (7,8) and (11,6) .. (14,5)\n .. controls (14,3) and (14,1) .. (15,0)\n .. controls (15,2) and (15,3) .. (16,4)\n .. controls (17,5) and (18,6) .. (20,6)\n .. controls (19,7) and (16,7) .. (15,6)\n .. controls (14,10) and (11,15) .. (9,17)\n .. controls (7,19) and (3,20) .. (0,20) -- cycle;\n\\fill [BlueGrey100] (0,20)\n .. controls (0,19) and (0,18) .. (1,17)\n .. controls (3,16) and (4,16) .. (4,15)\n .. controls (4,14) and (2,15) .. (1,15)\n .. controls (2,13) and (3,12) .. (5,10)\n .. controls (7,8) and (11,6) .. (14,5)\n .. controls (13,8) and (7,8) .. (6,12)\n .. controls (5,16) and (2,19) .. (0,20) -- cycle;\n\\fill [BlueGrey500] (3,13)\n .. controls (2,12) and (2,9) .. (3,8)\n .. controls (4,9) and (4,10) .. (5,11)\n .. controls (5,12) and (4,13) .. (3,13) -- cycle;\n\\fill [BlueGrey500] (7,9)\n .. controls (6,8) and (6,5) .. (7,4)\n .. controls (8,5) and (8,6) .. (9,7)\n .. controls (9,8) and (8,9) .. (7,9) -- cycle;\n\\fill [BlueGrey500] (9,18)\n .. controls (8,18) and (7.5,17.5) .. (7,17)\n .. controls (7,16) and (9,14) .. (10,14)\n .. controls (10,15) and (11,17) .. (12,17)\n .. controls (11,18) and (10,18) .. (9,18) -- cycle;\n\\fill [BlueGrey800] (6,17.5) circle [radius=0.5];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {shark};\n\\end{tikzpicture}\n\\end{document}" ]
[ 2 ]
shark_smile
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ shark/.pic={ \tikzset{x=3cm/22,y=3cm/22,shift={(-8,-11)}} \fill [BlueGrey200] (2,16.75) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (3,16.25) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (1,17) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (2,15.5) -- ++(-.5,-1) -- ++(1,0) -- cycle (3,15) -- ++(-.5,-1) -- ++(1,0) -- cycle; \fill [BlueGrey700] (6,12) .. controls (5,11) and (5,8) .. (6,7) .. controls (7,8) and (7,9) .. (8,10) .. controls (8,11) and (7,12) .. (6,12)-- cycle; \fill [BlueGrey500] (0,20) .. controls (0,19) and (0,18) .. (1,17) .. controls (3,16) and (4,16) .. (4,15) .. controls (4,14) and (2,15) .. (1,15) .. controls (2,13) and (3,12) .. (5,10) .. controls (7,8) and (11,6) .. (14,5) .. controls (14,3) and (14,1) .. (15,0) .. controls (15,2) and (15,3) .. (16,4) .. controls (17,5) and (18,6) .. (20,6) .. controls (19,7) and (16,7) .. (15,6) .. controls (14,10) and (11,15) .. (9,17) .. controls (7,19) and (3,20) .. (0,20) -- cycle; \fill [BlueGrey100] (0,20) .. controls (0,19) and (0,18) .. (1,17) .. controls (3,16) and (4,16) .. (4,15) .. controls (4,14) and (2,15) .. (1,15) .. controls (2,13) and (3,12) .. (5,10) .. controls (7,8) and (11,6) .. (14,5) .. controls (13,8) and (7,8) .. (6,12) .. controls (5,16) and (2,19) .. (0,20) -- cycle; \fill [BlueGrey500] (3,13) .. controls (2,12) and (2,9) .. (3,8) .. controls (4,9) and (4,10) .. (5,11) .. controls (5,12) and (4,13) .. (3,13) -- cycle; \fill [BlueGrey500] (9,18) .. controls (8,18) and (7.5,17.5) .. (7,17) .. controls (7,16) and (9,14) .. (10,14) .. controls (10,15) and (11,17) .. (12,17) .. controls (11,18) and (10,18) .. (9,18) -- cycle; \fill [BlueGrey800] (6,17.5) circle [radius=0.5]; } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {shark}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ shark/.pic={ \tikzset{x=3cm/22,y=3cm/22,shift={(-8,-11)}} \fill [BlueGrey200] (2,16.75) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (3,16.25) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (1,17) -- ++(0.5,-1) -- ++(0.5,1) -- cycle (2,15.5) -- ++(-.5,-1) -- ++(1,0) -- cycle (3,15) -- ++(-.5,-1) -- ++(1,0) -- cycle; \fill [BlueGrey700] (6,12) .. controls (5,11) and (5,8) .. (6,7) .. controls (7,8) and (7,9) .. (8,10) .. controls (8,11) and (7,12) .. (6,12)-- cycle; \fill [BlueGrey500] (0,20) .. controls (0,19) and (0,18) .. (1,17) .. controls (3,16) and (4,16) .. (4,15) .. controls (4,14) and (2,15) .. (1,15) .. controls (2,13) and (3,12) .. (5,10) .. controls (7,8) and (11,6) .. (14,5) .. controls (14,3) and (14,1) .. (15,0) .. controls (15,2) and (15,3) .. (16,4) .. controls (17,5) and (18,6) .. (20,6) .. controls (19,7) and (16,7) .. (15,6) .. controls (14,10) and (11,15) .. (9,17) .. controls (7,19) and (3,20) .. (0,20) -- cycle; \fill [BlueGrey100] (0,20) .. controls (0,19) and (0,18) .. (1,17) .. controls (3,16) and (4,16) .. (4,15) .. controls (4,14) and (2,15) .. (1,15) .. controls (2,13) and (3,12) .. (5,10) .. controls (7,8) and (11,6) .. (14,5) .. controls (13,8) and (7,8) .. (6,12) .. controls (5,16) and (2,19) .. (0,20) -- cycle; \fill [BlueGrey500] (3,13) .. controls (2,12) and (2,9) .. (3,8) .. controls (4,9) and (4,10) .. (5,11) .. controls (5,12) and (4,13) .. (3,13) -- cycle; \fill [BlueGrey500] (9,18) .. controls (8,18) and (7.5,17.5) .. (7,17) .. controls (7,16) and (9,14) .. (10,14) .. controls (10,15) and (11,17) .. (12,17) .. controls (11,18) and (10,18) .. (9,18) -- cycle; \fill [BlueGrey800] (6,17.5) circle [radius=0.5]; } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {shark}; \end{tikzpicture} \end{document}
Make the shark smile.
A shark smiling
medium
update
animal
[ "@@ -18 +18 @@\n\n-.. controls (3,16) and (4,16) .. (4,15)\n+.. controls (3,16) and (4,16) .. (4,16)\n@@ -30 +30 @@\n\n-.. controls (3,16) and (4,16) .. (4,15)\n+.. controls (3,16) and (4,16) .. (4,16)" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\nshark/.pic={\n\\tikzset{x=3cm/22,y=3cm/22,shift={(-8,-11)}}\n\\fill [BlueGrey200]\n (2,16.75) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (3,16.25) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (1,17) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (2,15.5) -- ++(-.5,-1) -- ++(1,0) -- cycle\n (3,15) -- ++(-.5,-1) -- ++(1,0) -- cycle;\n\\fill [BlueGrey700] (6,12)\n .. controls (5,11) and (5,8) .. (6,7)\n .. controls (7,8) and (7,9) .. (8,10)\n .. controls (8,11) and (7,12) .. (6,12)-- cycle;\n\\fill [BlueGrey500] (0,20)\n .. controls (0,19) and (0,18) .. (1,17)\n .. controls (3,16) and (4,16) .. (4,§rangei(16,0.5))\n .. controls (4,14) and (2,15) .. (1,15)\n .. controls (2,13) and (3,12) .. (5,10)\n .. controls (7,8) and (11,6) .. (14,5)\n .. controls (14,3) and (14,1) .. (15,0)\n .. controls (15,2) and (15,3) .. (16,4)\n .. controls (17,5) and (18,6) .. (20,6)\n .. controls (19,7) and (16,7) .. (15,6)\n .. controls (14,10) and (11,15) .. (9,17)\n .. controls (7,19) and (3,20) .. (0,20) -- cycle;\n\\fill [BlueGrey100] (0,20)\n .. controls (0,19) and (0,18) .. (1,17)\n .. controls (3,16) and (4,16) .. (4,§rangei(16,0.5))\n .. controls (4,14) and (2,15) .. (1,15)\n .. controls (2,13) and (3,12) .. (5,10)\n .. controls (7,8) and (11,6) .. (14,5)\n .. controls (13,8) and (7,8) .. (6,12)\n .. controls (5,16) and (2,19) .. (0,20) -- cycle;\n\\fill [BlueGrey500] (3,13)\n .. controls (2,12) and (2,9) .. (3,8)\n .. controls (4,9) and (4,10) .. (5,11)\n .. controls (5,12) and (4,13) .. (3,13) -- cycle;\n\\fill [BlueGrey500] (9,18)\n .. controls (8,18) and (7.5,17.5) .. (7,17)\n .. controls (7,16) and (9,14) .. (10,14)\n .. controls (10,15) and (11,17) .. (12,17)\n .. controls (11,18) and (10,18) .. (9,18) -- cycle;\n\\fill [BlueGrey800] (6,17.5) circle [radius=0.5];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {shark};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\nshark/.pic={\n\\tikzset{x=3cm/22,y=3cm/22,shift={(-8,-11)}}\n\\fill [BlueGrey200]\n (2,16.75) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (3,16.25) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (1,17) -- ++(0.5,-1) -- ++(0.5,1) -- cycle\n (2,15.5) -- ++(-.5,-1) -- ++(1,0) -- cycle\n (3,15) -- ++(-.5,-1) -- ++(1,0) -- cycle;\n\\fill [BlueGrey700] (6,12)\n .. controls (5,11) and (5,8) .. (6,7)\n .. controls (7,8) and (7,9) .. (8,10)\n .. controls (8,11) and (7,12) .. (6,12)-- cycle;\n\\fill [BlueGrey500] (0,20)\n .. controls (0,19) and (0,18) .. (1,17)\n .. controls (3,16) and (4,16) .. (4,16)\n .. controls (4,14) and (2,15) .. (1,15)\n .. controls (2,13) and (3,12) .. (5,10)\n .. controls (7,8) and (11,6) .. (14,5)\n .. controls (14,3) and (14,1) .. (15,0)\n .. controls (15,2) and (15,3) .. (16,4)\n .. controls (17,5) and (18,6) .. (20,6)\n .. controls (19,7) and (16,7) .. (15,6)\n .. controls (14,10) and (11,15) .. (9,17)\n .. controls (7,19) and (3,20) .. (0,20) -- cycle;\n\\fill [BlueGrey100] (0,20)\n .. controls (0,19) and (0,18) .. (1,17)\n .. controls (3,16) and (4,16) .. (4,16)\n .. controls (4,14) and (2,15) .. (1,15)\n .. controls (2,13) and (3,12) .. (5,10)\n .. controls (7,8) and (11,6) .. (14,5)\n .. controls (13,8) and (7,8) .. (6,12)\n .. controls (5,16) and (2,19) .. (0,20) -- cycle;\n\\fill [BlueGrey500] (3,13)\n .. controls (2,12) and (2,9) .. (3,8)\n .. controls (4,9) and (4,10) .. (5,11)\n .. controls (5,12) and (4,13) .. (3,13) -- cycle;\n\\fill [BlueGrey500] (9,18)\n .. controls (8,18) and (7.5,17.5) .. (7,17)\n .. controls (7,16) and (9,14) .. (10,14)\n .. controls (10,15) and (11,17) .. (12,17)\n .. controls (11,18) and (10,18) .. (9,18) -- cycle;\n\\fill [BlueGrey800] (6,17.5) circle [radius=0.5];\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {shark};\n\\end{tikzpicture}\n\\end{document}" ]
[ 93, 75, 97, 71 ]
signal_colored
\documentclass[tikz,border=5]{standalone} \usepackage{amsmath, amsthm, amssymb, amsfonts} \usepackage{tikz, bbding, tikz-3dplot} \usetikzlibrary{patterns} \usetikzlibrary{matrix} \usetikzlibrary{tikzmark} \usetikzlibrary{positioning} \usetikzlibrary{fit} \usetikzlibrary{shadows.blur} \usetikzlibrary{shapes.symbols} \usetikzlibrary{shapes.geometric} \usetikzlibrary{calc, decorations.pathreplacing} \begin{document} \begin{tikzpicture}[scale=1.5] \def \d {0.5} \def \w {1} \def \h {2} \draw [line width = 1] (0,0) -- ({{6*\d+4*\w}},0); \draw [dashed, line width = 0.5] (0, \h) -- ({2.75*\d+2*\w}, \h); \draw [dashed, line width = 0.5] ({\d+\w}, {0.6*\h}) -- ({2.75*\d+2*\w}, {0.6*\h}); \draw [dashed, line width = 0.5] ({\d+\w}, {0.7*\h}) -- ({3.75*\d+3*\w}, {0.7*\h}); \draw [dashed, line width = 0.5] ({\d+\w}, {0.2*\h}) -- ({3*\d+2*\w}, {0.2*\h}); \draw [dashed, line width = 0.5] ({\d+\w}, {0.4*\h}) -- ({5*\d+4*\w}, {0.4*\h}); \draw [<->, line width = 0.5] ({\d/2}, 0) -- ({\d/2}, \h) node [pos = 0.5, left] {$\lambda$}; \draw [<->, line width = 0.5] ({2.5*\d+2*\w}, {0.6*\h}) -- ({2.5*\d+2*\w}, {\h}) node [pos = 0.5, right] {$\mu$}; \draw [<->, line width = 0.5] ({3*\d+2.5*\w}, {0*\h}) -- ({3*\d+2.5*\w}, {0.2*\h}) node [pos = 0.5, left] {$\lambda_1$}; \draw [<->, line width = 0.5] ({3.5*\d+3*\w}, {0*\h}) -- ({3.5*\d+3*\w}, {0.7*\h}) node [pos = 0.75, right] {$\lambda_2$}; \draw [<->, line width = 0.5] ({4.5*\d + 4*\w}, {0*\h}) -- ({4.5*\d + 4*\w}, {0.4*\h}) node [pos = 0.5, right] {$\lambda_3$}; \draw [fill=red!60] (\d, 0) rectangle ({\d+\w}, \h); \draw [fill = red!10] ({2*\d+\w}, {0.6*\h}) rectangle ({2*\d + 2*\w}, \h) node [pos = 0.5] {$A_1$}; \draw [fill = red!30] ({3*\d+2*\w}, {0.2*\h}) rectangle ({3*\d + 3*\w}, {0.7*\h}) node [pos = 0.5] {$A_2$}; \draw [fill = red!50] ({4*\d+3*\w}, {0*\h}) rectangle ({4*\d + 4*\w}, {0.4*\h}) node [pos = 0.5] {$A_3$}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{amsmath, amsthm, amssymb, amsfonts} \usepackage{tikz, bbding, tikz-3dplot} \usetikzlibrary{patterns} \usetikzlibrary{matrix} \usetikzlibrary{tikzmark} \usetikzlibrary{positioning} \usetikzlibrary{fit} \usetikzlibrary{shadows.blur} \usetikzlibrary{shapes.symbols} \usetikzlibrary{shapes.geometric} \usetikzlibrary{calc, decorations.pathreplacing} \begin{document} \begin{tikzpicture}[scale=1.5] \def \d {0.5} \def \w {1} \def \h {2} %Ground and main signal pillar \draw [line width = 1] (0,0) -- ({{6*\d+4*\w}},0); % Markers \draw [dashed, line width = 0.5] (0, \h) -- ({2.75*\d+2*\w}, \h); \draw [dashed, line width = 0.5] ({\d+\w}, {0.6*\h}) -- ({2.75*\d+2*\w}, {0.6*\h}); \draw [dashed, line width = 0.5] ({\d+\w}, {0.7*\h}) -- ({3.75*\d+3*\w}, {0.7*\h}); \draw [dashed, line width = 0.5] ({\d+\w}, {0.2*\h}) -- ({3*\d+2*\w}, {0.2*\h}); \draw [dashed, line width = 0.5] ({\d+\w}, {0.4*\h}) -- ({5*\d+4*\w}, {0.4*\h}); \draw [<->, line width = 0.5] ({\d/2}, 0) -- ({\d/2}, \h) node [pos = 0.5, left] {$\lambda$}; \draw [<->, line width = 0.5] ({2.5*\d+2*\w}, {0.6*\h}) -- ({2.5*\d+2*\w}, {\h}) node [pos = 0.5, right] {$\mu$}; \draw [<->, line width = 0.5] ({3*\d+2.5*\w}, {0*\h}) -- ({3*\d+2.5*\w}, {0.2*\h}) node [pos = 0.5, left] {$\lambda_1$}; \draw [<->, line width = 0.5] ({3.5*\d+3*\w}, {0*\h}) -- ({3.5*\d+3*\w}, {0.7*\h}) node [pos = 0.75, right] {$\lambda_2$}; \draw [<->, line width = 0.5] ({4.5*\d + 4*\w}, {0*\h}) -- ({4.5*\d + 4*\w}, {0.4*\h}) node [pos = 0.5, right] {$\lambda_3$}; % Signal pillar \draw [fill=red!60] (\d, 0) rectangle ({\d+\w}, \h); % Subsections \draw [fill = red!10] ({2*\d+\w}, {0.6*\h}) rectangle ({2*\d + 2*\w}, \h) node [pos = 0.5] {$A_1$}; \draw [fill = red!30] ({3*\d+2*\w}, {0.2*\h}) rectangle ({3*\d + 3*\w}, {0.7*\h}) node [pos = 0.5] {$A_2$}; \draw [fill = red!50] ({4*\d+3*\w}, {0*\h}) rectangle ({4*\d + 4*\w}, {0.4*\h}) node [pos = 0.5] {$A_3$}; \end{tikzpicture} \end{document}
Color the red rectangle on the left with the colors of the A rectangles on the right. The color of the red rectangle should align with the color of the closest A rectangle, for instance the height of A1 should fully be colored on the red rectangle, but not A2 because it is partly behind A1(same for A2 and A3).
four rectangles, with the left one colored with the colors of the right ones.
hard
update
scientific
[ "@@ -29 +29,4 @@\n\n-\\draw [fill=red!60] (\\d, 0) rectangle ({\\d+\\w}, \\h);\n+\\fill [fill = red!50] (\\d,0) rectangle ({\\d+\\w}, {\\h});\n+\\fill [fill = red!30] (\\d, {0.2*\\h}) rectangle ({\\d+\\w}, {\\h});\n+\\fill [fill = red!10] (\\d, {0.6*\\h}) rectangle ({\\d+\\w}, \\h);\n+\\draw [fill opacity=0] (\\d, 0) rectangle ({\\d+\\w}, \\h);", "@@ -29 +29,3 @@\n\n-\\draw [fill=red!60] (\\d, 0) rectangle ({\\d+\\w}, \\h);\n+\\draw [fill=red!10] (\\d, \\h) rectangle ({\\d+\\w}, {0.6*\\h});\n+\\draw [fill=red!30] (\\d, {0.6*\\h}) rectangle ({\\d+\\w}, {0.2*\\h});\n+\\draw [fill=red!50] (\\d, {0.2*\\h}) rectangle ({\\d+\\w}, 0);", "@@ -29 +29,4 @@\n\n-\\draw [fill=red!60] (\\d, 0) rectangle ({\\d+\\w}, \\h);\n+\\fill [fill = red!50] (\\d,0) rectangle ({\\d+\\w}, {0.4*\\h});\n+\\fill [fill = red!30] (\\d, {0.2*\\h}) rectangle ({\\d+\\w}, {0.7*\\h});\n+\\fill [fill = red!10] (\\d, {0.6*\\h}) rectangle ({\\d+\\w}, \\h);\n+\\draw [fill opacity=0] (\\d, 0) rectangle ({\\d+\\w}, \\h);", "@@ -29 +29,3 @@\n\n-\\draw [fill=red!60] (\\d, 0) rectangle ({\\d+\\w}, \\h);\n+\\fill [fill = red!10] (\\d, {0.6*\\h}) rectangle ({\\d+\\w}, \\h);\n+\\fill [fill = red!30] (\\d, {0.2*\\h}) rectangle ({\\d+\\w}, {\\h});\n+\\fill [fill = red!50] (\\d,0) rectangle ({\\d+\\w}, {\\h});" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath, amsthm, amssymb, amsfonts}\n\\usepackage{tikz, bbding, tikz-3dplot}\n\\usetikzlibrary{patterns}\n\\usetikzlibrary{matrix}\n\\usetikzlibrary{tikzmark}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{fit}\n\\usetikzlibrary{shadows.blur}\n\\usetikzlibrary{shapes.symbols}\n\\usetikzlibrary{shapes.geometric}\n\\usetikzlibrary{calc, decorations.pathreplacing}\n\n\\begin{document}\n\n\\begin{tikzpicture}[scale=1.5]\n\t\t\t\\def \\d {0.5}\n\t\t\t\\def \\w {1}\n\t\t\t\\def \\h {2}\n\t\t\t\n\t\t\t\\draw [line width = 1] (0,0) -- ({{6*\\d+4*\\w}},0);\n\t\t\t\n\t\t\t\\draw [dashed, line width = 0.5] (0, \\h) -- ({2.75*\\d+2*\\w}, \\h);\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.6*\\h}) -- ({2.75*\\d+2*\\w}, {0.6*\\h});\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.7*\\h}) -- ({3.75*\\d+3*\\w}, {0.7*\\h});\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.2*\\h}) -- ({3*\\d+2*\\w}, {0.2*\\h});\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.4*\\h}) -- ({5*\\d+4*\\w}, {0.4*\\h});\n\t\t\t\n\t\t\t\\draw [<->, line width = 0.5] ({\\d/2}, 0) -- ({\\d/2}, \\h) node [pos = 0.5, left] {$\\lambda$};\n\t\t\t\\draw [<->, line width = 0.5] ({2.5*\\d+2*\\w}, {0.6*\\h}) -- ({2.5*\\d+2*\\w}, {\\h}) node [pos = 0.5, right] {$\\mu$};\n\t\t\t\\draw [<->, line width = 0.5] ({3*\\d+2.5*\\w}, {0*\\h}) -- ({3*\\d+2.5*\\w}, {0.2*\\h}) node [pos = 0.5, left] {$\\lambda_1$};\n\t\t\t\\draw [<->, line width = 0.5] ({3.5*\\d+3*\\w}, {0*\\h}) -- ({3.5*\\d+3*\\w}, {0.7*\\h}) node [pos = 0.75, right] {$\\lambda_2$};\n\t\t\t\\draw [<->, line width = 0.5] ({4.5*\\d + 4*\\w}, {0*\\h}) -- ({4.5*\\d + 4*\\w}, {0.4*\\h}) node [pos = 0.5, right] {$\\lambda_3$};\n\t\t\t\n\t\t\t\\fill [fill = red!50] (\\d,0) rectangle ({\\d+\\w}, {\\h});\n\t\t\t\\fill [fill = red!30] (\\d, {0.2*\\h}) rectangle ({\\d+\\w}, {\\h});\n\t\t\t\\fill [fill = red!10] (\\d, {0.6*\\h}) rectangle ({\\d+\\w}, \\h);\n\t\t\t\\draw [fill opacity=0] (\\d, 0) rectangle ({\\d+\\w}, \\h);\n\t\t\t\n\t\t\t\\draw [fill = red!10] ({2*\\d+\\w}, {0.6*\\h}) rectangle ({2*\\d + 2*\\w}, \\h) node [pos = 0.5] {$A_1$};\n\t\t\t\\draw [fill = red!30] ({3*\\d+2*\\w}, {0.2*\\h}) rectangle ({3*\\d + 3*\\w}, {0.7*\\h}) node [pos = 0.5] {$A_2$};\n\t\t\t\\draw [fill = red!50] ({4*\\d+3*\\w}, {0*\\h}) rectangle ({4*\\d + 4*\\w}, {0.4*\\h}) node [pos = 0.5] {$A_3$};\n\t\t\t\n\t\t\\end{tikzpicture}\n\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath, amsthm, amssymb, amsfonts}\n\\usepackage{tikz, bbding, tikz-3dplot}\n\\usetikzlibrary{patterns}\n\\usetikzlibrary{matrix}\n\\usetikzlibrary{tikzmark}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{fit}\n\\usetikzlibrary{shadows.blur}\n\\usetikzlibrary{shapes.symbols}\n\\usetikzlibrary{shapes.geometric}\n\\usetikzlibrary{calc, decorations.pathreplacing}\n\n\\begin{document}\n\n\\begin{tikzpicture}[scale=1.5]\n\t\t\t\\def \\d {0.5}\n\t\t\t\\def \\w {1}\n\t\t\t\\def \\h {2}\n\t\t\t\n\t\t\t\\draw [line width = 1] (0,0) -- ({{6*\\d+4*\\w}},0);\n\t\t\t\n\t\t\t\\draw [dashed, line width = 0.5] (0, \\h) -- ({2.75*\\d+2*\\w}, \\h);\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.6*\\h}) -- ({2.75*\\d+2*\\w}, {0.6*\\h});\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.7*\\h}) -- ({3.75*\\d+3*\\w}, {0.7*\\h});\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.2*\\h}) -- ({3*\\d+2*\\w}, {0.2*\\h});\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.4*\\h}) -- ({5*\\d+4*\\w}, {0.4*\\h});\n\t\t\t\n\t\t\t\\draw [<->, line width = 0.5] ({\\d/2}, 0) -- ({\\d/2}, \\h) node [pos = 0.5, left] {$\\lambda$};\n\t\t\t\\draw [<->, line width = 0.5] ({2.5*\\d+2*\\w}, {0.6*\\h}) -- ({2.5*\\d+2*\\w}, {\\h}) node [pos = 0.5, right] {$\\mu$};\n\t\t\t\\draw [<->, line width = 0.5] ({3*\\d+2.5*\\w}, {0*\\h}) -- ({3*\\d+2.5*\\w}, {0.2*\\h}) node [pos = 0.5, left] {$\\lambda_1$};\n\t\t\t\\draw [<->, line width = 0.5] ({3.5*\\d+3*\\w}, {0*\\h}) -- ({3.5*\\d+3*\\w}, {0.7*\\h}) node [pos = 0.75, right] {$\\lambda_2$};\n\t\t\t\\draw [<->, line width = 0.5] ({4.5*\\d + 4*\\w}, {0*\\h}) -- ({4.5*\\d + 4*\\w}, {0.4*\\h}) node [pos = 0.5, right] {$\\lambda_3$};\n\t\t\t\n\t\t\t\\draw [fill=red!10] (\\d, \\h) rectangle ({\\d+\\w}, {0.6*\\h});\n\t\t\t\\draw [fill=red!30] (\\d, {0.6*\\h}) rectangle ({\\d+\\w}, {0.2*\\h});\n\t\t\t\\draw [fill=red!50] (\\d, {0.2*\\h}) rectangle ({\\d+\\w}, 0);\n\t\t\t\n\t\t\t\\draw [fill = red!10] ({2*\\d+\\w}, {0.6*\\h}) rectangle ({2*\\d + 2*\\w}, \\h) node [pos = 0.5] {$A_1$};\n\t\t\t\\draw [fill = red!30] ({3*\\d+2*\\w}, {0.2*\\h}) rectangle ({3*\\d + 3*\\w}, {0.7*\\h}) node [pos = 0.5] {$A_2$};\n\t\t\t\\draw [fill = red!50] ({4*\\d+3*\\w}, {0*\\h}) rectangle ({4*\\d + 4*\\w}, {0.4*\\h}) node [pos = 0.5] {$A_3$};\n\t\t\t\n\t\t\\end{tikzpicture}\n\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath, amsthm, amssymb, amsfonts}\n\\usepackage{tikz, bbding, tikz-3dplot}\n\\usetikzlibrary{patterns}\n\\usetikzlibrary{matrix}\n\\usetikzlibrary{tikzmark}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{fit}\n\\usetikzlibrary{shadows.blur}\n\\usetikzlibrary{shapes.symbols}\n\\usetikzlibrary{shapes.geometric}\n\\usetikzlibrary{calc, decorations.pathreplacing}\n\n\\begin{document}\n\n\\begin{tikzpicture}[scale=1.5]\n\t\t\t\\def \\d {0.5}\n\t\t\t\\def \\w {1}\n\t\t\t\\def \\h {2}\n\t\t\t\n\t\t\t\\draw [line width = 1] (0,0) -- ({{6*\\d+4*\\w}},0);\n\t\t\t\n\t\t\t\\draw [dashed, line width = 0.5] (0, \\h) -- ({2.75*\\d+2*\\w}, \\h);\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.6*\\h}) -- ({2.75*\\d+2*\\w}, {0.6*\\h});\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.7*\\h}) -- ({3.75*\\d+3*\\w}, {0.7*\\h});\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.2*\\h}) -- ({3*\\d+2*\\w}, {0.2*\\h});\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.4*\\h}) -- ({5*\\d+4*\\w}, {0.4*\\h});\n\t\t\t\n\t\t\t\\draw [<->, line width = 0.5] ({\\d/2}, 0) -- ({\\d/2}, \\h) node [pos = 0.5, left] {$\\lambda$};\n\t\t\t\\draw [<->, line width = 0.5] ({2.5*\\d+2*\\w}, {0.6*\\h}) -- ({2.5*\\d+2*\\w}, {\\h}) node [pos = 0.5, right] {$\\mu$};\n\t\t\t\\draw [<->, line width = 0.5] ({3*\\d+2.5*\\w}, {0*\\h}) -- ({3*\\d+2.5*\\w}, {0.2*\\h}) node [pos = 0.5, left] {$\\lambda_1$};\n\t\t\t\\draw [<->, line width = 0.5] ({3.5*\\d+3*\\w}, {0*\\h}) -- ({3.5*\\d+3*\\w}, {0.7*\\h}) node [pos = 0.75, right] {$\\lambda_2$};\n\t\t\t\\draw [<->, line width = 0.5] ({4.5*\\d + 4*\\w}, {0*\\h}) -- ({4.5*\\d + 4*\\w}, {0.4*\\h}) node [pos = 0.5, right] {$\\lambda_3$};\n\t\t\t\n\t\t\t\\fill [fill = red!50] (\\d,0) rectangle ({\\d+\\w}, {0.4*\\h});\n\t\t\t\\fill [fill = red!30] (\\d, {0.2*\\h}) rectangle ({\\d+\\w}, {0.7*\\h});\n\t\t\t\\fill [fill = red!10] (\\d, {0.6*\\h}) rectangle ({\\d+\\w}, \\h);\n\t\t\t\\draw [fill opacity=0] (\\d, 0) rectangle ({\\d+\\w}, \\h);\n\t\t\t\n\t\t\t\\draw [fill = red!10] ({2*\\d+\\w}, {0.6*\\h}) rectangle ({2*\\d + 2*\\w}, \\h) node [pos = 0.5] {$A_1$};\n\t\t\t\\draw [fill = red!30] ({3*\\d+2*\\w}, {0.2*\\h}) rectangle ({3*\\d + 3*\\w}, {0.7*\\h}) node [pos = 0.5] {$A_2$};\n\t\t\t\\draw [fill = red!50] ({4*\\d+3*\\w}, {0*\\h}) rectangle ({4*\\d + 4*\\w}, {0.4*\\h}) node [pos = 0.5] {$A_3$};\n\t\t\t\n\t\t\\end{tikzpicture}\n\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath, amsthm, amssymb, amsfonts}\n\\usepackage{tikz, bbding, tikz-3dplot}\n\\usetikzlibrary{patterns}\n\\usetikzlibrary{matrix}\n\\usetikzlibrary{tikzmark}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{fit}\n\\usetikzlibrary{shadows.blur}\n\\usetikzlibrary{shapes.symbols}\n\\usetikzlibrary{shapes.geometric}\n\\usetikzlibrary{calc, decorations.pathreplacing}\n\n\\begin{document}\n\n\\begin{tikzpicture}[scale=1.5]\n\t\t\t\\def \\d {0.5}\n\t\t\t\\def \\w {1}\n\t\t\t\\def \\h {2}\n\t\t\t\n\t\t\t\\draw [line width = 1] (0,0) -- ({{6*\\d+4*\\w}},0);\n\t\t\t\n\t\t\t\\draw [dashed, line width = 0.5] (0, \\h) -- ({2.75*\\d+2*\\w}, \\h);\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.6*\\h}) -- ({2.75*\\d+2*\\w}, {0.6*\\h});\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.7*\\h}) -- ({3.75*\\d+3*\\w}, {0.7*\\h});\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.2*\\h}) -- ({3*\\d+2*\\w}, {0.2*\\h});\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.4*\\h}) -- ({5*\\d+4*\\w}, {0.4*\\h});\n\t\t\t\n\t\t\t\\draw [<->, line width = 0.5] ({\\d/2}, 0) -- ({\\d/2}, \\h) node [pos = 0.5, left] {$\\lambda$};\n\t\t\t\\draw [<->, line width = 0.5] ({2.5*\\d+2*\\w}, {0.6*\\h}) -- ({2.5*\\d+2*\\w}, {\\h}) node [pos = 0.5, right] {$\\mu$};\n\t\t\t\\draw [<->, line width = 0.5] ({3*\\d+2.5*\\w}, {0*\\h}) -- ({3*\\d+2.5*\\w}, {0.2*\\h}) node [pos = 0.5, left] {$\\lambda_1$};\n\t\t\t\\draw [<->, line width = 0.5] ({3.5*\\d+3*\\w}, {0*\\h}) -- ({3.5*\\d+3*\\w}, {0.7*\\h}) node [pos = 0.75, right] {$\\lambda_2$};\n\t\t\t\\draw [<->, line width = 0.5] ({4.5*\\d + 4*\\w}, {0*\\h}) -- ({4.5*\\d + 4*\\w}, {0.4*\\h}) node [pos = 0.5, right] {$\\lambda_3$};\n\t\t\t\n\t\t\t\\fill [fill = red!10] (\\d, {0.6*\\h}) rectangle ({\\d+\\w}, \\h);\n\t\t\t\\fill [fill = red!30] (\\d, {0.2*\\h}) rectangle ({\\d+\\w}, {\\h});\n\t\t\t\\fill [fill = red!50] (\\d,0) rectangle ({\\d+\\w}, {\\h});\n\t\t\t\n\t\t\t\\draw [fill = red!10] ({2*\\d+\\w}, {0.6*\\h}) rectangle ({2*\\d + 2*\\w}, \\h) node [pos = 0.5] {$A_1$};\n\t\t\t\\draw [fill = red!30] ({3*\\d+2*\\w}, {0.2*\\h}) rectangle ({3*\\d + 3*\\w}, {0.7*\\h}) node [pos = 0.5] {$A_2$};\n\t\t\t\\draw [fill = red!50] ({4*\\d+3*\\w}, {0*\\h}) rectangle ({4*\\d + 4*\\w}, {0.4*\\h}) node [pos = 0.5] {$A_3$};\n\t\t\t\n\t\t\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath, amsthm, amssymb, amsfonts}\n\\usepackage{tikz, bbding, tikz-3dplot}\n\\usetikzlibrary{patterns}\n\\usetikzlibrary{matrix}\n\\usetikzlibrary{tikzmark}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{fit}\n\\usetikzlibrary{shadows.blur}\n\\usetikzlibrary{shapes.symbols}\n\\usetikzlibrary{shapes.geometric}\n\\usetikzlibrary{calc, decorations.pathreplacing}\n\n\\begin{document}\n\n\\begin{tikzpicture}[scale=1.5]\n\t\t\t\\def \\d {0.5}\n\t\t\t\\def \\w {1}\n\t\t\t\\def \\h {2}\n\t\t\t\n\t\t\t\\draw [line width = 1] (0,0) -- ({{6*\\d+4*\\w}},0);\n\t\t\t\n\t\t\t\\draw [dashed, line width = 0.5] (0, \\h) -- ({2.75*\\d+2*\\w}, \\h);\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.6*\\h}) -- ({2.75*\\d+2*\\w}, {0.6*\\h});\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.7*\\h}) -- ({3.75*\\d+3*\\w}, {0.7*\\h});\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.2*\\h}) -- ({3*\\d+2*\\w}, {0.2*\\h});\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.4*\\h}) -- ({5*\\d+4*\\w}, {0.4*\\h});\n\t\t\t\n\t\t\t\\draw [<->, line width = 0.5] ({\\d/2}, 0) -- ({\\d/2}, \\h) node [pos = 0.5, left] {$\\lambda$};\n\t\t\t\\draw [<->, line width = 0.5] ({2.5*\\d+2*\\w}, {0.6*\\h}) -- ({2.5*\\d+2*\\w}, {\\h}) node [pos = 0.5, right] {$\\mu$};\n\t\t\t\\draw [<->, line width = 0.5] ({3*\\d+2.5*\\w}, {0*\\h}) -- ({3*\\d+2.5*\\w}, {0.2*\\h}) node [pos = 0.5, left] {$\\lambda_1$};\n\t\t\t\\draw [<->, line width = 0.5] ({3.5*\\d+3*\\w}, {0*\\h}) -- ({3.5*\\d+3*\\w}, {0.7*\\h}) node [pos = 0.75, right] {$\\lambda_2$};\n\t\t\t\\draw [<->, line width = 0.5] ({4.5*\\d + 4*\\w}, {0*\\h}) -- ({4.5*\\d + 4*\\w}, {0.4*\\h}) node [pos = 0.5, right] {$\\lambda_3$};\n\t\t\t\n\t\t\t\\fill [fill = red!50] (\\d,0) rectangle ({\\d+\\w}, {\\h});\n\t\t\t\\fill [fill = red!30] (\\d, {0.2*\\h}) rectangle ({\\d+\\w}, {\\h});\n\t\t\t\\fill [fill = red!10] (\\d, {0.6*\\h}) rectangle ({\\d+\\w}, \\h);\n\t\t\t\\draw [fill opacity=0] (\\d, 0) rectangle ({\\d+\\w}, \\h);\n\t\t\t\n\t\t\t\\draw [fill = red!10] ({2*\\d+\\w}, {0.6*\\h}) rectangle ({2*\\d + 2*\\w}, \\h) node [pos = 0.5] {$A_1$};\n\t\t\t\\draw [fill = red!30] ({3*\\d+2*\\w}, {0.2*\\h}) rectangle ({3*\\d + 3*\\w}, {0.7*\\h}) node [pos = 0.5] {$A_2$};\n\t\t\t\\draw [fill = red!50] ({4*\\d+3*\\w}, {0*\\h}) rectangle ({4*\\d + 4*\\w}, {0.4*\\h}) node [pos = 0.5] {$A_3$};\n\t\t\t\n\t\t\\end{tikzpicture}\n\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath, amsthm, amssymb, amsfonts}\n\\usepackage{tikz, bbding, tikz-3dplot}\n\\usetikzlibrary{patterns}\n\\usetikzlibrary{matrix}\n\\usetikzlibrary{tikzmark}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{fit}\n\\usetikzlibrary{shadows.blur}\n\\usetikzlibrary{shapes.symbols}\n\\usetikzlibrary{shapes.geometric}\n\\usetikzlibrary{calc, decorations.pathreplacing}\n\n\\begin{document}\n\n\\begin{tikzpicture}[scale=1.5]\n\t\t\t\\def \\d {0.5}\n\t\t\t\\def \\w {1}\n\t\t\t\\def \\h {2}\n\t\t\t\n\t\t\t\\draw [line width = 1] (0,0) -- ({{6*\\d+4*\\w}},0);\n\t\t\t\n\t\t\t\\draw [dashed, line width = 0.5] (0, \\h) -- ({2.75*\\d+2*\\w}, \\h);\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.6*\\h}) -- ({2.75*\\d+2*\\w}, {0.6*\\h});\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.7*\\h}) -- ({3.75*\\d+3*\\w}, {0.7*\\h});\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.2*\\h}) -- ({3*\\d+2*\\w}, {0.2*\\h});\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.4*\\h}) -- ({5*\\d+4*\\w}, {0.4*\\h});\n\t\t\t\n\t\t\t\\draw [<->, line width = 0.5] ({\\d/2}, 0) -- ({\\d/2}, \\h) node [pos = 0.5, left] {$\\lambda$};\n\t\t\t\\draw [<->, line width = 0.5] ({2.5*\\d+2*\\w}, {0.6*\\h}) -- ({2.5*\\d+2*\\w}, {\\h}) node [pos = 0.5, right] {$\\mu$};\n\t\t\t\\draw [<->, line width = 0.5] ({3*\\d+2.5*\\w}, {0*\\h}) -- ({3*\\d+2.5*\\w}, {0.2*\\h}) node [pos = 0.5, left] {$\\lambda_1$};\n\t\t\t\\draw [<->, line width = 0.5] ({3.5*\\d+3*\\w}, {0*\\h}) -- ({3.5*\\d+3*\\w}, {0.7*\\h}) node [pos = 0.75, right] {$\\lambda_2$};\n\t\t\t\\draw [<->, line width = 0.5] ({4.5*\\d + 4*\\w}, {0*\\h}) -- ({4.5*\\d + 4*\\w}, {0.4*\\h}) node [pos = 0.5, right] {$\\lambda_3$};\n\t\t\t\n\t\t\t\\draw [fill=red!10] (\\d, \\h) rectangle ({\\d+\\w}, {0.6*\\h});\n\t\t\t\\draw [fill=red!30] (\\d, {0.6*\\h}) rectangle ({\\d+\\w}, {0.2*\\h});\n\t\t\t\\draw [fill=red!50] (\\d, {0.2*\\h}) rectangle ({\\d+\\w}, 0);\n\t\t\t\n\t\t\t\\draw [fill = red!10] ({2*\\d+\\w}, {0.6*\\h}) rectangle ({2*\\d + 2*\\w}, \\h) node [pos = 0.5] {$A_1$};\n\t\t\t\\draw [fill = red!30] ({3*\\d+2*\\w}, {0.2*\\h}) rectangle ({3*\\d + 3*\\w}, {0.7*\\h}) node [pos = 0.5] {$A_2$};\n\t\t\t\\draw [fill = red!50] ({4*\\d+3*\\w}, {0*\\h}) rectangle ({4*\\d + 4*\\w}, {0.4*\\h}) node [pos = 0.5] {$A_3$};\n\t\t\t\n\t\t\\end{tikzpicture}\n\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath, amsthm, amssymb, amsfonts}\n\\usepackage{tikz, bbding, tikz-3dplot}\n\\usetikzlibrary{patterns}\n\\usetikzlibrary{matrix}\n\\usetikzlibrary{tikzmark}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{fit}\n\\usetikzlibrary{shadows.blur}\n\\usetikzlibrary{shapes.symbols}\n\\usetikzlibrary{shapes.geometric}\n\\usetikzlibrary{calc, decorations.pathreplacing}\n\n\\begin{document}\n\n\\begin{tikzpicture}[scale=1.5]\n\t\t\t\\def \\d {0.5}\n\t\t\t\\def \\w {1}\n\t\t\t\\def \\h {2}\n\t\t\t\n\t\t\t\\draw [line width = 1] (0,0) -- ({{6*\\d+4*\\w}},0);\n\t\t\t\n\t\t\t\\draw [dashed, line width = 0.5] (0, \\h) -- ({2.75*\\d+2*\\w}, \\h);\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.6*\\h}) -- ({2.75*\\d+2*\\w}, {0.6*\\h});\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.7*\\h}) -- ({3.75*\\d+3*\\w}, {0.7*\\h});\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.2*\\h}) -- ({3*\\d+2*\\w}, {0.2*\\h});\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.4*\\h}) -- ({5*\\d+4*\\w}, {0.4*\\h});\n\t\t\t\n\t\t\t\\draw [<->, line width = 0.5] ({\\d/2}, 0) -- ({\\d/2}, \\h) node [pos = 0.5, left] {$\\lambda$};\n\t\t\t\\draw [<->, line width = 0.5] ({2.5*\\d+2*\\w}, {0.6*\\h}) -- ({2.5*\\d+2*\\w}, {\\h}) node [pos = 0.5, right] {$\\mu$};\n\t\t\t\\draw [<->, line width = 0.5] ({3*\\d+2.5*\\w}, {0*\\h}) -- ({3*\\d+2.5*\\w}, {0.2*\\h}) node [pos = 0.5, left] {$\\lambda_1$};\n\t\t\t\\draw [<->, line width = 0.5] ({3.5*\\d+3*\\w}, {0*\\h}) -- ({3.5*\\d+3*\\w}, {0.7*\\h}) node [pos = 0.75, right] {$\\lambda_2$};\n\t\t\t\\draw [<->, line width = 0.5] ({4.5*\\d + 4*\\w}, {0*\\h}) -- ({4.5*\\d + 4*\\w}, {0.4*\\h}) node [pos = 0.5, right] {$\\lambda_3$};\n\t\t\t\n\t\t\t\\fill [fill = red!50] (\\d,0) rectangle ({\\d+\\w}, {0.4*\\h});\n\t\t\t\\fill [fill = red!30] (\\d, {0.2*\\h}) rectangle ({\\d+\\w}, {0.7*\\h});\n\t\t\t\\fill [fill = red!10] (\\d, {0.6*\\h}) rectangle ({\\d+\\w}, \\h);\n\t\t\t\\draw [fill opacity=0] (\\d, 0) rectangle ({\\d+\\w}, \\h);\n\t\t\t\n\t\t\t\\draw [fill = red!10] ({2*\\d+\\w}, {0.6*\\h}) rectangle ({2*\\d + 2*\\w}, \\h) node [pos = 0.5] {$A_1$};\n\t\t\t\\draw [fill = red!30] ({3*\\d+2*\\w}, {0.2*\\h}) rectangle ({3*\\d + 3*\\w}, {0.7*\\h}) node [pos = 0.5] {$A_2$};\n\t\t\t\\draw [fill = red!50] ({4*\\d+3*\\w}, {0*\\h}) rectangle ({4*\\d + 4*\\w}, {0.4*\\h}) node [pos = 0.5] {$A_3$};\n\t\t\t\n\t\t\\end{tikzpicture}\n\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath, amsthm, amssymb, amsfonts}\n\\usepackage{tikz, bbding, tikz-3dplot}\n\\usetikzlibrary{patterns}\n\\usetikzlibrary{matrix}\n\\usetikzlibrary{tikzmark}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{fit}\n\\usetikzlibrary{shadows.blur}\n\\usetikzlibrary{shapes.symbols}\n\\usetikzlibrary{shapes.geometric}\n\\usetikzlibrary{calc, decorations.pathreplacing}\n\n\\begin{document}\n\n\\begin{tikzpicture}[scale=1.5]\n\t\t\t\\def \\d {0.5}\n\t\t\t\\def \\w {1}\n\t\t\t\\def \\h {2}\n\t\t\t\n\t\t\t\\draw [line width = 1] (0,0) -- ({{6*\\d+4*\\w}},0);\n\t\t\t\n\t\t\t\\draw [dashed, line width = 0.5] (0, \\h) -- ({2.75*\\d+2*\\w}, \\h);\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.6*\\h}) -- ({2.75*\\d+2*\\w}, {0.6*\\h});\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.7*\\h}) -- ({3.75*\\d+3*\\w}, {0.7*\\h});\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.2*\\h}) -- ({3*\\d+2*\\w}, {0.2*\\h});\n\t\t\t\\draw [dashed, line width = 0.5] ({\\d+\\w}, {0.4*\\h}) -- ({5*\\d+4*\\w}, {0.4*\\h});\n\t\t\t\n\t\t\t\\draw [<->, line width = 0.5] ({\\d/2}, 0) -- ({\\d/2}, \\h) node [pos = 0.5, left] {$\\lambda$};\n\t\t\t\\draw [<->, line width = 0.5] ({2.5*\\d+2*\\w}, {0.6*\\h}) -- ({2.5*\\d+2*\\w}, {\\h}) node [pos = 0.5, right] {$\\mu$};\n\t\t\t\\draw [<->, line width = 0.5] ({3*\\d+2.5*\\w}, {0*\\h}) -- ({3*\\d+2.5*\\w}, {0.2*\\h}) node [pos = 0.5, left] {$\\lambda_1$};\n\t\t\t\\draw [<->, line width = 0.5] ({3.5*\\d+3*\\w}, {0*\\h}) -- ({3.5*\\d+3*\\w}, {0.7*\\h}) node [pos = 0.75, right] {$\\lambda_2$};\n\t\t\t\\draw [<->, line width = 0.5] ({4.5*\\d + 4*\\w}, {0*\\h}) -- ({4.5*\\d + 4*\\w}, {0.4*\\h}) node [pos = 0.5, right] {$\\lambda_3$};\n\t\t\t\n\t\t\t\\fill [fill = red!10] (\\d, {0.6*\\h}) rectangle ({\\d+\\w}, \\h);\n\t\t\t\\fill [fill = red!30] (\\d, {0.2*\\h}) rectangle ({\\d+\\w}, {\\h});\n\t\t\t\\fill [fill = red!50] (\\d,0) rectangle ({\\d+\\w}, {\\h});\n\t\t\t\n\t\t\t\\draw [fill = red!10] ({2*\\d+\\w}, {0.6*\\h}) rectangle ({2*\\d + 2*\\w}, \\h) node [pos = 0.5] {$A_1$};\n\t\t\t\\draw [fill = red!30] ({3*\\d+2*\\w}, {0.2*\\h}) rectangle ({3*\\d + 3*\\w}, {0.7*\\h}) node [pos = 0.5] {$A_2$};\n\t\t\t\\draw [fill = red!50] ({4*\\d+3*\\w}, {0*\\h}) rectangle ({4*\\d + 4*\\w}, {0.4*\\h}) node [pos = 0.5] {$A_3$};\n\t\t\t\n\t\t\\end{tikzpicture}\n\n\\end{document}" ]
[ 1 ]
slope_angle_reduced
\documentclass[tikz,border=5]{standalone} \usepackage{physics} \usepackage{tikz} \usetikzlibrary{angles,quotes} \usetikzlibrary{bending} \tikzset{>=latex} \colorlet{myred}{red!65!black} \colorlet{metalcol}{blue!25!black!30!white} \tikzstyle{mass}=[line width=0.6,red!30!black,fill=red!40!black!10,rounded corners=1, top color=red!40!black!20,bottom color=red!40!black!10,shading angle=20] \tikzstyle{rod}=[line width=0.5,red!30!black,fill=red!40!black!30,rounded corners=1, top color=red!40!black!60,bottom color=red!40!black!30,shading angle=90] \begin{document} \begin{tikzpicture} \def\height{0.4} \def\width{0.5} \def\rLength{1.5} \def\rThickness{0.15} \def\gWidth{2.8} \def\gAng{28} \coordinate (R) at ({\gWidth*cos(\gAng)},0); \coordinate (L) at (0,0); \coordinate (T) at (0,{\gWidth*sin(\gAng)}); \coordinate (P) at ({-\rThickness/2+0.33*\width*sin(\gAng)},{\gWidth*sin(\gAng)+\rLength+0.25*\width*cos(\gAng)}); \draw[fill=metalcol] (P) circle(0.9*\rThickness); \draw[rod,opacity=0.25] (P)++(\rThickness/2,\rThickness/2) rectangle++ (-\rLength,-\rThickness); \draw[rod] (P)++(-\rThickness/2,\rThickness/2) rectangle++ (\rThickness,-\rLength) node[midway,above=2,right=1] {$l$, $\rho$}; \draw[fill=metalcol,line width=0.3] (P) circle(0.03); \draw[->] (P)++(195:0.7*\rLength) arc(170:280:0.4*\rLength); \draw[line width=0.6,top color=blue!20!black!30,bottom color=white,shading angle=160-\gAng] (L) -- (T) -- (R) node[pos=0.55,above] {$\mu$} -- cycle; \draw[mass,rotate=-\gAng] (-0.03*\width,0)++(90+\gAng:{\gWidth*sin(\gAng)}) rectangle++ (\width,\height) node[midway,rotate=-\gAng] {$m$}; \draw pic["$\theta$",draw=black,angle radius=22,angle eccentricity=1.3] {angle=T--R--L}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{physics} \usepackage{tikz} \usetikzlibrary{angles,quotes} % for angle label \usetikzlibrary{bending} % for arrow head angle \tikzset{>=latex} % for LaTeX arrow head \colorlet{myred}{red!65!black} \colorlet{metalcol}{blue!25!black!30!white} \tikzstyle{mass}=[line width=0.6,red!30!black,fill=red!40!black!10,rounded corners=1, top color=red!40!black!20,bottom color=red!40!black!10,shading angle=20] \tikzstyle{rod}=[line width=0.5,red!30!black,fill=red!40!black!30,rounded corners=1, top color=red!40!black!60,bottom color=red!40!black!30,shading angle=90] \begin{document} % INCLINED ground \begin{tikzpicture} \def\height{0.4} % mass height \def\width{0.5} % mass width \def\rLength{1.5} % rod length \def\rThickness{0.15} % rod thickness \def\gWidth{2.8} % inclined ground width \def\gAng{28} % inclined ground angle \coordinate (R) at ({\gWidth*cos(\gAng)},0); % right corner inclined ground \coordinate (L) at (0,0); % left corner inclined ground \coordinate (T) at (0,{\gWidth*sin(\gAng)}); % top inclined ground \coordinate (P) at ({-\rThickness/2+0.33*\width*sin(\gAng)},{\gWidth*sin(\gAng)+\rLength+0.25*\width*cos(\gAng)}); % rod pivot point % ROD \draw[fill=metalcol] (P) circle(0.9*\rThickness); \draw[rod,opacity=0.25] (P)++(\rThickness/2,\rThickness/2) rectangle++ (-\rLength,-\rThickness); \draw[rod] (P)++(-\rThickness/2,\rThickness/2) rectangle++ (\rThickness,-\rLength) node[midway,above=2,right=1] {$l$, $\rho$}; %\ell \draw[fill=metalcol,line width=0.3] (P) circle(0.03); \draw[->] (P)++(195:0.7*\rLength) arc(170:280:0.4*\rLength); % MASS ON INCLINED GROUND \draw[line width=0.6,top color=blue!20!black!30,bottom color=white,shading angle=160-\gAng] (L) -- (T) -- (R) node[pos=0.55,above] {$\mu$} -- cycle; \draw[mass,rotate=-\gAng] (-0.03*\width,0)++(90+\gAng:{\gWidth*sin(\gAng)}) rectangle++ (\width,\height) node[midway,rotate=-\gAng] {$m$}; \draw pic["$\theta$",draw=black,angle radius=22,angle eccentricity=1.3] {angle=T--R--L}; \end{tikzpicture} \end{document}
Reduce the angle of the slope by half.
Mechanical diagram of a rod pushing a box on a small slope
easy
update
scientific
[ "@@ -20 +20 @@\n\n-\\def\\gAng{28}\n+\\def\\gAng{14}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{physics}\n\\usepackage{tikz}\n\\usetikzlibrary{angles,quotes} \n\\usetikzlibrary{bending} \n\\tikzset{>=latex} \n\n\\colorlet{myred}{red!65!black}\n\\colorlet{metalcol}{blue!25!black!30!white}\n\\tikzstyle{mass}=[line width=0.6,red!30!black,fill=red!40!black!10,rounded corners=1,\n top color=red!40!black!20,bottom color=red!40!black!10,shading angle=20]\n\\tikzstyle{rod}=[line width=0.5,red!30!black,fill=red!40!black!30,rounded corners=1,\n top color=red!40!black!60,bottom color=red!40!black!30,shading angle=90]\n\n\\begin{document}\n\n\n\\begin{tikzpicture}\n \\def\\height{0.4} \n \\def\\width{0.5} \n \\def\\rLength{1.5} \n \\def\\rThickness{0.15} \n \\def\\gWidth{2.8} \n \\def\\gAng{14} \n \\coordinate (R) at ({\\gWidth*cos(\\gAng)},0); \n \\coordinate (L) at (0,0); \n \\coordinate (T) at (0,{\\gWidth*sin(\\gAng)}); \n \\coordinate (P) at ({-\\rThickness/2+0.33*\\width*sin(\\gAng)},{\\gWidth*sin(\\gAng)+\\rLength+0.25*\\width*cos(\\gAng)}); \n \n \\draw[fill=metalcol] (P) circle(0.9*\\rThickness);\n \\draw[rod,opacity=0.25] (P)++(\\rThickness/2,\\rThickness/2) rectangle++ (-\\rLength,-\\rThickness);\n \\draw[rod] (P)++(-\\rThickness/2,\\rThickness/2) rectangle++ (\\rThickness,-\\rLength)\n node[midway,above=2,right=1] {$l$, $\\rho$}; \n \\draw[fill=metalcol,line width=0.3] (P) circle(0.03);\n \\draw[->] (P)++(195:0.7*\\rLength) arc(170:280:0.4*\\rLength);\n \n \\draw[line width=0.6,top color=blue!20!black!30,bottom color=white,shading angle=160-\\gAng]\n (L) -- (T) -- (R) node[pos=0.55,above] {$\\mu$} -- cycle;\n \\draw[mass,rotate=-\\gAng] (-0.03*\\width,0)++(90+\\gAng:{\\gWidth*sin(\\gAng)}) rectangle++ (\\width,\\height) node[midway,rotate=-\\gAng] {$m$};\n \\draw pic[\"$\\theta$\",draw=black,angle radius=22,angle eccentricity=1.3] {angle=T--R--L};\n \n\\end{tikzpicture}\n\n\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{physics}\n\\usepackage{tikz}\n\\usetikzlibrary{angles,quotes} \n\\usetikzlibrary{bending} \n\\tikzset{>=latex} \n\n\\colorlet{myred}{red!65!black}\n\\colorlet{metalcol}{blue!25!black!30!white}\n\\tikzstyle{mass}=[line width=0.6,red!30!black,fill=red!40!black!10,rounded corners=1,\n top color=red!40!black!20,bottom color=red!40!black!10,shading angle=20]\n\\tikzstyle{rod}=[line width=0.5,red!30!black,fill=red!40!black!30,rounded corners=1,\n top color=red!40!black!60,bottom color=red!40!black!30,shading angle=90]\n\n\\begin{document}\n\n\n\\begin{tikzpicture}\n \\def\\height{0.4} \n \\def\\width{0.5} \n \\def\\rLength{1.5} \n \\def\\rThickness{0.15} \n \\def\\gWidth{2.8} \n \\def\\gAng{14} \n \\coordinate (R) at ({\\gWidth*cos(\\gAng)},0); \n \\coordinate (L) at (0,0); \n \\coordinate (T) at (0,{\\gWidth*sin(\\gAng)}); \n \\coordinate (P) at ({-\\rThickness/2+0.33*\\width*sin(\\gAng)},{\\gWidth*sin(\\gAng)+\\rLength+0.25*\\width*cos(\\gAng)}); \n \n \\draw[fill=metalcol] (P) circle(0.9*\\rThickness);\n \\draw[rod,opacity=0.25] (P)++(\\rThickness/2,\\rThickness/2) rectangle++ (-\\rLength,-\\rThickness);\n \\draw[rod] (P)++(-\\rThickness/2,\\rThickness/2) rectangle++ (\\rThickness,-\\rLength)\n node[midway,above=2,right=1] {$l$, $\\rho$}; \n \\draw[fill=metalcol,line width=0.3] (P) circle(0.03);\n \\draw[->] (P)++(195:0.7*\\rLength) arc(170:280:0.4*\\rLength);\n \n \\draw[line width=0.6,top color=blue!20!black!30,bottom color=white,shading angle=160-\\gAng]\n (L) -- (T) -- (R) node[pos=0.55,above] {$\\mu$} -- cycle;\n \\draw[mass,rotate=-\\gAng] (-0.03*\\width,0)++(90+\\gAng:{\\gWidth*sin(\\gAng)}) rectangle++ (\\width,\\height) node[midway,rotate=-\\gAng] {$m$};\n \\draw pic[\"$\\theta$\",draw=black,angle radius=22,angle eccentricity=1.3] {angle=T--R--L};\n \n\\end{tikzpicture}\n\n\n\n\\end{document}" ]
[ 16 ]
slope_to_circle
\documentclass[tikz,border=5]{standalone} \usepackage{physics} \usepackage{tikz} \usetikzlibrary{angles,quotes} \usetikzlibrary{bending} \tikzset{>=latex} \colorlet{myred}{red!65!black} \colorlet{metalcol}{blue!25!black!30!white} \tikzstyle{mass}=[line width=0.6,red!30!black,fill=red!40!black!10,rounded corners=1, top color=red!40!black!20,bottom color=red!40!black!10,shading angle=20] \tikzstyle{rod}=[line width=0.5,red!30!black,fill=red!40!black!30,rounded corners=1, top color=red!40!black!60,bottom color=red!40!black!30,shading angle=90] \begin{document} \begin{tikzpicture} \def\height{0.4} \def\width{0.5} \def\rLength{1.5} \def\rThickness{0.15} \def\gWidth{2.8} \def\gAng{28} \coordinate (R) at ({\gWidth*cos(\gAng)},0); \coordinate (L) at (0,0); \coordinate (T) at (0,{\gWidth*sin(\gAng)}); \coordinate (P) at ({-\rThickness/2+0.33*\width*sin(\gAng)},{\gWidth*sin(\gAng)+\rLength+0.25*\width*cos(\gAng)}); \draw[fill=metalcol] (P) circle(0.9*\rThickness); \draw[rod,opacity=0.25] (P)++(\rThickness/2,\rThickness/2) rectangle++ (-\rLength,-\rThickness); \draw[rod] (P)++(-\rThickness/2,\rThickness/2) rectangle++ (\rThickness,-\rLength) node[midway,above=2,right=1] {$l$, $\rho$}; \draw[fill=metalcol,line width=0.3] (P) circle(0.03); \draw[->] (P)++(195:0.7*\rLength) arc(170:280:0.4*\rLength); \draw[line width=0.6,top color=blue!20!black!30,bottom color=white,shading angle=160-\gAng] (L) -- (T) -- (R) node[pos=0.55,above] {$\mu$} -- cycle; \draw[mass,rotate=-\gAng] (-0.03*\width,0)++(90+\gAng:{\gWidth*sin(\gAng)}) rectangle++ (\width,\height) node[midway,rotate=-\gAng] {$m$}; \draw pic["$\theta$",draw=black,angle radius=22,angle eccentricity=1.3] {angle=T--R--L}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{physics} \usepackage{tikz} \usetikzlibrary{angles,quotes} % for angle label \usetikzlibrary{bending} % for arrow head angle \tikzset{>=latex} % for LaTeX arrow head \colorlet{myred}{red!65!black} \colorlet{metalcol}{blue!25!black!30!white} \tikzstyle{mass}=[line width=0.6,red!30!black,fill=red!40!black!10,rounded corners=1, top color=red!40!black!20,bottom color=red!40!black!10,shading angle=20] \tikzstyle{rod}=[line width=0.5,red!30!black,fill=red!40!black!30,rounded corners=1, top color=red!40!black!60,bottom color=red!40!black!30,shading angle=90] \begin{document} % INCLINED ground \begin{tikzpicture} \def\height{0.4} % mass height \def\width{0.5} % mass width \def\rLength{1.5} % rod length \def\rThickness{0.15} % rod thickness \def\gWidth{2.8} % inclined ground width \def\gAng{28} % inclined ground angle \coordinate (R) at ({\gWidth*cos(\gAng)},0); % right corner inclined ground \coordinate (L) at (0,0); % left corner inclined ground \coordinate (T) at (0,{\gWidth*sin(\gAng)}); % top inclined ground \coordinate (P) at ({-\rThickness/2+0.33*\width*sin(\gAng)},{\gWidth*sin(\gAng)+\rLength+0.25*\width*cos(\gAng)}); % rod pivot point % ROD \draw[fill=metalcol] (P) circle(0.9*\rThickness); \draw[rod,opacity=0.25] (P)++(\rThickness/2,\rThickness/2) rectangle++ (-\rLength,-\rThickness); \draw[rod] (P)++(-\rThickness/2,\rThickness/2) rectangle++ (\rThickness,-\rLength) node[midway,above=2,right=1] {$l$, $\rho$}; %\ell \draw[fill=metalcol,line width=0.3] (P) circle(0.03); \draw[->] (P)++(195:0.7*\rLength) arc(170:280:0.4*\rLength); % MASS ON INCLINED GROUND \draw[line width=0.6,top color=blue!20!black!30,bottom color=white,shading angle=160-\gAng] (L) -- (T) -- (R) node[pos=0.55,above] {$\mu$} -- cycle; \draw[mass,rotate=-\gAng] (-0.03*\width,0)++(90+\gAng:{\gWidth*sin(\gAng)}) rectangle++ (\width,\height) node[midway,rotate=-\gAng] {$m$}; \draw pic["$\theta$",draw=black,angle radius=22,angle eccentricity=1.3] {angle=T--R--L}; \end{tikzpicture} \end{document}
Change the mass to a circle.
Mechanical diagram of a rod pushing a circle on a slope
hard
update
scientific
[ "@@ -15,2 +15 @@\n\n-\\def\\height{0.4}\n-\\def\\width{0.5}\n+\\def\\radius{0.3}\n@@ -24 +23 @@\n\n-\\coordinate (P) at ({-\\rThickness/2+0.33*\\width*sin(\\gAng)},{\\gWidth*sin(\\gAng)+\\rLength+0.25*\\width*cos(\\gAng)});\n+\\coordinate (P) at ({-\\rThickness/2+0.33*\\radius*sin(\\gAng)},{\\gWidth*sin(\\gAng)+\\rLength+0.25*\\radius*cos(\\gAng)});\n@@ -33 +32,4 @@\n\n-\\draw[mass,rotate=-\\gAng] (-0.03*\\width,0)++(90+\\gAng:{\\gWidth*sin(\\gAng)}) rectangle++ (\\width,\\height) node[midway,rotate=-\\gAng] {$m$};\n+\\draw[mass,rotate=-\\gAng] (-0.03*\\radius,0)++(90+\\gAng:{\\gWidth*sin(\\gAng)}) coordinate (A)\n+++(\\radius,\\radius) coordinate (center)\n+circle (\\radius);\n+\\node at (center) {$m$};" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{physics}\n\\usepackage{tikz}\n\\usetikzlibrary{angles,quotes} \n\\usetikzlibrary{bending} \n\\tikzset{>=latex} \n\n\\colorlet{myred}{red!65!black}\n\\colorlet{metalcol}{blue!25!black!30!white}\n\\tikzstyle{mass}=[line width=0.6,red!30!black,fill=red!40!black!10,rounded corners=1,\n top color=red!40!black!20,bottom color=red!40!black!10,shading angle=20]\n\\tikzstyle{rod}=[line width=0.5,red!30!black,fill=red!40!black!30,rounded corners=1,\n top color=red!40!black!60,bottom color=red!40!black!30,shading angle=90]\n\n\\begin{document}\n\n\n\\begin{tikzpicture}\n \\def§def(\\radius){0.3} \n \\def\\rLength{1.5} \n \\def\\rThickness{0.15} \n \\def\\gWidth{2.8} \n \\def\\gAng{28} \n \\coordinate (R) at ({\\gWidth*cos(\\gAng)},0); \n \\coordinate (L) at (0,0); \n \\coordinate (T) at (0,{\\gWidth*sin(\\gAng)}); \n \\coordinate (P) at ({-\\rThickness/2+0.33*\\radius*sin(\\gAng)},{\\gWidth*sin(\\gAng)+\\rLength+0.25*\\radius*cos(\\gAng)}); \n \n \\draw[fill=metalcol] (P) circle(0.9*\\rThickness);\n \\draw[rod,opacity=0.25] (P)++(\\rThickness/2,\\rThickness/2) rectangle++ (-\\rLength,-\\rThickness);\n \\draw[rod] (P)++(-\\rThickness/2,\\rThickness/2) rectangle++ (\\rThickness,-\\rLength)\n node[midway,above=2,right=1] {$l$, $\\rho$}; \n \\draw[fill=metalcol,line width=0.3] (P) circle(0.03);\n \\draw[->] (P)++(195:0.7*\\rLength) arc(170:280:0.4*\\rLength);\n \n \\draw[line width=0.6,top color=blue!20!black!30,bottom color=white,shading angle=160-\\gAng]\n (L) -- (T) -- (R) node[pos=0.55,above] {$\\mu$} -- cycle;\n \\draw[mass,rotate=-\\gAng] (-0.03*\\radius,0)++(90+\\gAng:{\\gWidth*sin(\\gAng)}) coordinate (A) \n ++(\\radius,\\radius) coordinate (center) \n circle (\\radius);\n\n \\node at (center) {$m$};\n \\draw pic[\"$\\theta$\",draw=black,angle radius=22,angle eccentricity=1.3] {angle=T--R--L};\n \n\\end{tikzpicture}\n\n\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{physics}\n\\usepackage{tikz}\n\\usetikzlibrary{angles,quotes} \n\\usetikzlibrary{bending} \n\\tikzset{>=latex} \n\n\\colorlet{myred}{red!65!black}\n\\colorlet{metalcol}{blue!25!black!30!white}\n\\tikzstyle{mass}=[line width=0.6,red!30!black,fill=red!40!black!10,rounded corners=1,\n top color=red!40!black!20,bottom color=red!40!black!10,shading angle=20]\n\\tikzstyle{rod}=[line width=0.5,red!30!black,fill=red!40!black!30,rounded corners=1,\n top color=red!40!black!60,bottom color=red!40!black!30,shading angle=90]\n\n\\begin{document}\n\n\n\\begin{tikzpicture}\n \\def\\radius{0.3} \n \\def\\rLength{1.5} \n \\def\\rThickness{0.15} \n \\def\\gWidth{2.8} \n \\def\\gAng{28} \n \\coordinate (R) at ({\\gWidth*cos(\\gAng)},0); \n \\coordinate (L) at (0,0); \n \\coordinate (T) at (0,{\\gWidth*sin(\\gAng)}); \n \\coordinate (P) at ({-\\rThickness/2+0.33*\\radius*sin(\\gAng)},{\\gWidth*sin(\\gAng)+\\rLength+0.25*\\radius*cos(\\gAng)}); \n \n \\draw[fill=metalcol] (P) circle(0.9*\\rThickness);\n \\draw[rod,opacity=0.25] (P)++(\\rThickness/2,\\rThickness/2) rectangle++ (-\\rLength,-\\rThickness);\n \\draw[rod] (P)++(-\\rThickness/2,\\rThickness/2) rectangle++ (\\rThickness,-\\rLength)\n node[midway,above=2,right=1] {$l$, $\\rho$}; \n \\draw[fill=metalcol,line width=0.3] (P) circle(0.03);\n \\draw[->] (P)++(195:0.7*\\rLength) arc(170:280:0.4*\\rLength);\n \n \\draw[line width=0.6,top color=blue!20!black!30,bottom color=white,shading angle=160-\\gAng]\n (L) -- (T) -- (R) node[pos=0.55,above] {$\\mu$} -- cycle;\n \\draw[mass,rotate=-\\gAng] (-0.03*\\radius,0)++(90+\\gAng:{\\gWidth*sin(\\gAng)}) coordinate (A) \n ++(\\radius,\\radius) coordinate (center) \n circle (\\radius);\n\n \\node at (center) {$m$};\n \\draw pic[\"$\\theta$\",draw=black,angle radius=22,angle eccentricity=1.3] {angle=T--R--L};\n \n\\end{tikzpicture}\n\n\n\n\\end{document}" ]
[ 160 ]
sphere_removed
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \usepackage{amsmath} \usepackage{amssymb} \begin{document} \begin{tikzpicture}[scale=.5] \shade[ball color = gray!40, opacity = 0.5] (1,2) circle (1cm); \draw (1,2) circle (1cm); \draw (0,2) arc (180:360: 1 and 0.3); \draw[dashed] (2,2) arc (0:180:1 and 0.3); \fill[fill=black] (1,2) circle (1pt); \draw[->,thick] (1,3) -- node[above]{$r$} (1.2,3); \draw (0.8,3) -- (0.8,1); \draw (1.2,3) -- (1.2,1); \draw (1,3) ellipse (0.2 and 0.05); \draw (0.8,1) arc (180:360:0.2 and 0.05); \draw [dashed] (0.8,1) arc (180:360: 0.2 and -0.05); \shade [xshift=3cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm); \draw [xshift=3cm](1,2) circle (1cm); \draw [xshift=3cm](0,2) arc (180:360: 1 and 0.3); \draw[xshift=3cm][dashed] (2,2) arc (0:180:1 and 0.3); \fill[xshift=3cm][fill=black] (1,2) circle (1pt); \draw [xshift=3cm] [->,thick] (1,3) -- node[above]{$r$} (1.2,3); \draw [xshift=3cm](0.8,3) -- (0.8,1); \draw [xshift=3cm](1.2,3) -- (1.2,1); \draw [xshift=3cm](1,3) ellipse (0.2 and 0.05); \draw [xshift=3cm](0.8,1) arc (180:360:0.2 and 0.05); \draw [xshift=3cm][dashed] (0.8,1) arc (180:360: 0.2 and -0.05); \draw[->, thick] (5.5,2) -- (7.5,2); \shade [xshift=8cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm); \draw [xshift=8cm](1,2) circle (1cm); \draw [xshift=8cm] (0,2) arc (180:360: 1 and 0.3); \draw [xshift=8cm] [dashed] (2,2) arc (0:180:1 and 0.3); \fill [xshift=8cm] [fill=black] (1,2) circle (1pt); \draw [xshift=8cm] [->,thick] (1,3) -- node[above right]{$\lambda r$} (1.4,3); \draw [xshift=8cm](0.6,3) -- (0.6,1); \draw [xshift=8cm](1.4,3) -- (1.4,1); \draw [xshift=8cm](1,3) ellipse (0.4 and 0.1); \draw [xshift=8cm](0.6,1) arc (180:360:0.4 and 0.1); \draw [xshift=8cm][dashed] (0.6,1) arc (180:360: 0.4 and -0.1); \shade [xshift=11cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm); \draw [xshift=11cm](1,2) circle (1cm); \draw [xshift=11cm](0,2) arc (180:360: 1 and 0.3); \draw [xshift=11cm][dashed] (2,2) arc (0:180:1 and 0.3); \fill [xshift=11cm][fill=black] (1,2) circle (1pt); \draw [xshift=11cm] [->,thick] (1,3) -- node[above right]{$\lambda r$} (1.4,3); \draw [xshift=11cm](0.6,3) -- (0.6,1); \draw [xshift=11cm](1.4,3) -- (1.4,1); \draw [xshift=11cm](1,3) ellipse (0.4 and 0.1); \draw [xshift=11cm](0.6,1) arc (180:360:0.4 and 0.1); \draw [xshift=11cm][dashed] (0.6,1) arc (180:360: 0.4 and -0.1); \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \usepackage{amsmath} \usepackage{amssymb} \begin{document} \begin{tikzpicture}[scale=.5] %draw outline/perimeter of circle \shade[ball color = gray!40, opacity = 0.5] (1,2) circle (1cm); \draw (1,2) circle (1cm); % XY plane, starting at -2,0 \draw (0,2) arc (180:360: 1 and 0.3); % dashed line \draw[dashed] (2,2) arc (0:180:1 and 0.3); %node in middle \fill[fill=black] (1,2) circle (1pt); %CYLINDER %vertical lines down \draw[->,thick] (1,3) -- node[above]{$r$} (1.2,3); \draw (0.8,3) -- (0.8,1); \draw (1.2,3) -- (1.2,1); %top cylinder: ellipse \draw (1,3) ellipse (0.2 and 0.05); \draw (0.8,1) arc (180:360:0.2 and 0.05); \draw [dashed] (0.8,1) arc (180:360: 0.2 and -0.05); %2ND PLOT %SPHERE %draw outline/perimeter of circle \shade [xshift=3cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm); \draw [xshift=3cm](1,2) circle (1cm); % XY plane, starting at -2,0 \draw [xshift=3cm](0,2) arc (180:360: 1 and 0.3); % dashed line \draw[xshift=3cm][dashed] (2,2) arc (0:180:1 and 0.3); %node in middle \fill[xshift=3cm][fill=black] (1,2) circle (1pt); \draw [xshift=3cm] [->,thick] (1,3) -- node[above]{$r$} (1.2,3); \draw [xshift=3cm](0.8,3) -- (0.8,1); \draw [xshift=3cm](1.2,3) -- (1.2,1); %top cylinder: ellipse \draw [xshift=3cm](1,3) ellipse (0.2 and 0.05); \draw [xshift=3cm](0.8,1) arc (180:360:0.2 and 0.05); \draw [xshift=3cm][dashed] (0.8,1) arc (180:360: 0.2 and -0.05); %ARROW \draw[->, thick] (5.5,2) -- (7.5,2); %3RD PLOT %SPHERE %draw outline/perimeter of circle \shade [xshift=8cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm); \draw [xshift=8cm](1,2) circle (1cm); % XY plane, starting at -2,0 \draw [xshift=8cm] (0,2) arc (180:360: 1 and 0.3); % dashed line \draw [xshift=8cm] [dashed] (2,2) arc (0:180:1 and 0.3); %node in middle \fill [xshift=8cm] [fill=black] (1,2) circle (1pt); %CYLINDER \draw [xshift=8cm] [->,thick] (1,3) -- node[above right]{$\lambda r$} (1.4,3); \draw [xshift=8cm](0.6,3) -- (0.6,1); \draw [xshift=8cm](1.4,3) -- (1.4,1); %top cylinder: ellipse \draw [xshift=8cm](1,3) ellipse (0.4 and 0.1); \draw [xshift=8cm](0.6,1) arc (180:360:0.4 and 0.1); \draw [xshift=8cm][dashed] (0.6,1) arc (180:360: 0.4 and -0.1); %4RD PLOT %SPHERE %draw outline/perimeter of circle \shade [xshift=11cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm); \draw [xshift=11cm](1,2) circle (1cm); % XY plane, starting at -2,0 \draw [xshift=11cm](0,2) arc (180:360: 1 and 0.3); % dashed line \draw [xshift=11cm][dashed] (2,2) arc (0:180:1 and 0.3); %node in middle \fill [xshift=11cm][fill=black] (1,2) circle (1pt); %CYLINDER \draw [xshift=11cm] [->,thick] (1,3) -- node[above right]{$\lambda r$} (1.4,3); \draw [xshift=11cm](0.6,3) -- (0.6,1); \draw [xshift=11cm](1.4,3) -- (1.4,1); %top cylinder: ellipse \draw [xshift=11cm](1,3) ellipse (0.4 and 0.1); \draw [xshift=11cm](0.6,1) arc (180:360:0.4 and 0.1); \draw [xshift=11cm][dashed] (0.6,1) arc (180:360: 0.4 and -0.1); \end{tikzpicture} \end{document}
Remove the leftmost and rightmost spheres.
Two spheres with an arrow in between
easy
remove
scientific
[ "@@ -8,11 +7,0 @@\n\n-\\shade[ball color = gray!40, opacity = 0.5] (1,2) circle (1cm);\n-\\draw (1,2) circle (1cm);\n-\\draw (0,2) arc (180:360: 1 and 0.3);\n-\\draw[dashed] (2,2) arc (0:180:1 and 0.3);\n-\\fill[fill=black] (1,2) circle (1pt);\n-\\draw[->,thick] (1,3) -- node[above]{$r$} (1.2,3);\n-\\draw (0.8,3) -- (0.8,1);\n-\\draw (1.2,3) -- (1.2,1);\n-\\draw (1,3) ellipse (0.2 and 0.05);\n-\\draw (0.8,1) arc (180:360:0.2 and 0.05);\n-\\draw [dashed] (0.8,1) arc (180:360: 0.2 and -0.05);\n@@ -42,11 +30,0 @@\n\n-\\shade [xshift=11cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm);\n-\\draw [xshift=11cm](1,2) circle (1cm);\n-\\draw [xshift=11cm](0,2) arc (180:360: 1 and 0.3);\n-\\draw [xshift=11cm][dashed] (2,2) arc (0:180:1 and 0.3);\n-\\fill [xshift=11cm][fill=black] (1,2) circle (1pt);\n-\\draw [xshift=11cm] [->,thick] (1,3) -- node[above right]{$\\lambda r$} (1.4,3);\n-\\draw [xshift=11cm](0.6,3) -- (0.6,1);\n-\\draw [xshift=11cm](1.4,3) -- (1.4,1);\n-\\draw [xshift=11cm](1,3) ellipse (0.4 and 0.1);\n-\\draw [xshift=11cm](0.6,1) arc (180:360:0.4 and 0.1);\n-\\draw [xshift=11cm][dashed] (0.6,1) arc (180:360: 0.4 and -0.1);" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{calc}\n\\usepackage{amsmath}\n\\usepackage{amssymb}\n\n\\begin{document}\n\n\\begin{tikzpicture}[scale=.5]\n\n\\shade [xshift=3cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm);\n\\draw [xshift=3cm](1,2) circle (1cm);\n\\draw [xshift=3cm](0,2) arc (180:360: 1 and 0.3);\n\\draw[xshift=3cm][dashed] (2,2) arc (0:180:1 and 0.3);\n\\fill[xshift=3cm][fill=black] (1,2) circle (1pt);\n\\draw [xshift=3cm] [->,thick] (1,3) -- node[above]{$r$} (1.2,3);\n\\draw [xshift=3cm](0.8,3) -- (0.8,1);\n\\draw [xshift=3cm](1.2,3) -- (1.2,1);\n\\draw [xshift=3cm](1,3) ellipse (0.2 and 0.05);\n\\draw [xshift=3cm](0.8,1) arc (180:360:0.2 and 0.05);\n\\draw [xshift=3cm][dashed] (0.8,1) arc (180:360: 0.2 and -0.05);\n\n\n\\draw[->, thick] (5.5,2) -- (7.5,2);\n\n\\shade [xshift=8cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm);\n\\draw [xshift=8cm](1,2) circle (1cm);\n\\draw [xshift=8cm] (0,2) arc (180:360: 1 and 0.3);\n\\draw [xshift=8cm] [dashed] (2,2) arc (0:180:1 and 0.3);\n\\fill [xshift=8cm] [fill=black] (1,2) circle (1pt);\n\\draw [xshift=8cm] [->,thick] (1,3) -- node[above right]{$\\lambda r$} (1.4,3);\n\\draw [xshift=8cm](0.6,3) -- (0.6,1);\n\\draw [xshift=8cm](1.4,3) -- (1.4,1);\n\\draw [xshift=8cm](1,3) ellipse (0.4 and 0.1);\n\\draw [xshift=8cm](0.6,1) arc (180:360:0.4 and 0.1);\n\\draw [xshift=8cm][dashed] (0.6,1) arc (180:360: 0.4 and -0.1);\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{calc}\n\\usepackage{amsmath}\n\\usepackage{amssymb}\n\n\\begin{document}\n\n\\begin{tikzpicture}[scale=.5]\n\n\\shade [xshift=3cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm);\n\\draw [xshift=3cm](1,2) circle (1cm);\n\\draw [xshift=3cm](0,2) arc (180:360: 1 and 0.3);\n\\draw[xshift=3cm][dashed] (2,2) arc (0:180:1 and 0.3);\n\\fill[xshift=3cm][fill=black] (1,2) circle (1pt);\n\\draw [xshift=3cm] [->,thick] (1,3) -- node[above]{$r$} (1.2,3);\n\\draw [xshift=3cm](0.8,3) -- (0.8,1);\n\\draw [xshift=3cm](1.2,3) -- (1.2,1);\n\\draw [xshift=3cm](1,3) ellipse (0.2 and 0.05);\n\\draw [xshift=3cm](0.8,1) arc (180:360:0.2 and 0.05);\n\\draw [xshift=3cm][dashed] (0.8,1) arc (180:360: 0.2 and -0.05);\n\n\n\\draw[->, thick] (5.5,2) -- (7.5,2);\n\n\\shade [xshift=8cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm);\n\\draw [xshift=8cm](1,2) circle (1cm);\n\\draw [xshift=8cm] (0,2) arc (180:360: 1 and 0.3);\n\\draw [xshift=8cm] [dashed] (2,2) arc (0:180:1 and 0.3);\n\\fill [xshift=8cm] [fill=black] (1,2) circle (1pt);\n\\draw [xshift=8cm] [->,thick] (1,3) -- node[above right]{$\\lambda r$} (1.4,3);\n\\draw [xshift=8cm](0.6,3) -- (0.6,1);\n\\draw [xshift=8cm](1.4,3) -- (1.4,1);\n\\draw [xshift=8cm](1,3) ellipse (0.4 and 0.1);\n\\draw [xshift=8cm](0.6,1) arc (180:360:0.4 and 0.1);\n\\draw [xshift=8cm][dashed] (0.6,1) arc (180:360: 0.4 and -0.1);\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ 34 ]
sphere_vertical_align
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \usepackage{amsmath} \usepackage{amssymb} \begin{document} \begin{tikzpicture}[scale=.5] \shade[ball color = gray!40, opacity = 0.5] (1,2) circle (1cm); \draw (1,2) circle (1cm); \draw (0,2) arc (180:360: 1 and 0.3); \draw[dashed] (2,2) arc (0:180:1 and 0.3); \fill[fill=black] (1,2) circle (1pt); \draw[->,thick] (1,3) -- node[above]{$r$} (1.2,3); \draw (0.8,3) -- (0.8,1); \draw (1.2,3) -- (1.2,1); \draw (1,3) ellipse (0.2 and 0.05); \draw (0.8,1) arc (180:360:0.2 and 0.05); \draw [dashed] (0.8,1) arc (180:360: 0.2 and -0.05); \shade [xshift=3cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm); \draw [xshift=3cm](1,2) circle (1cm); \draw [xshift=3cm](0,2) arc (180:360: 1 and 0.3); \draw[xshift=3cm][dashed] (2,2) arc (0:180:1 and 0.3); \fill[xshift=3cm][fill=black] (1,2) circle (1pt); \draw [xshift=3cm] [->,thick] (1,3) -- node[above]{$r$} (1.2,3); \draw [xshift=3cm](0.8,3) -- (0.8,1); \draw [xshift=3cm](1.2,3) -- (1.2,1); \draw [xshift=3cm](1,3) ellipse (0.2 and 0.05); \draw [xshift=3cm](0.8,1) arc (180:360:0.2 and 0.05); \draw [xshift=3cm][dashed] (0.8,1) arc (180:360: 0.2 and -0.05); \draw[->, thick] (5.5,2) -- (7.5,2); \shade [xshift=8cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm); \draw [xshift=8cm](1,2) circle (1cm); \draw [xshift=8cm] (0,2) arc (180:360: 1 and 0.3); \draw [xshift=8cm] [dashed] (2,2) arc (0:180:1 and 0.3); \fill [xshift=8cm] [fill=black] (1,2) circle (1pt); \draw [xshift=8cm] [->,thick] (1,3) -- node[above right]{$\lambda r$} (1.4,3); \draw [xshift=8cm](0.6,3) -- (0.6,1); \draw [xshift=8cm](1.4,3) -- (1.4,1); \draw [xshift=8cm](1,3) ellipse (0.4 and 0.1); \draw [xshift=8cm](0.6,1) arc (180:360:0.4 and 0.1); \draw [xshift=8cm][dashed] (0.6,1) arc (180:360: 0.4 and -0.1); \shade [xshift=11cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm); \draw [xshift=11cm](1,2) circle (1cm); \draw [xshift=11cm](0,2) arc (180:360: 1 and 0.3); \draw [xshift=11cm][dashed] (2,2) arc (0:180:1 and 0.3); \fill [xshift=11cm][fill=black] (1,2) circle (1pt); \draw [xshift=11cm] [->,thick] (1,3) -- node[above right]{$\lambda r$} (1.4,3); \draw [xshift=11cm](0.6,3) -- (0.6,1); \draw [xshift=11cm](1.4,3) -- (1.4,1); \draw [xshift=11cm](1,3) ellipse (0.4 and 0.1); \draw [xshift=11cm](0.6,1) arc (180:360:0.4 and 0.1); \draw [xshift=11cm][dashed] (0.6,1) arc (180:360: 0.4 and -0.1); \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \usepackage{amsmath} \usepackage{amssymb} \begin{document} \begin{tikzpicture}[scale=.5] %draw outline/perimeter of circle \shade[ball color = gray!40, opacity = 0.5] (1,2) circle (1cm); \draw (1,2) circle (1cm); % XY plane, starting at -2,0 \draw (0,2) arc (180:360: 1 and 0.3); % dashed line \draw[dashed] (2,2) arc (0:180:1 and 0.3); %node in middle \fill[fill=black] (1,2) circle (1pt); %CYLINDER %vertical lines down \draw[->,thick] (1,3) -- node[above]{$r$} (1.2,3); \draw (0.8,3) -- (0.8,1); \draw (1.2,3) -- (1.2,1); %top cylinder: ellipse \draw (1,3) ellipse (0.2 and 0.05); \draw (0.8,1) arc (180:360:0.2 and 0.05); \draw [dashed] (0.8,1) arc (180:360: 0.2 and -0.05); %2ND PLOT %SPHERE %draw outline/perimeter of circle \shade [xshift=3cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm); \draw [xshift=3cm](1,2) circle (1cm); % XY plane, starting at -2,0 \draw [xshift=3cm](0,2) arc (180:360: 1 and 0.3); % dashed line \draw[xshift=3cm][dashed] (2,2) arc (0:180:1 and 0.3); %node in middle \fill[xshift=3cm][fill=black] (1,2) circle (1pt); \draw [xshift=3cm] [->,thick] (1,3) -- node[above]{$r$} (1.2,3); \draw [xshift=3cm](0.8,3) -- (0.8,1); \draw [xshift=3cm](1.2,3) -- (1.2,1); %top cylinder: ellipse \draw [xshift=3cm](1,3) ellipse (0.2 and 0.05); \draw [xshift=3cm](0.8,1) arc (180:360:0.2 and 0.05); \draw [xshift=3cm][dashed] (0.8,1) arc (180:360: 0.2 and -0.05); %ARROW \draw[->, thick] (5.5,2) -- (7.5,2); %3RD PLOT %SPHERE %draw outline/perimeter of circle \shade [xshift=8cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm); \draw [xshift=8cm](1,2) circle (1cm); % XY plane, starting at -2,0 \draw [xshift=8cm] (0,2) arc (180:360: 1 and 0.3); % dashed line \draw [xshift=8cm] [dashed] (2,2) arc (0:180:1 and 0.3); %node in middle \fill [xshift=8cm] [fill=black] (1,2) circle (1pt); %CYLINDER \draw [xshift=8cm] [->,thick] (1,3) -- node[above right]{$\lambda r$} (1.4,3); \draw [xshift=8cm](0.6,3) -- (0.6,1); \draw [xshift=8cm](1.4,3) -- (1.4,1); %top cylinder: ellipse \draw [xshift=8cm](1,3) ellipse (0.4 and 0.1); \draw [xshift=8cm](0.6,1) arc (180:360:0.4 and 0.1); \draw [xshift=8cm][dashed] (0.6,1) arc (180:360: 0.4 and -0.1); %4RD PLOT %SPHERE %draw outline/perimeter of circle \shade [xshift=11cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm); \draw [xshift=11cm](1,2) circle (1cm); % XY plane, starting at -2,0 \draw [xshift=11cm](0,2) arc (180:360: 1 and 0.3); % dashed line \draw [xshift=11cm][dashed] (2,2) arc (0:180:1 and 0.3); %node in middle \fill [xshift=11cm][fill=black] (1,2) circle (1pt); %CYLINDER \draw [xshift=11cm] [->,thick] (1,3) -- node[above right]{$\lambda r$} (1.4,3); \draw [xshift=11cm](0.6,3) -- (0.6,1); \draw [xshift=11cm](1.4,3) -- (1.4,1); %top cylinder: ellipse \draw [xshift=11cm](1,3) ellipse (0.4 and 0.1); \draw [xshift=11cm](0.6,1) arc (180:360:0.4 and 0.1); \draw [xshift=11cm][dashed] (0.6,1) arc (180:360: 0.4 and -0.1); \end{tikzpicture} \end{document}
Align the two spheres on the left of the arrow vertically, and do the same for the ones on the right, adjust the arrow.
four spheres, two aligned vertically on each side of an arrow.
medium
update
scientific
[ "@@ -19,34 +19,34 @@\n\n-\\shade [xshift=3cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm);\n-\\draw [xshift=3cm](1,2) circle (1cm);\n-\\draw [xshift=3cm](0,2) arc (180:360: 1 and 0.3);\n-\\draw[xshift=3cm][dashed] (2,2) arc (0:180:1 and 0.3);\n-\\fill[xshift=3cm][fill=black] (1,2) circle (1pt);\n-\\draw [xshift=3cm] [->,thick] (1,3) -- node[above]{$r$} (1.2,3);\n-\\draw [xshift=3cm](0.8,3) -- (0.8,1);\n-\\draw [xshift=3cm](1.2,3) -- (1.2,1);\n-\\draw [xshift=3cm](1,3) ellipse (0.2 and 0.05);\n-\\draw [xshift=3cm](0.8,1) arc (180:360:0.2 and 0.05);\n-\\draw [xshift=3cm][dashed] (0.8,1) arc (180:360: 0.2 and -0.05);\n-\\draw[->, thick] (5.5,2) -- (7.5,2);\n-\\shade [xshift=8cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm);\n-\\draw [xshift=8cm](1,2) circle (1cm);\n-\\draw [xshift=8cm] (0,2) arc (180:360: 1 and 0.3);\n-\\draw [xshift=8cm] [dashed] (2,2) arc (0:180:1 and 0.3);\n-\\fill [xshift=8cm] [fill=black] (1,2) circle (1pt);\n-\\draw [xshift=8cm] [->,thick] (1,3) -- node[above right]{$\\lambda r$} (1.4,3);\n-\\draw [xshift=8cm](0.6,3) -- (0.6,1);\n-\\draw [xshift=8cm](1.4,3) -- (1.4,1);\n-\\draw [xshift=8cm](1,3) ellipse (0.4 and 0.1);\n-\\draw [xshift=8cm](0.6,1) arc (180:360:0.4 and 0.1);\n-\\draw [xshift=8cm][dashed] (0.6,1) arc (180:360: 0.4 and -0.1);\n-\\shade [xshift=11cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm);\n-\\draw [xshift=11cm](1,2) circle (1cm);\n-\\draw [xshift=11cm](0,2) arc (180:360: 1 and 0.3);\n-\\draw [xshift=11cm][dashed] (2,2) arc (0:180:1 and 0.3);\n-\\fill [xshift=11cm][fill=black] (1,2) circle (1pt);\n-\\draw [xshift=11cm] [->,thick] (1,3) -- node[above right]{$\\lambda r$} (1.4,3);\n-\\draw [xshift=11cm](0.6,3) -- (0.6,1);\n-\\draw [xshift=11cm](1.4,3) -- (1.4,1);\n-\\draw [xshift=11cm](1,3) ellipse (0.4 and 0.1);\n-\\draw [xshift=11cm](0.6,1) arc (180:360:0.4 and 0.1);\n-\\draw [xshift=11cm][dashed] (0.6,1) arc (180:360: 0.4 and -0.1);\n+\\shade [yshift=3cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm);\n+\\draw [yshift=3cm](1,2) circle (1cm);\n+\\draw [yshift=3cm](0,2) arc (180:360: 1 and 0.3);\n+\\draw[yshift=3cm][dashed] (2,2) arc (0:180:1 and 0.3);\n+\\fill[yshift=3cm][fill=black] (1,2) circle (1pt);\n+\\draw [yshift=3cm] [->,thick] (1,3) -- node[above]{$r$} (1.2,3);\n+\\draw [yshift=3cm](0.8,3) -- (0.8,1);\n+\\draw [yshift=3cm](1.2,3) -- (1.2,1);\n+\\draw [yshift=3cm](1,3) ellipse (0.2 and 0.05);\n+\\draw [yshift=3cm](0.8,1) arc (180:360:0.2 and 0.05);\n+\\draw [yshift=3cm][dashed] (0.8,1) arc (180:360: 0.2 and -0.05);\n+\\draw[->, thick] (2.25,3.5) -- (5.5,3.5);\n+\\shade [xshift=6cm,yshift=3cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm);\n+\\draw [xshift=6cm,yshift=3cm](1,2) circle (1cm);\n+\\draw [xshift=6cm,yshift=3cm] (0,2) arc (180:360: 1 and 0.3);\n+\\draw [xshift=6cm,yshift=3cm] [dashed] (2,2) arc (0:180:1 and 0.3);\n+\\fill [xshift=6cm,yshift=3cm] [fill=black] (1,2) circle (1pt);\n+\\draw [xshift=6cm,yshift=3cm] [->,thick] (1,3) -- node[above right]{$\\lambda r$} (1.4,3);\n+\\draw [xshift=6cm,yshift=3cm](0.6,3) -- (0.6,1);\n+\\draw [xshift=6cm,yshift=3cm](1.4,3) -- (1.4,1);\n+\\draw [xshift=6cm,yshift=3cm](1,3) ellipse (0.4 and 0.1);\n+\\draw [xshift=6cm,yshift=3cm](0.6,1) arc (180:360:0.4 and 0.1);\n+\\draw [xshift=6cm,yshift=3cm][dashed] (0.6,1) arc (180:360: 0.4 and -0.1);\n+\\shade [xshift=6cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm);\n+\\draw [xshift=6cm](1,2) circle (1cm);\n+\\draw [xshift=6cm](0,2) arc (180:360: 1 and 0.3);\n+\\draw [xshift=6cm][dashed] (2,2) arc (0:180:1 and 0.3);\n+\\fill [xshift=6cm][fill=black] (1,2) circle (1pt);\n+\\draw [xshift=6cm] [->,thick] (1,3) -- node[above right]{$\\lambda r$} (1.4,3);\n+\\draw [xshift=6cm](0.6,3) -- (0.6,1);\n+\\draw [xshift=6cm](1.4,3) -- (1.4,1);\n+\\draw [xshift=6cm](1,3) ellipse (0.4 and 0.1);\n+\\draw [xshift=6cm](0.6,1) arc (180:360:0.4 and 0.1);\n+\\draw [xshift=6cm][dashed] (0.6,1) arc (180:360: 0.4 and -0.1);" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{calc}\n\\usepackage{amsmath}\n\\usepackage{amssymb}\n\n\\begin{document}\n\n\\begin{tikzpicture}[scale=.5]\n\\shade[ball color = gray!40, opacity = 0.5] (1,2) circle (1cm);\n\\draw (1,2) circle (1cm);\n\\draw (0,2) arc (180:360: 1 and 0.3);\n\\draw[dashed] (2,2) arc (0:180:1 and 0.3);\n\\fill[fill=black] (1,2) circle (1pt);\n\\draw[->,thick] (1,3) -- node[above]{$r$} (1.2,3);\n\\draw (0.8,3) -- (0.8,1);\n\\draw (1.2,3) -- (1.2,1);\n\\draw (1,3) ellipse (0.2 and 0.05);\n\\draw (0.8,1) arc (180:360:0.2 and 0.05);\n\\draw [dashed] (0.8,1) arc (180:360: 0.2 and -0.05);\n\n\n\\shade [yshift=3cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm);\n\\draw [yshift=3cm](1,2) circle (1cm);\n\\draw [yshift=3cm](0,2) arc (180:360: 1 and 0.3);\n\\draw[yshift=3cm][dashed] (2,2) arc (0:180:1 and 0.3);\n\\fill[yshift=3cm][fill=black] (1,2) circle (1pt);\n\\draw [yshift=3cm] [->,thick] (1,3) -- node[above]{$r$} (1.2,3);\n\\draw [yshift=3cm](0.8,3) -- (0.8,1);\n\\draw [yshift=3cm](1.2,3) -- (1.2,1);\n\\draw [yshift=3cm](1,3) ellipse (0.2 and 0.05);\n\\draw [yshift=3cm](0.8,1) arc (180:360:0.2 and 0.05);\n\\draw [yshift=3cm][dashed] (0.8,1) arc (180:360: 0.2 and -0.05);\n\n\n\\draw[->, thick] (§rangei(2.25,0.5),§rangei(3.5,0.5)) -- (§rangei(5.5,0.5),§rangei(3.5,0.5));\n\n\\shade [xshift=6cm,yshift=3cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm);\n\\draw [xshift=6cm,yshift=3cm](1,2) circle (1cm);\n\\draw [xshift=6cm,yshift=3cm] (0,2) arc (180:360: 1 and 0.3);\n\\draw [xshift=6cm,yshift=3cm] [dashed] (2,2) arc (0:180:1 and 0.3);\n\\fill [xshift=6cm,yshift=3cm] [fill=black] (1,2) circle (1pt);\n\\draw [xshift=6cm,yshift=3cm] [->,thick] (1,3) -- node[above right]{$\\lambda r$} (1.4,3);\n\\draw [xshift=6cm,yshift=3cm](0.6,3) -- (0.6,1);\n\\draw [xshift=6cm,yshift=3cm](1.4,3) -- (1.4,1);\n\\draw [xshift=6cm,yshift=3cm](1,3) ellipse (0.4 and 0.1);\n\\draw [xshift=6cm,yshift=3cm](0.6,1) arc (180:360:0.4 and 0.1);\n\\draw [xshift=6cm,yshift=3cm][dashed] (0.6,1) arc (180:360: 0.4 and -0.1);\n\n\n\\shade [xshift=6cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm);\n\\draw [xshift=6cm](1,2) circle (1cm);\n\\draw [xshift=6cm](0,2) arc (180:360: 1 and 0.3);\n\\draw [xshift=6cm][dashed] (2,2) arc (0:180:1 and 0.3);\n\\fill [xshift=6cm][fill=black] (1,2) circle (1pt);\n\\draw [xshift=6cm] [->,thick] (1,3) -- node[above right]{$\\lambda r$} (1.4,3);\n\\draw [xshift=6cm](0.6,3) -- (0.6,1);\n\\draw [xshift=6cm](1.4,3) -- (1.4,1);\n\\draw [xshift=6cm](1,3) ellipse (0.4 and 0.1);\n\\draw [xshift=6cm](0.6,1) arc (180:360:0.4 and 0.1);\n\\draw [xshift=6cm][dashed] (0.6,1) arc (180:360: 0.4 and -0.1);\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{calc}\n\\usepackage{amsmath}\n\\usepackage{amssymb}\n\n\\begin{document}\n\n\\begin{tikzpicture}[scale=.5]\n\\shade[ball color = gray!40, opacity = 0.5] (1,2) circle (1cm);\n\\draw (1,2) circle (1cm);\n\\draw (0,2) arc (180:360: 1 and 0.3);\n\\draw[dashed] (2,2) arc (0:180:1 and 0.3);\n\\fill[fill=black] (1,2) circle (1pt);\n\\draw[->,thick] (1,3) -- node[above]{$r$} (1.2,3);\n\\draw (0.8,3) -- (0.8,1);\n\\draw (1.2,3) -- (1.2,1);\n\\draw (1,3) ellipse (0.2 and 0.05);\n\\draw (0.8,1) arc (180:360:0.2 and 0.05);\n\\draw [dashed] (0.8,1) arc (180:360: 0.2 and -0.05);\n\n\n\\shade [yshift=3cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm);\n\\draw [yshift=3cm](1,2) circle (1cm);\n\\draw [yshift=3cm](0,2) arc (180:360: 1 and 0.3);\n\\draw[yshift=3cm][dashed] (2,2) arc (0:180:1 and 0.3);\n\\fill[yshift=3cm][fill=black] (1,2) circle (1pt);\n\\draw [yshift=3cm] [->,thick] (1,3) -- node[above]{$r$} (1.2,3);\n\\draw [yshift=3cm](0.8,3) -- (0.8,1);\n\\draw [yshift=3cm](1.2,3) -- (1.2,1);\n\\draw [yshift=3cm](1,3) ellipse (0.2 and 0.05);\n\\draw [yshift=3cm](0.8,1) arc (180:360:0.2 and 0.05);\n\\draw [yshift=3cm][dashed] (0.8,1) arc (180:360: 0.2 and -0.05);\n\n\n\\draw[->, thick] (2.25,3.5) -- (5.5,3.5);\n\n\\shade [xshift=6cm,yshift=3cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm);\n\\draw [xshift=6cm,yshift=3cm](1,2) circle (1cm);\n\\draw [xshift=6cm,yshift=3cm] (0,2) arc (180:360: 1 and 0.3);\n\\draw [xshift=6cm,yshift=3cm] [dashed] (2,2) arc (0:180:1 and 0.3);\n\\fill [xshift=6cm,yshift=3cm] [fill=black] (1,2) circle (1pt);\n\\draw [xshift=6cm,yshift=3cm] [->,thick] (1,3) -- node[above right]{$\\lambda r$} (1.4,3);\n\\draw [xshift=6cm,yshift=3cm](0.6,3) -- (0.6,1);\n\\draw [xshift=6cm,yshift=3cm](1.4,3) -- (1.4,1);\n\\draw [xshift=6cm,yshift=3cm](1,3) ellipse (0.4 and 0.1);\n\\draw [xshift=6cm,yshift=3cm](0.6,1) arc (180:360:0.4 and 0.1);\n\\draw [xshift=6cm,yshift=3cm][dashed] (0.6,1) arc (180:360: 0.4 and -0.1);\n\n\n\\shade [xshift=6cm][ball color = gray!40, opacity = 0.5] (1,2) circle (1cm);\n\\draw [xshift=6cm](1,2) circle (1cm);\n\\draw [xshift=6cm](0,2) arc (180:360: 1 and 0.3);\n\\draw [xshift=6cm][dashed] (2,2) arc (0:180:1 and 0.3);\n\\fill [xshift=6cm][fill=black] (1,2) circle (1pt);\n\\draw [xshift=6cm] [->,thick] (1,3) -- node[above right]{$\\lambda r$} (1.4,3);\n\\draw [xshift=6cm](0.6,3) -- (0.6,1);\n\\draw [xshift=6cm](1.4,3) -- (1.4,1);\n\\draw [xshift=6cm](1,3) ellipse (0.4 and 0.1);\n\\draw [xshift=6cm](0.6,1) arc (180:360:0.4 and 0.1);\n\\draw [xshift=6cm][dashed] (0.6,1) arc (180:360: 0.4 and -0.1);\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ 9 ]
squid_O_mouth
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ squid/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \useasboundingbox (-256, -256) (256, 256); \reflect[split={DeepOrange500 and DeepOrange700}]{ \fill [fill color] (0,96) ellipse [x radius=96, y radius=128]; \fill [fill color] (72,-16) .. controls ++(270:72) and ++(270:40) .. ++(108, -16) .. controls ++( 90:64) and ++(270:64) .. ++(-40,128) .. controls ++( 90:32) and ++(270:32) .. ++( 40, 96) arc (180:0:4) .. controls ++(270: 32) and ++( 90: 32) .. ++(-24, -96) .. controls ++(270: 64) and ++( 90: 64) .. ++( 56,-128) .. controls ++(270:128) and ++(270:160) .. ( 0, -16); \fill [fill color] (64, 16) circle [radius=48]; \fill [Grey50] (64, 16) circle [radius=32]; \fill [BlueGrey900] (64, 16) circle [radius=12]; \fill [fill color] (-4, -20) .. controls ++(270:256) and ++(225: 64) .. (128,-192) arc (315:495:4) .. controls ++(210: 64) and ++(270:192) .. (48, -40); } \fill [DeepOrange900] (-40,-40) arc (180:360:40 and 16) arc (360:180:40 and 40); \fill [DeepOrange300] (-32,108) circle [radius=16] (-40,160) circle [radius=12] (-20,196) circle [radius= 8] ( 40,160) circle [radius=16] ( 64,120) circle [radius= 8] ( 40,100) circle [radius=12]; \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {squid}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ squid/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \useasboundingbox (-256, -256) (256, 256); \reflect[split={DeepOrange500 and DeepOrange700}]{ \fill [fill color] (0,96) ellipse [x radius=96, y radius=128]; \fill [fill color] (72,-16) .. controls ++(270:72) and ++(270:40) .. ++(108, -16) .. controls ++( 90:64) and ++(270:64) .. ++(-40,128) .. controls ++( 90:32) and ++(270:32) .. ++( 40, 96) arc (180:0:4) .. controls ++(270: 32) and ++( 90: 32) .. ++(-24, -96) .. controls ++(270: 64) and ++( 90: 64) .. ++( 56,-128) .. controls ++(270:128) and ++(270:160) .. ( 0, -16); \fill [fill color] (64, 16) circle [radius=48]; \fill [Grey50] (64, 16) circle [radius=32]; \fill [BlueGrey900] (64, 16) circle [radius=12]; \fill [fill color] (-4, -20) .. controls ++(270:256) and ++(225: 64) .. (128,-192) arc (315:495:4) .. controls ++(210: 64) and ++(270:192) .. (48, -40); } \fill [DeepOrange900] (-40,-40) arc (180:360:40 and 16) arc (360:180:40 and 40); \fill [DeepOrange300] (-32,108) circle [radius=16] (-40,160) circle [radius=12] (-20,196) circle [radius= 8] ( 40,160) circle [radius=16] ( 64,120) circle [radius= 8] ( 40,100) circle [radius=12]; \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {squid}; \end{tikzpicture} \end{document}
Change the shape of the squid's mouth to a circle
A squid with a circular mouth
medium
update
animal
[ "@@ -45 +45 @@\n\n-(-40,-40) arc (180:360:40 and 16) arc (360:180:40 and 40);\n+(0,-60) circle [radius=25];" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nsquid/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split={DeepOrange500 and DeepOrange700}]{\n \\fill [fill color] (0,96) ellipse [x radius=96, y radius=128];\n \\fill [fill color]\n (72,-16)\n .. controls ++(270:72) and ++(270:40) .. ++(108, -16)\n .. controls ++( 90:64) and ++(270:64) .. ++(-40,128)\n .. controls ++( 90:32) and ++(270:32) .. ++( 40, 96)\n arc (180:0:4)\n .. controls ++(270: 32) and ++( 90: 32) .. ++(-24, -96)\n .. controls ++(270: 64) and ++( 90: 64) .. ++( 56,-128)\n .. controls ++(270:128) and ++(270:160) .. ( 0, -16);\n \\fill [fill color] (64, 16) circle [radius=48];\n \\fill [Grey50] (64, 16) circle [radius=32];\n \\fill [BlueGrey900] (64, 16) circle [radius=12];\n \\fill [fill color] (-4, -20)\n .. controls ++(270:256) and ++(225: 64) .. (128,-192)\n arc (315:495:4)\n .. controls ++(210: 64) and ++(270:192) .. (48, -40);\n}\n\\fill [DeepOrange900]\n (0,§rangei(-60,10)) circle [radius=§rangei(25,15)];\n\\fill [DeepOrange300]\n (-32,108) circle [radius=16] (-40,160) circle [radius=12]\n (-20,196) circle [radius= 8] ( 40,160) circle [radius=16]\n ( 64,120) circle [radius= 8] ( 40,100) circle [radius=12];\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {squid};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nsquid/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split={DeepOrange500 and DeepOrange700}]{\n \\fill [fill color] (0,96) ellipse [x radius=96, y radius=128];\n \\fill [fill color]\n (72,-16)\n .. controls ++(270:72) and ++(270:40) .. ++(108, -16)\n .. controls ++( 90:64) and ++(270:64) .. ++(-40,128)\n .. controls ++( 90:32) and ++(270:32) .. ++( 40, 96)\n arc (180:0:4)\n .. controls ++(270: 32) and ++( 90: 32) .. ++(-24, -96)\n .. controls ++(270: 64) and ++( 90: 64) .. ++( 56,-128)\n .. controls ++(270:128) and ++(270:160) .. ( 0, -16);\n \\fill [fill color] (64, 16) circle [radius=48];\n \\fill [Grey50] (64, 16) circle [radius=32];\n \\fill [BlueGrey900] (64, 16) circle [radius=12];\n \\fill [fill color] (-4, -20)\n .. controls ++(270:256) and ++(225: 64) .. (128,-192)\n arc (315:495:4)\n .. controls ++(210: 64) and ++(270:192) .. (48, -40);\n}\n\\fill [DeepOrange900]\n (0,-60) circle [radius=25];\n\\fill [DeepOrange300]\n (-32,108) circle [radius=16] (-40,160) circle [radius=12]\n (-20,196) circle [radius= 8] ( 40,160) circle [radius=16]\n ( 64,120) circle [radius= 8] ( 40,100) circle [radius=12];\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {squid};\n\\end{tikzpicture}\n\\end{document}" ]
[ 3 ]
squid_bigger_eyes
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ squid/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \useasboundingbox (-256, -256) (256, 256); \reflect[split={DeepOrange500 and DeepOrange700}]{ \fill [fill color] (0,96) ellipse [x radius=96, y radius=128]; \fill [fill color] (72,-16) .. controls ++(270:72) and ++(270:40) .. ++(108, -16) .. controls ++( 90:64) and ++(270:64) .. ++(-40,128) .. controls ++( 90:32) and ++(270:32) .. ++( 40, 96) arc (180:0:4) .. controls ++(270: 32) and ++( 90: 32) .. ++(-24, -96) .. controls ++(270: 64) and ++( 90: 64) .. ++( 56,-128) .. controls ++(270:128) and ++(270:160) .. ( 0, -16); \fill [fill color] (64, 16) circle [radius=48]; \fill [Grey50] (64, 16) circle [radius=32]; \fill [BlueGrey900] (64, 16) circle [radius=12]; \fill [fill color] (-4, -20) .. controls ++(270:256) and ++(225: 64) .. (128,-192) arc (315:495:4) .. controls ++(210: 64) and ++(270:192) .. (48, -40); } \fill [DeepOrange900] (-40,-40) arc (180:360:40 and 16) arc (360:180:40 and 40); \fill [DeepOrange300] (-32,108) circle [radius=16] (-40,160) circle [radius=12] (-20,196) circle [radius= 8] ( 40,160) circle [radius=16] ( 64,120) circle [radius= 8] ( 40,100) circle [radius=12]; \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {squid}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ squid/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \useasboundingbox (-256, -256) (256, 256); \reflect[split={DeepOrange500 and DeepOrange700}]{ \fill [fill color] (0,96) ellipse [x radius=96, y radius=128]; \fill [fill color] (72,-16) .. controls ++(270:72) and ++(270:40) .. ++(108, -16) .. controls ++( 90:64) and ++(270:64) .. ++(-40,128) .. controls ++( 90:32) and ++(270:32) .. ++( 40, 96) arc (180:0:4) .. controls ++(270: 32) and ++( 90: 32) .. ++(-24, -96) .. controls ++(270: 64) and ++( 90: 64) .. ++( 56,-128) .. controls ++(270:128) and ++(270:160) .. ( 0, -16); \fill [fill color] (64, 16) circle [radius=48]; \fill [Grey50] (64, 16) circle [radius=32]; \fill [BlueGrey900] (64, 16) circle [radius=12]; \fill [fill color] (-4, -20) .. controls ++(270:256) and ++(225: 64) .. (128,-192) arc (315:495:4) .. controls ++(210: 64) and ++(270:192) .. (48, -40); } \fill [DeepOrange900] (-40,-40) arc (180:360:40 and 16) arc (360:180:40 and 40); \fill [DeepOrange300] (-32,108) circle [radius=16] (-40,160) circle [radius=12] (-20,196) circle [radius= 8] ( 40,160) circle [radius=16] ( 64,120) circle [radius= 8] ( 40,100) circle [radius=12]; \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {squid}; \end{tikzpicture} \end{document}
Make the eyes of the squid bigger
A squid with big roud eyes
medium
update
animal
[ "@@ -36,3 +36,3 @@\n\n-\\fill [fill color] (64, 16) circle [radius=48];\n-\\fill [Grey50] (64, 16) circle [radius=32];\n-\\fill [BlueGrey900] (64, 16) circle [radius=12];\n+\\fill [fill color] (64, 16) circle [radius=60];\n+\\fill [Grey50] (64, 16) circle [radius=50];\n+\\fill [BlueGrey900] (64, 16) circle [radius=22];" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nsquid/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split={DeepOrange500 and DeepOrange700}]{\n \\fill [fill color] (0,96) ellipse [x radius=96, y radius=128];\n \\fill [fill color]\n (72,-16)\n .. controls ++(270:72) and ++(270:40) .. ++(108, -16)\n .. controls ++( 90:64) and ++(270:64) .. ++(-40,128)\n .. controls ++( 90:32) and ++(270:32) .. ++( 40, 96)\n arc (180:0:4)\n .. controls ++(270: 32) and ++( 90: 32) .. ++(-24, -96)\n .. controls ++(270: 64) and ++( 90: 64) .. ++( 56,-128)\n .. controls ++(270:128) and ++(270:160) .. ( 0, -16);\n \\fill [fill color] (64, 16) circle [radius=§rangei(60,12)];\n \\fill [Grey50] (64, 16) circle [radius=§rangei(50,10)];\n \\fill [BlueGrey900] (64, 16) circle [radius=§rangei(22,10)];\n \\fill [fill color] (-4, -20)\n .. controls ++(270:256) and ++(225: 64) .. (128,-192)\n arc (315:495:4)\n .. controls ++(210: 64) and ++(270:192) .. (48, -40);\n}\n\\fill [DeepOrange900]\n (-40,-40) arc (180:360:40 and 16) arc (360:180:40 and 40);\n\\fill [DeepOrange300]\n (-32,108) circle [radius=16] (-40,160) circle [radius=12]\n (-20,196) circle [radius= 8] ( 40,160) circle [radius=16]\n ( 64,120) circle [radius= 8] ( 40,100) circle [radius=12];\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {squid};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nsquid/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split={DeepOrange500 and DeepOrange700}]{\n \\fill [fill color] (0,96) ellipse [x radius=96, y radius=128];\n \\fill [fill color]\n (72,-16)\n .. controls ++(270:72) and ++(270:40) .. ++(108, -16)\n .. controls ++( 90:64) and ++(270:64) .. ++(-40,128)\n .. controls ++( 90:32) and ++(270:32) .. ++( 40, 96)\n arc (180:0:4)\n .. controls ++(270: 32) and ++( 90: 32) .. ++(-24, -96)\n .. controls ++(270: 64) and ++( 90: 64) .. ++( 56,-128)\n .. controls ++(270:128) and ++(270:160) .. ( 0, -16);\n \\fill [fill color] (64, 16) circle [radius=60];\n \\fill [Grey50] (64, 16) circle [radius=50];\n \\fill [BlueGrey900] (64, 16) circle [radius=22];\n \\fill [fill color] (-4, -20)\n .. controls ++(270:256) and ++(225: 64) .. (128,-192)\n arc (315:495:4)\n .. controls ++(210: 64) and ++(270:192) .. (48, -40);\n}\n\\fill [DeepOrange900]\n (-40,-40) arc (180:360:40 and 16) arc (360:180:40 and 40);\n\\fill [DeepOrange300]\n (-32,108) circle [radius=16] (-40,160) circle [radius=12]\n (-20,196) circle [radius= 8] ( 40,160) circle [radius=16]\n ( 64,120) circle [radius= 8] ( 40,100) circle [radius=12];\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {squid};\n\\end{tikzpicture}\n\\end{document}" ]
[ 2 ]
squid_longer_tentacles
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ squid/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \useasboundingbox (-256, -256) (256, 256); \reflect[split={DeepOrange500 and DeepOrange700}]{ \fill [fill color] (0,96) ellipse [x radius=96, y radius=128]; \fill [fill color] (72,-16) .. controls ++(270:72) and ++(270:40) .. ++(108, -16) .. controls ++( 90:64) and ++(270:64) .. ++(-40,128) .. controls ++( 90:32) and ++(270:32) .. ++( 40, 96) arc (180:0:4) .. controls ++(270: 32) and ++( 90: 32) .. ++(-24, -96) .. controls ++(270: 64) and ++( 90: 64) .. ++( 56,-128) .. controls ++(270:128) and ++(270:160) .. ( 0, -16); \fill [fill color] (64, 16) circle [radius=48]; \fill [Grey50] (64, 16) circle [radius=32]; \fill [BlueGrey900] (64, 16) circle [radius=12]; \fill [fill color] (-4, -20) .. controls ++(270:256) and ++(225: 64) .. (128,-192) arc (315:495:4) .. controls ++(210: 64) and ++(270:192) .. (48, -40); } \fill [DeepOrange900] (-40,-40) arc (180:360:40 and 16) arc (360:180:40 and 40); \fill [DeepOrange300] (-32,108) circle [radius=16] (-40,160) circle [radius=12] (-20,196) circle [radius= 8] ( 40,160) circle [radius=16] ( 64,120) circle [radius= 8] ( 40,100) circle [radius=12]; \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {squid}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ squid/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \useasboundingbox (-256, -256) (256, 256); \reflect[split={DeepOrange500 and DeepOrange700}]{ \fill [fill color] (0,96) ellipse [x radius=96, y radius=128]; \fill [fill color] (72,-16) .. controls ++(270:72) and ++(270:40) .. ++(108, -16) .. controls ++( 90:64) and ++(270:64) .. ++(-40,128) .. controls ++( 90:32) and ++(270:32) .. ++( 40, 96) arc (180:0:4) .. controls ++(270: 32) and ++( 90: 32) .. ++(-24, -96) .. controls ++(270: 64) and ++( 90: 64) .. ++( 56,-128) .. controls ++(270:128) and ++(270:160) .. ( 0, -16); \fill [fill color] (64, 16) circle [radius=48]; \fill [Grey50] (64, 16) circle [radius=32]; \fill [BlueGrey900] (64, 16) circle [radius=12]; \fill [fill color] (-4, -20) .. controls ++(270:256) and ++(225: 64) .. (128,-192) arc (315:495:4) .. controls ++(210: 64) and ++(270:192) .. (48, -40); } \fill [DeepOrange900] (-40,-40) arc (180:360:40 and 16) arc (360:180:40 and 40); \fill [DeepOrange300] (-32,108) circle [radius=16] (-40,160) circle [radius=12] (-20,196) circle [radius= 8] ( 40,160) circle [radius=16] ( 64,120) circle [radius= 8] ( 40,100) circle [radius=12]; \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {squid}; \end{tikzpicture} \end{document}
Make the tentacle of the squid longer
A squid with four long tentacles
hard
update
animal
[ "@@ -30 +30 @@\n\n-.. controls ++( 90:64) and ++(270:64) .. ++(-40,128)\n+.. controls ++( 90:64) and ++(270:64) .. ++(-40,168)\n@@ -34 +34 @@\n\n-.. controls ++(270: 64) and ++( 90: 64) .. ++( 56,-128)\n+.. controls ++(270: 64) and ++( 90: 64) .. ++( 56,-168)\n@@ -40 +40 @@\n\n-.. controls ++(270:256) and ++(225: 64) .. (128,-192)\n+.. controls ++(270:256) and ++(225: 64) .. (200,-192)" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nsquid/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split={DeepOrange500 and DeepOrange700}]{\n \\fill [fill color] (0,96) ellipse [x radius=96, y radius=128];\n \\fill [fill color]\n (72,-16)\n .. controls ++(270:72) and ++(270:40) .. ++(108, -16)\n .. controls ++( 90:64) and ++(270:64) .. ++(-40,§rangei(168,30))\n .. controls ++( 90:32) and ++(270:32) .. ++( 40, 96)\n arc (180:0:4)\n .. controls ++(270: 32) and ++( 90: 32) .. ++(-24, -96)\n .. controls ++(270: 64) and ++( 90: 64) .. ++( 56,§rangei(-168,30))\n .. controls ++(270:128) and ++(270:160) .. ( 0, -16);\n \\fill [fill color] (64, 16) circle [radius=48];\n \\fill [Grey50] (64, 16) circle [radius=32];\n \\fill [BlueGrey900] (64, 16) circle [radius=12];\n \\fill [fill color] (-4, -20)\n .. controls ++(270:256) and ++(225: 64) .. (§rangei(200,40),-192)\n arc (315:495:4)\n .. controls ++(210: 64) and ++(270:192) .. (48, -40);\n}\n\\fill [DeepOrange900]\n (-40,-40) arc (180:360:40 and 16) arc (360:180:40 and 40);\n\\fill [DeepOrange300]\n (-32,108) circle [radius=16] (-40,160) circle [radius=12]\n (-20,196) circle [radius= 8] ( 40,160) circle [radius=16]\n ( 64,120) circle [radius= 8] ( 40,100) circle [radius=12];\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {squid};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nsquid/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split={DeepOrange500 and DeepOrange700}]{\n \\fill [fill color] (0,96) ellipse [x radius=96, y radius=128];\n \\fill [fill color]\n (72,-16)\n .. controls ++(270:72) and ++(270:40) .. ++(108, -16)\n .. controls ++( 90:64) and ++(270:64) .. ++(-40,168)\n .. controls ++( 90:32) and ++(270:32) .. ++( 40, 96)\n arc (180:0:4)\n .. controls ++(270: 32) and ++( 90: 32) .. ++(-24, -96)\n .. controls ++(270: 64) and ++( 90: 64) .. ++( 56,-168)\n .. controls ++(270:128) and ++(270:160) .. ( 0, -16);\n \\fill [fill color] (64, 16) circle [radius=48];\n \\fill [Grey50] (64, 16) circle [radius=32];\n \\fill [BlueGrey900] (64, 16) circle [radius=12];\n \\fill [fill color] (-4, -20)\n .. controls ++(270:256) and ++(225: 64) .. (200,-192)\n arc (315:495:4)\n .. controls ++(210: 64) and ++(270:192) .. (48, -40);\n}\n\\fill [DeepOrange900]\n (-40,-40) arc (180:360:40 and 16) arc (360:180:40 and 40);\n\\fill [DeepOrange300]\n (-32,108) circle [radius=16] (-40,160) circle [radius=12]\n (-20,196) circle [radius= 8] ( 40,160) circle [radius=16]\n ( 64,120) circle [radius= 8] ( 40,100) circle [radius=12];\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {squid};\n\\end{tikzpicture}\n\\end{document}" ]
[ 54 ]
squid_no_spots
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ squid/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \useasboundingbox (-256, -256) (256, 256); \reflect[split={DeepOrange500 and DeepOrange700}]{ \fill [fill color] (0,96) ellipse [x radius=96, y radius=128]; \fill [fill color] (72,-16) .. controls ++(270:72) and ++(270:40) .. ++(108, -16) .. controls ++( 90:64) and ++(270:64) .. ++(-40,128) .. controls ++( 90:32) and ++(270:32) .. ++( 40, 96) arc (180:0:4) .. controls ++(270: 32) and ++( 90: 32) .. ++(-24, -96) .. controls ++(270: 64) and ++( 90: 64) .. ++( 56,-128) .. controls ++(270:128) and ++(270:160) .. ( 0, -16); \fill [fill color] (64, 16) circle [radius=48]; \fill [Grey50] (64, 16) circle [radius=32]; \fill [BlueGrey900] (64, 16) circle [radius=12]; \fill [fill color] (-4, -20) .. controls ++(270:256) and ++(225: 64) .. (128,-192) arc (315:495:4) .. controls ++(210: 64) and ++(270:192) .. (48, -40); } \fill [DeepOrange900] (-40,-40) arc (180:360:40 and 16) arc (360:180:40 and 40); \fill [DeepOrange300] (-32,108) circle [radius=16] (-40,160) circle [radius=12] (-20,196) circle [radius= 8] ( 40,160) circle [radius=16] ( 64,120) circle [radius= 8] ( 40,100) circle [radius=12]; \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {squid}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ squid/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \useasboundingbox (-256, -256) (256, 256); \reflect[split={DeepOrange500 and DeepOrange700}]{ \fill [fill color] (0,96) ellipse [x radius=96, y radius=128]; \fill [fill color] (72,-16) .. controls ++(270:72) and ++(270:40) .. ++(108, -16) .. controls ++( 90:64) and ++(270:64) .. ++(-40,128) .. controls ++( 90:32) and ++(270:32) .. ++( 40, 96) arc (180:0:4) .. controls ++(270: 32) and ++( 90: 32) .. ++(-24, -96) .. controls ++(270: 64) and ++( 90: 64) .. ++( 56,-128) .. controls ++(270:128) and ++(270:160) .. ( 0, -16); \fill [fill color] (64, 16) circle [radius=48]; \fill [Grey50] (64, 16) circle [radius=32]; \fill [BlueGrey900] (64, 16) circle [radius=12]; \fill [fill color] (-4, -20) .. controls ++(270:256) and ++(225: 64) .. (128,-192) arc (315:495:4) .. controls ++(210: 64) and ++(270:192) .. (48, -40); } \fill [DeepOrange900] (-40,-40) arc (180:360:40 and 16) arc (360:180:40 and 40); \fill [DeepOrange300] (-32,108) circle [radius=16] (-40,160) circle [radius=12] (-20,196) circle [radius= 8] ( 40,160) circle [radius=16] ( 64,120) circle [radius= 8] ( 40,100) circle [radius=12]; \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {squid}; \end{tikzpicture} \end{document}
Remove the spots on the forehead of the squid
a red squid with no spots on its forehead
easy
remove
animal
[ "@@ -46,4 +45,0 @@\n\n-\\fill [DeepOrange300]\n-(-32,108) circle [radius=16] (-40,160) circle [radius=12]\n-(-20,196) circle [radius= 8] ( 40,160) circle [radius=16]\n-( 64,120) circle [radius= 8] ( 40,100) circle [radius=12];" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nsquid/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split={DeepOrange500 and DeepOrange700}]{\n \\fill [fill color] (0,96) ellipse [x radius=96, y radius=128];\n \\fill [fill color]\n (72,-16)\n .. controls ++(270:72) and ++(270:40) .. ++(108, -16)\n .. controls ++( 90:64) and ++(270:64) .. ++(-40,128)\n .. controls ++( 90:32) and ++(270:32) .. ++( 40, 96)\n arc (180:0:4)\n .. controls ++(270: 32) and ++( 90: 32) .. ++(-24, -96)\n .. controls ++(270: 64) and ++( 90: 64) .. ++( 56,-128)\n .. controls ++(270:128) and ++(270:160) .. ( 0, -16);\n \\fill [fill color] (64, 16) circle [radius=48];\n \\fill [Grey50] (64, 16) circle [radius=32];\n \\fill [BlueGrey900] (64, 16) circle [radius=12];\n \\fill [fill color] (-4, -20)\n .. controls ++(270:256) and ++(225: 64) .. (128,-192)\n arc (315:495:4)\n .. controls ++(210: 64) and ++(270:192) .. (48, -40);\n}\n\\fill [DeepOrange900]\n (-40,-40) arc (180:360:40 and 16) arc (360:180:40 and 40);\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {squid};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nsquid/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split={DeepOrange500 and DeepOrange700}]{\n \\fill [fill color] (0,96) ellipse [x radius=96, y radius=128];\n \\fill [fill color]\n (72,-16)\n .. controls ++(270:72) and ++(270:40) .. ++(108, -16)\n .. controls ++( 90:64) and ++(270:64) .. ++(-40,128)\n .. controls ++( 90:32) and ++(270:32) .. ++( 40, 96)\n arc (180:0:4)\n .. controls ++(270: 32) and ++( 90: 32) .. ++(-24, -96)\n .. controls ++(270: 64) and ++( 90: 64) .. ++( 56,-128)\n .. controls ++(270:128) and ++(270:160) .. ( 0, -16);\n \\fill [fill color] (64, 16) circle [radius=48];\n \\fill [Grey50] (64, 16) circle [radius=32];\n \\fill [BlueGrey900] (64, 16) circle [radius=12];\n \\fill [fill color] (-4, -20)\n .. controls ++(270:256) and ++(225: 64) .. (128,-192)\n arc (315:495:4)\n .. controls ++(210: 64) and ++(270:192) .. (48, -40);\n}\n\\fill [DeepOrange900]\n (-40,-40) arc (180:360:40 and 16) arc (360:180:40 and 40);\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {squid};\n\\end{tikzpicture}\n\\end{document}" ]
[ 1, 1 ]
squid_yellow
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ squid/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \useasboundingbox (-256, -256) (256, 256); \reflect[split={DeepOrange500 and DeepOrange700}]{ \fill [fill color] (0,96) ellipse [x radius=96, y radius=128]; \fill [fill color] (72,-16) .. controls ++(270:72) and ++(270:40) .. ++(108, -16) .. controls ++( 90:64) and ++(270:64) .. ++(-40,128) .. controls ++( 90:32) and ++(270:32) .. ++( 40, 96) arc (180:0:4) .. controls ++(270: 32) and ++( 90: 32) .. ++(-24, -96) .. controls ++(270: 64) and ++( 90: 64) .. ++( 56,-128) .. controls ++(270:128) and ++(270:160) .. ( 0, -16); \fill [fill color] (64, 16) circle [radius=48]; \fill [Grey50] (64, 16) circle [radius=32]; \fill [BlueGrey900] (64, 16) circle [radius=12]; \fill [fill color] (-4, -20) .. controls ++(270:256) and ++(225: 64) .. (128,-192) arc (315:495:4) .. controls ++(210: 64) and ++(270:192) .. (48, -40); } \fill [DeepOrange900] (-40,-40) arc (180:360:40 and 16) arc (360:180:40 and 40); \fill [DeepOrange300] (-32,108) circle [radius=16] (-40,160) circle [radius=12] (-20,196) circle [radius= 8] ( 40,160) circle [radius=16] ( 64,120) circle [radius= 8] ( 40,100) circle [radius=12]; \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {squid}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-material} \tikzset{ half clip/.code={ \clip (0, -256) rectangle (256, 256); }, color/.code=\colorlet{fill color}{#1}, color alias/.code args={#1 as #2}{\colorlet{#1}{#2}}, on left/.style={.. on left/.style={#1}}, on right/.style={.. on right/.style={#1}}, split/.style args={#1 and #2}{ on left ={color alias=fill color as #1}, on right={color alias=fill color as #2, half clip} } } \newcommand\reflect[2][]{ \begin{scope}[#1]\foreach \side in {-1, 1}{\begin{scope} \ifnum\side=-1 \tikzset{.. on left/.try}\else\tikzset{.. on right/.try}\fi \begin{scope}[xscale=\side]#2\end{scope} \end{scope}}\end{scope}} \tikzset{ squid/.pic={ \begin{scope}[x=3cm/480,y=3cm/480] \useasboundingbox (-256, -256) (256, 256); \reflect[split={DeepOrange500 and DeepOrange700}]{ \fill [fill color] (0,96) ellipse [x radius=96, y radius=128]; \fill [fill color] (72,-16) .. controls ++(270:72) and ++(270:40) .. ++(108, -16) .. controls ++( 90:64) and ++(270:64) .. ++(-40,128) .. controls ++( 90:32) and ++(270:32) .. ++( 40, 96) arc (180:0:4) .. controls ++(270: 32) and ++( 90: 32) .. ++(-24, -96) .. controls ++(270: 64) and ++( 90: 64) .. ++( 56,-128) .. controls ++(270:128) and ++(270:160) .. ( 0, -16); \fill [fill color] (64, 16) circle [radius=48]; \fill [Grey50] (64, 16) circle [radius=32]; \fill [BlueGrey900] (64, 16) circle [radius=12]; \fill [fill color] (-4, -20) .. controls ++(270:256) and ++(225: 64) .. (128,-192) arc (315:495:4) .. controls ++(210: 64) and ++(270:192) .. (48, -40); } \fill [DeepOrange900] (-40,-40) arc (180:360:40 and 16) arc (360:180:40 and 40); \fill [DeepOrange300] (-32,108) circle [radius=16] (-40,160) circle [radius=12] (-20,196) circle [radius= 8] ( 40,160) circle [radius=16] ( 64,120) circle [radius= 8] ( 40,100) circle [radius=12]; \end{scope} } } \begin{document} \begin{tikzpicture} \fill [fill=LightBlue300] circle [radius=2]; \pic {squid}; \end{tikzpicture} \end{document}
Change the color of the squid to yellow
A yellow squid
easy
update
animal
[ "@@ -25 +25 @@\n\n-\\reflect[split={DeepOrange500 and DeepOrange700}]{\n+\\reflect[split={Yellow500 and Yellow700}]{", "@@ -25 +25 @@\n\n-\\reflect[split={DeepOrange500 and DeepOrange700}]{\n+\\reflect[split={Amber500 and Amber700}]{" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nsquid/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split={Yellow§range(300,700,500) and Yellow§range(300,700,700)}]{\n \\fill [fill color] (0,96) ellipse [x radius=96, y radius=128];\n \\fill [fill color]\n (72,-16)\n .. controls ++(270:72) and ++(270:40) .. ++(108, -16)\n .. controls ++( 90:64) and ++(270:64) .. ++(-40,128)\n .. controls ++( 90:32) and ++(270:32) .. ++( 40, 96)\n arc (180:0:4)\n .. controls ++(270: 32) and ++( 90: 32) .. ++(-24, -96)\n .. controls ++(270: 64) and ++( 90: 64) .. ++( 56,-128)\n .. controls ++(270:128) and ++(270:160) .. ( 0, -16);\n \\fill [fill color] (64, 16) circle [radius=48];\n \\fill [Grey50] (64, 16) circle [radius=32];\n \\fill [BlueGrey900] (64, 16) circle [radius=12];\n \\fill [fill color] (-4, -20)\n .. controls ++(270:256) and ++(225: 64) .. (128,-192)\n arc (315:495:4)\n .. controls ++(210: 64) and ++(270:192) .. (48, -40);\n}\n\\fill [§choice([\"DeepOrange\",\"Yellow\"],DeepOrange)§range(700,900,900)]\n (-40,-40) arc (180:360:40 and 16) arc (360:180:40 and 40);\n\\fill [§choice([\"DeepOrange\",\"Yellow\"],DeepOrange)§range(300,500,300)]\n (-32,108) circle [radius=16] (-40,160) circle [radius=12]\n (-20,196) circle [radius= 8] ( 40,160) circle [radius=16]\n ( 64,120) circle [radius= 8] ( 40,100) circle [radius=12];\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {squid};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nsquid/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split={Amber§range(300,700,500) and Amber§range(300,700,700)}]{\n \\fill [fill color] (0,96) ellipse [x radius=96, y radius=128];\n \\fill [fill color]\n (72,-16)\n .. controls ++(270:72) and ++(270:40) .. ++(108, -16)\n .. controls ++( 90:64) and ++(270:64) .. ++(-40,128)\n .. controls ++( 90:32) and ++(270:32) .. ++( 40, 96)\n arc (180:0:4)\n .. controls ++(270: 32) and ++( 90: 32) .. ++(-24, -96)\n .. controls ++(270: 64) and ++( 90: 64) .. ++( 56,-128)\n .. controls ++(270:128) and ++(270:160) .. ( 0, -16);\n \\fill [fill color] (64, 16) circle [radius=48];\n \\fill [Grey50] (64, 16) circle [radius=32];\n \\fill [BlueGrey900] (64, 16) circle [radius=12];\n \\fill [fill color] (-4, -20)\n .. controls ++(270:256) and ++(225: 64) .. (128,-192)\n arc (315:495:4)\n .. controls ++(210: 64) and ++(270:192) .. (48, -40);\n}\n\\fill [§choice([\"DeepOrange\",\"Amber\"],DeepOrange)§range(700,900,900)]\n (-40,-40) arc (180:360:40 and 16) arc (360:180:40 and 40);\n\\fill [§choice([\"DeepOrange\",\"Amber\"],DeepOrange)§range(300,500,300)]\n (-32,108) circle [radius=16] (-40,160) circle [radius=12]\n (-20,196) circle [radius= 8] ( 40,160) circle [radius=16]\n ( 64,120) circle [radius= 8] ( 40,100) circle [radius=12];\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {squid};\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nsquid/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split={Yellow500 and Yellow700}]{\n \\fill [fill color] (0,96) ellipse [x radius=96, y radius=128];\n \\fill [fill color]\n (72,-16)\n .. controls ++(270:72) and ++(270:40) .. ++(108, -16)\n .. controls ++( 90:64) and ++(270:64) .. ++(-40,128)\n .. controls ++( 90:32) and ++(270:32) .. ++( 40, 96)\n arc (180:0:4)\n .. controls ++(270: 32) and ++( 90: 32) .. ++(-24, -96)\n .. controls ++(270: 64) and ++( 90: 64) .. ++( 56,-128)\n .. controls ++(270:128) and ++(270:160) .. ( 0, -16);\n \\fill [fill color] (64, 16) circle [radius=48];\n \\fill [Grey50] (64, 16) circle [radius=32];\n \\fill [BlueGrey900] (64, 16) circle [radius=12];\n \\fill [fill color] (-4, -20)\n .. controls ++(270:256) and ++(225: 64) .. (128,-192)\n arc (315:495:4)\n .. controls ++(210: 64) and ++(270:192) .. (48, -40);\n}\n\\fill [DeepOrange900]\n (-40,-40) arc (180:360:40 and 16) arc (360:180:40 and 40);\n\\fill [DeepOrange300]\n (-32,108) circle [radius=16] (-40,160) circle [radius=12]\n (-20,196) circle [radius= 8] ( 40,160) circle [radius=16]\n ( 64,120) circle [radius= 8] ( 40,100) circle [radius=12];\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {squid};\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[prefix=]{xcolor-material}\n\n\\tikzset{\n half clip/.code={\n \\clip (0, -256) rectangle (256, 256);\n },\n color/.code=\\colorlet{fill color}{#1},\n color alias/.code args={#1 as #2}{\\colorlet{#1}{#2}},\n on left/.style={.. on left/.style={#1}},\n on right/.style={.. on right/.style={#1}},\n split/.style args={#1 and #2}{\n on left ={color alias=fill color as #1},\n on right={color alias=fill color as #2, half clip}\n }\n}\n\\newcommand\\reflect[2][]{\n\\begin{scope}[#1]\\foreach \\side in {-1, 1}{\\begin{scope}\n\\ifnum\\side=-1 \\tikzset{.. on left/.try}\\else\\tikzset{.. on right/.try}\\fi\n\\begin{scope}[xscale=\\side]#2\\end{scope}\n\\end{scope}}\\end{scope}}\n\n\\tikzset{\nsquid/.pic={\n\\begin{scope}[x=3cm/480,y=3cm/480]\n\\useasboundingbox (-256, -256) (256, 256);\n\\reflect[split={Amber500 and Amber700}]{\n \\fill [fill color] (0,96) ellipse [x radius=96, y radius=128];\n \\fill [fill color]\n (72,-16)\n .. controls ++(270:72) and ++(270:40) .. ++(108, -16)\n .. controls ++( 90:64) and ++(270:64) .. ++(-40,128)\n .. controls ++( 90:32) and ++(270:32) .. ++( 40, 96)\n arc (180:0:4)\n .. controls ++(270: 32) and ++( 90: 32) .. ++(-24, -96)\n .. controls ++(270: 64) and ++( 90: 64) .. ++( 56,-128)\n .. controls ++(270:128) and ++(270:160) .. ( 0, -16);\n \\fill [fill color] (64, 16) circle [radius=48];\n \\fill [Grey50] (64, 16) circle [radius=32];\n \\fill [BlueGrey900] (64, 16) circle [radius=12];\n \\fill [fill color] (-4, -20)\n .. controls ++(270:256) and ++(225: 64) .. (128,-192)\n arc (315:495:4)\n .. controls ++(210: 64) and ++(270:192) .. (48, -40);\n}\n\\fill [DeepOrange900]\n (-40,-40) arc (180:360:40 and 16) arc (360:180:40 and 40);\n\\fill [DeepOrange300]\n (-32,108) circle [radius=16] (-40,160) circle [radius=12]\n (-20,196) circle [radius= 8] ( 40,160) circle [radius=16]\n ( 64,120) circle [radius= 8] ( 40,100) circle [radius=12];\n\\end{scope}\n}\n}\n\\begin{document}\n\\begin{tikzpicture}\n\\fill [fill=LightBlue300] circle [radius=2];\n\\pic {squid};\n\\end{tikzpicture}\n\\end{document}" ]
[ 2 ]
torustube_hole_increase
\documentclass[tikz,border=5]{standalone} \usepackage{amsmath,amssymb} \usepackage{color} \usepackage{tikz} \usetikzlibrary{fadings} \usetikzlibrary{patterns} \usetikzlibrary{shadows.blur} \usetikzlibrary{shapes} \begin{document} \begin{tikzpicture}[x=0.75pt,y=0.75pt,yscale=-1,xscale=1] \draw (28.5,53.5) .. controls (28.5,30.03) and (48.43,11) .. (73,11) .. controls (97.58,11) and (117.5,30.03) .. (117.5,53.5) .. controls (117.5,76.97) and (97.58,96) .. (73,96) .. controls (48.43,96) and (28.5,76.97) .. (28.5,53.5) -- cycle ; \draw (50,25.5) .. controls (64,-10.56) and (66,-10.69) .. (80.5,25.5) ; \draw (55,25.5) .. controls (64,-4.56) and (66,-4.69) .. (75.5,25.5) ; \draw (50,25.5) .. controls (52,23) and (53,23) .. (55,25.5) ; \draw (50,25.5) .. controls (52,28) and (53,28) .. (55,25.5) ; \draw (75.5,25.5) .. controls (77.5,23) and (78.5,23) .. (80.5,25.5) ; \draw (75.5,25.5) .. controls (77.5,28) and (78.5,28) .. (80.5,25.5) ; \draw (178.5,53.5) .. controls (178.5,30.03) and (198.43,11) .. (223,11) .. controls (247.58,11) and (267.5,30.03) .. (267.5,53.5) .. controls (267.5,76.97) and (247.58,96) .. (223,96) .. controls (198.43,96) and (178.5,76.97) .. (178.5,53.5) -- cycle ; \draw (200,45) .. controls (200,65) and (250,65) .. (250,45) ; \draw (205,55.5) .. controls (205,50) and (245,50) .. (245,55.5) ; \draw (135.5,50) node [anchor=north west][inner sep=0.75pt] [rotate=0] [align=left] {{\fontsize{18pt}{18pt}\selectfont $\ll$}}; \draw (200,-30) node [anchor=north west][inner sep=0.75pt] {$\textcolor[rgb]{0.82,0.01,0.11}{\sim A^{-1}}$}; \draw (50,-30) node [anchor=north west][inner sep=0.75pt] {$\textcolor[rgb]{0.82,0.01,0.11}{\sim A^{-b+1}}$}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{amsmath,amssymb} \usepackage{color} \usepackage{tikz} \usetikzlibrary{fadings} \usetikzlibrary{patterns} \usetikzlibrary{shadows.blur} \usetikzlibrary{shapes} \begin{document} \begin{tikzpicture}[x=0.75pt,y=0.75pt,yscale=-1,xscale=1] \draw %circle (28.5,53.5) .. controls (28.5,30.03) and (48.43,11) .. (73,11) .. controls (97.58,11) and (117.5,30.03) .. (117.5,53.5) .. controls (117.5,76.97) and (97.58,96) .. (73,96) .. controls (48.43,96) and (28.5,76.97) .. (28.5,53.5) -- cycle ; \draw %thin tube lower curve (50,25.5) .. controls (64,-10.56) and (66,-10.69) .. (80.5,25.5) ; \draw %thin tube upper curve (55,25.5) .. controls (64,-4.56) and (66,-4.69) .. (75.5,25.5) ; \draw %thin tube (50,25.5) .. controls (52,23) and (53,23) .. (55,25.5) ; \draw %thin tube (50,25.5) .. controls (52,28) and (53,28) .. (55,25.5) ; \draw %thin tube right circle (75.5,25.5) .. controls (77.5,23) and (78.5,23) .. (80.5,25.5) ; \draw %thin tube right circle (75.5,25.5) .. controls (77.5,28) and (78.5,28) .. (80.5,25.5) ; \draw %circle (178.5,53.5) .. controls (178.5,30.03) and (198.43,11) .. (223,11) .. controls (247.58,11) and (267.5,30.03) .. (267.5,53.5) .. controls (267.5,76.97) and (247.58,96) .. (223,96) .. controls (198.43,96) and (178.5,76.97) .. (178.5,53.5) -- cycle ; \draw %torus (200,45) .. controls (200,65) and (250,65) .. (250,45) ; \draw %torus (205,55.5) .. controls (205,50) and (245,50) .. (245,55.5) ; % Text Node \draw (135.5,50) node [anchor=north west][inner sep=0.75pt] [rotate=0] [align=left] {{\fontsize{18pt}{18pt}\selectfont $\ll$}};% % Text Node % Text Node \draw (200,-30) node [anchor=north west][inner sep=0.75pt] {$\textcolor[rgb]{0.82,0.01,0.11}{\sim A^{-1}}$}; % Text Node \draw (50,-30) node [anchor=north west][inner sep=0.75pt] {$\textcolor[rgb]{0.82,0.01,0.11}{\sim A^{-b+1}}$}; \end{tikzpicture} \end{document}
Increase the size of the hole in the torus
A diagram witha torus with a large hole on the right.
hard
update
scientific
[ "@@ -28 +28 @@\n\n-(200,45) .. controls (200,65) and (250,65) .. (250,45) ;\n+(200,50) .. controls (200,80) and (250,80) .. (250,50) ;\n@@ -30 +30 @@\n\n-(205,55.5) .. controls (205,50) and (245,50) .. (245,55.5) ;\n+(201,57) .. controls (201,25) and (249,25) .. (249,57) ;" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath,amssymb}\n\\usepackage{color}\n\\usepackage{tikz}\n\\usetikzlibrary{fadings}\n\\usetikzlibrary{patterns}\n\\usetikzlibrary{shadows.blur}\n\\usetikzlibrary{shapes}\n\n\\begin{document}\n\n\\begin{tikzpicture}[x=0.75pt,y=0.75pt,yscale=-1,xscale=1]\n\n\n\\draw \n(28.5,53.5) .. controls (28.5,30.03) and (48.43,11) .. (73,11) .. controls (97.58,11) and (117.5,30.03) .. (117.5,53.5) .. controls (117.5,76.97) and (97.58,96) .. (73,96) .. controls (48.43,96) and (28.5,76.97) .. (28.5,53.5) -- cycle ;\n\\draw \n(50,25.5) .. controls (64,-10.56) and (66,-10.69) .. (80.5,25.5) ;\n\\draw \n(55,25.5) .. controls (64,-4.56) and (66,-4.69) .. (75.5,25.5) ;\n\\draw \n(50,25.5) .. controls (52,23) and (53,23) .. (55,25.5) ;\n\\draw \n(50,25.5) .. controls (52,28) and (53,28) .. (55,25.5) ;\n\\draw \n(75.5,25.5) .. controls (77.5,23) and (78.5,23) .. (80.5,25.5) ;\n\\draw \n(75.5,25.5) .. controls (77.5,28) and (78.5,28) .. (80.5,25.5) ;\n\n\n\\draw \n(178.5,53.5) .. controls (178.5,30.03) and (198.43,11) .. (223,11) .. controls (247.58,11) and (267.5,30.03) .. (267.5,53.5) .. controls (267.5,76.97) and (247.58,96) .. (223,96) .. controls (198.43,96) and (178.5,76.97) .. (178.5,53.5) -- cycle ;\n\\draw \n(200,§rangei(50,5)) .. controls (200,§rangei(80,5)) and (250,§rangei(80,5)) .. (250,§rangei(50,5)) ;\n\\draw \n(§rangei(201,1),§rangei(57,2)) .. controls (§rangei(201,5),§rangei(25,5)) and (§rangei(249,5),§rangei(25,5)) .. (249,57) ;\n\n\\draw (135.5,50) node [anchor=north west][inner sep=0.75pt] [rotate=0] [align=left] {{\\fontsize{18pt}{18pt}\\selectfont $\\ll$}};\n \\draw (200,-30) node [anchor=north west][inner sep=0.75pt] {$\\textcolor[rgb]{0.82,0.01,0.11}{\\sim A^{-1}}$};\n \\draw (50,-30) node [anchor=north west][inner sep=0.75pt] {$\\textcolor[rgb]{0.82,0.01,0.11}{\\sim A^{-b+1}}$};\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath,amssymb}\n\\usepackage{color}\n\\usepackage{tikz}\n\\usetikzlibrary{fadings}\n\\usetikzlibrary{patterns}\n\\usetikzlibrary{shadows.blur}\n\\usetikzlibrary{shapes}\n\n\\begin{document}\n\n\\begin{tikzpicture}[x=0.75pt,y=0.75pt,yscale=-1,xscale=1]\n\n\n\\draw \n(28.5,53.5) .. controls (28.5,30.03) and (48.43,11) .. (73,11) .. controls (97.58,11) and (117.5,30.03) .. (117.5,53.5) .. controls (117.5,76.97) and (97.58,96) .. (73,96) .. controls (48.43,96) and (28.5,76.97) .. (28.5,53.5) -- cycle ;\n\\draw \n(50,25.5) .. controls (64,-10.56) and (66,-10.69) .. (80.5,25.5) ;\n\\draw \n(55,25.5) .. controls (64,-4.56) and (66,-4.69) .. (75.5,25.5) ;\n\\draw \n(50,25.5) .. controls (52,23) and (53,23) .. (55,25.5) ;\n\\draw \n(50,25.5) .. controls (52,28) and (53,28) .. (55,25.5) ;\n\\draw \n(75.5,25.5) .. controls (77.5,23) and (78.5,23) .. (80.5,25.5) ;\n\\draw \n(75.5,25.5) .. controls (77.5,28) and (78.5,28) .. (80.5,25.5) ;\n\n\n\\draw \n(178.5,53.5) .. controls (178.5,30.03) and (198.43,11) .. (223,11) .. controls (247.58,11) and (267.5,30.03) .. (267.5,53.5) .. controls (267.5,76.97) and (247.58,96) .. (223,96) .. controls (198.43,96) and (178.5,76.97) .. (178.5,53.5) -- cycle ;\n\\draw \n(200,50) .. controls (200,80) and (250,80) .. (250,50) ;\n\\draw \n(201,57) .. controls (201,25) and (249,25) .. (249,57) ;\n\n\\draw (135.5,50) node [anchor=north west][inner sep=0.75pt] [rotate=0] [align=left] {{\\fontsize{18pt}{18pt}\\selectfont $\\ll$}};\n \\draw (200,-30) node [anchor=north west][inner sep=0.75pt] {$\\textcolor[rgb]{0.82,0.01,0.11}{\\sim A^{-1}}$};\n \\draw (50,-30) node [anchor=north west][inner sep=0.75pt] {$\\textcolor[rgb]{0.82,0.01,0.11}{\\sim A^{-b+1}}$};\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ 9, 9 ]
torustube_rotation
\documentclass[tikz,border=5]{standalone} \usepackage{amsmath,amssymb} \usepackage{color} \usepackage{tikz} \usetikzlibrary{fadings} \usetikzlibrary{patterns} \usetikzlibrary{shadows.blur} \usetikzlibrary{shapes} \begin{document} \begin{tikzpicture}[x=0.75pt,y=0.75pt,yscale=-1,xscale=1] \draw (28.5,53.5) .. controls (28.5,30.03) and (48.43,11) .. (73,11) .. controls (97.58,11) and (117.5,30.03) .. (117.5,53.5) .. controls (117.5,76.97) and (97.58,96) .. (73,96) .. controls (48.43,96) and (28.5,76.97) .. (28.5,53.5) -- cycle ; \draw (50,25.5) .. controls (64,-10.56) and (66,-10.69) .. (80.5,25.5) ; \draw (55,25.5) .. controls (64,-4.56) and (66,-4.69) .. (75.5,25.5) ; \draw (50,25.5) .. controls (52,23) and (53,23) .. (55,25.5) ; \draw (50,25.5) .. controls (52,28) and (53,28) .. (55,25.5) ; \draw (75.5,25.5) .. controls (77.5,23) and (78.5,23) .. (80.5,25.5) ; \draw (75.5,25.5) .. controls (77.5,28) and (78.5,28) .. (80.5,25.5) ; \draw (178.5,53.5) .. controls (178.5,30.03) and (198.43,11) .. (223,11) .. controls (247.58,11) and (267.5,30.03) .. (267.5,53.5) .. controls (267.5,76.97) and (247.58,96) .. (223,96) .. controls (198.43,96) and (178.5,76.97) .. (178.5,53.5) -- cycle ; \draw (200,45) .. controls (200,65) and (250,65) .. (250,45) ; \draw (205,55.5) .. controls (205,50) and (245,50) .. (245,55.5) ; \draw (135.5,50) node [anchor=north west][inner sep=0.75pt] [rotate=0] [align=left] {{\fontsize{18pt}{18pt}\selectfont $\ll$}}; \draw (200,-30) node [anchor=north west][inner sep=0.75pt] {$\textcolor[rgb]{0.82,0.01,0.11}{\sim A^{-1}}$}; \draw (50,-30) node [anchor=north west][inner sep=0.75pt] {$\textcolor[rgb]{0.82,0.01,0.11}{\sim A^{-b+1}}$}; \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{amsmath,amssymb} \usepackage{color} \usepackage{tikz} \usetikzlibrary{fadings} \usetikzlibrary{patterns} \usetikzlibrary{shadows.blur} \usetikzlibrary{shapes} \begin{document} \begin{tikzpicture}[x=0.75pt,y=0.75pt,yscale=-1,xscale=1] \draw %circle (28.5,53.5) .. controls (28.5,30.03) and (48.43,11) .. (73,11) .. controls (97.58,11) and (117.5,30.03) .. (117.5,53.5) .. controls (117.5,76.97) and (97.58,96) .. (73,96) .. controls (48.43,96) and (28.5,76.97) .. (28.5,53.5) -- cycle ; \draw %thin tube lower curve (50,25.5) .. controls (64,-10.56) and (66,-10.69) .. (80.5,25.5) ; \draw %thin tube upper curve (55,25.5) .. controls (64,-4.56) and (66,-4.69) .. (75.5,25.5) ; \draw %thin tube (50,25.5) .. controls (52,23) and (53,23) .. (55,25.5) ; \draw %thin tube (50,25.5) .. controls (52,28) and (53,28) .. (55,25.5) ; \draw %thin tube right circle (75.5,25.5) .. controls (77.5,23) and (78.5,23) .. (80.5,25.5) ; \draw %thin tube right circle (75.5,25.5) .. controls (77.5,28) and (78.5,28) .. (80.5,25.5) ; \draw %circle (178.5,53.5) .. controls (178.5,30.03) and (198.43,11) .. (223,11) .. controls (247.58,11) and (267.5,30.03) .. (267.5,53.5) .. controls (267.5,76.97) and (247.58,96) .. (223,96) .. controls (198.43,96) and (178.5,76.97) .. (178.5,53.5) -- cycle ; \draw %torus (200,45) .. controls (200,65) and (250,65) .. (250,45) ; \draw %torus (205,55.5) .. controls (205,50) and (245,50) .. (245,55.5) ; % Text Node \draw (135.5,50) node [anchor=north west][inner sep=0.75pt] [rotate=0] [align=left] {{\fontsize{18pt}{18pt}\selectfont $\ll$}};% % Text Node % Text Node \draw (200,-30) node [anchor=north west][inner sep=0.75pt] {$\textcolor[rgb]{0.82,0.01,0.11}{\sim A^{-1}}$}; % Text Node \draw (50,-30) node [anchor=north west][inner sep=0.75pt] {$\textcolor[rgb]{0.82,0.01,0.11}{\sim A^{-b+1}}$}; \end{tikzpicture} \end{document}
Rotate the torus 90° clockwise.
A diagram witha torus rotated 90 degrees on the right.
medium
update
scientific
[ "@@ -24,0 +25 @@\n\n+\\begin{scope}[rotate around={90:(223,53.5)}]\n@@ -30,0 +32 @@\n\n+\\end{scope}", "@@ -26,0 +27 @@\n\n+\\begin{scope}[rotate around={90:(223,53.5)}]\n@@ -30,0 +32 @@\n\n+\\end{scope}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath,amssymb}\n\\usepackage{color}\n\\usepackage{tikz}\n\\usetikzlibrary{fadings}\n\\usetikzlibrary{patterns}\n\\usetikzlibrary{shadows.blur}\n\\usetikzlibrary{shapes}\n\n\\begin{document}\n\n\\begin{tikzpicture}[x=0.75pt,y=0.75pt,yscale=-1,xscale=1]\n\n\n\\draw \n(28.5,53.5) .. controls (28.5,30.03) and (48.43,11) .. (73,11) .. controls (97.58,11) and (117.5,30.03) .. (117.5,53.5) .. controls (117.5,76.97) and (97.58,96) .. (73,96) .. controls (48.43,96) and (28.5,76.97) .. (28.5,53.5) -- cycle ;\n\\draw \n(50,25.5) .. controls (64,-10.56) and (66,-10.69) .. (80.5,25.5) ;\n\\draw \n(55,25.5) .. controls (64,-4.56) and (66,-4.69) .. (75.5,25.5) ;\n\\draw \n(50,25.5) .. controls (52,23) and (53,23) .. (55,25.5) ;\n\\draw \n(50,25.5) .. controls (52,28) and (53,28) .. (55,25.5) ;\n\\draw \n(75.5,25.5) .. controls (77.5,23) and (78.5,23) .. (80.5,25.5) ;\n\\draw \n(75.5,25.5) .. controls (77.5,28) and (78.5,28) .. (80.5,25.5) ;\n\n\\begin{scope}[rotate around={90:(§rangei(223,5),§rangei(53.5,5))}]\n\\draw \n(178.5,53.5) .. controls (178.5,30.03) and (198.43,11) .. (223,11) .. controls (247.58,11) and (267.5,30.03) .. (267.5,53.5) .. controls (267.5,76.97) and (247.58,96) .. (223,96) .. controls (198.43,96) and (178.5,76.97) .. (178.5,53.5) -- cycle ;\n\\draw \n(200,45) .. controls (200,65) and (250,65) .. (250,45) ;\n\\draw \n(205,55.5) .. controls (205,50) and (245,50) .. (245,55.5) ;\n\n\\end{scope}\n\\draw (135.5,50) node [anchor=north west][inner sep=0.75pt] [rotate=0] [align=left] {{\\fontsize{18pt}{18pt}\\selectfont $\\ll$}};\n \\draw (200,-30) node [anchor=north west][inner sep=0.75pt] {$\\textcolor[rgb]{0.82,0.01,0.11}{\\sim A^{-1}}$};\n \\draw (50,-30) node [anchor=north west][inner sep=0.75pt] {$\\textcolor[rgb]{0.82,0.01,0.11}{\\sim A^{-b+1}}$};\n\n\\end{tikzpicture}\n\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath,amssymb}\n\\usepackage{color}\n\\usepackage{tikz}\n\\usetikzlibrary{fadings}\n\\usetikzlibrary{patterns}\n\\usetikzlibrary{shadows.blur}\n\\usetikzlibrary{shapes}\n\n\\begin{document}\n\n\\begin{tikzpicture}[x=0.75pt,y=0.75pt,yscale=-1,xscale=1]\n\n\n\\draw \n(28.5,53.5) .. controls (28.5,30.03) and (48.43,11) .. (73,11) .. controls (97.58,11) and (117.5,30.03) .. (117.5,53.5) .. controls (117.5,76.97) and (97.58,96) .. (73,96) .. controls (48.43,96) and (28.5,76.97) .. (28.5,53.5) -- cycle ;\n\\draw \n(50,25.5) .. controls (64,-10.56) and (66,-10.69) .. (80.5,25.5) ;\n\\draw \n(55,25.5) .. controls (64,-4.56) and (66,-4.69) .. (75.5,25.5) ;\n\\draw \n(50,25.5) .. controls (52,23) and (53,23) .. (55,25.5) ;\n\\draw \n(50,25.5) .. controls (52,28) and (53,28) .. (55,25.5) ;\n\\draw \n(75.5,25.5) .. controls (77.5,23) and (78.5,23) .. (80.5,25.5) ;\n\\draw \n(75.5,25.5) .. controls (77.5,28) and (78.5,28) .. (80.5,25.5) ;\n\n\\draw \n(178.5,53.5) .. controls (178.5,30.03) and (198.43,11) .. (223,11) .. controls (247.58,11) and (267.5,30.03) .. (267.5,53.5) .. controls (267.5,76.97) and (247.58,96) .. (223,96) .. controls (198.43,96) and (178.5,76.97) .. (178.5,53.5) -- cycle ;\n\\begin{scope}[rotate around={90:(§rangei(223,5),§rangei(53.5,5))}]\n\\draw \n(200,45) .. controls (200,65) and (250,65) .. (250,45) ;\n\\draw \n(205,55.5) .. controls (205,50) and (245,50) .. (245,55.5) ;\n\n\\end{scope}\n\\draw (135.5,50) node [anchor=north west][inner sep=0.75pt] [rotate=0] [align=left] {{\\fontsize{18pt}{18pt}\\selectfont $\\ll$}};\n \\draw (200,-30) node [anchor=north west][inner sep=0.75pt] {$\\textcolor[rgb]{0.82,0.01,0.11}{\\sim A^{-1}}$};\n \\draw (50,-30) node [anchor=north west][inner sep=0.75pt] {$\\textcolor[rgb]{0.82,0.01,0.11}{\\sim A^{-b+1}}$};\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath,amssymb}\n\\usepackage{color}\n\\usepackage{tikz}\n\\usetikzlibrary{fadings}\n\\usetikzlibrary{patterns}\n\\usetikzlibrary{shadows.blur}\n\\usetikzlibrary{shapes}\n\n\\begin{document}\n\n\\begin{tikzpicture}[x=0.75pt,y=0.75pt,yscale=-1,xscale=1]\n\n\n\\draw \n(28.5,53.5) .. controls (28.5,30.03) and (48.43,11) .. (73,11) .. controls (97.58,11) and (117.5,30.03) .. (117.5,53.5) .. controls (117.5,76.97) and (97.58,96) .. (73,96) .. controls (48.43,96) and (28.5,76.97) .. (28.5,53.5) -- cycle ;\n\\draw \n(50,25.5) .. controls (64,-10.56) and (66,-10.69) .. (80.5,25.5) ;\n\\draw \n(55,25.5) .. controls (64,-4.56) and (66,-4.69) .. (75.5,25.5) ;\n\\draw \n(50,25.5) .. controls (52,23) and (53,23) .. (55,25.5) ;\n\\draw \n(50,25.5) .. controls (52,28) and (53,28) .. (55,25.5) ;\n\\draw \n(75.5,25.5) .. controls (77.5,23) and (78.5,23) .. (80.5,25.5) ;\n\\draw \n(75.5,25.5) .. controls (77.5,28) and (78.5,28) .. (80.5,25.5) ;\n\n\\begin{scope}[rotate around={90:(223,53.5)}]\n\\draw \n(178.5,53.5) .. controls (178.5,30.03) and (198.43,11) .. (223,11) .. controls (247.58,11) and (267.5,30.03) .. (267.5,53.5) .. controls (267.5,76.97) and (247.58,96) .. (223,96) .. controls (198.43,96) and (178.5,76.97) .. (178.5,53.5) -- cycle ;\n\\draw \n(200,45) .. controls (200,65) and (250,65) .. (250,45) ;\n\\draw \n(205,55.5) .. controls (205,50) and (245,50) .. (245,55.5) ;\n\n\\end{scope}\n\\draw (135.5,50) node [anchor=north west][inner sep=0.75pt] [rotate=0] [align=left] {{\\fontsize{18pt}{18pt}\\selectfont $\\ll$}};\n \\draw (200,-30) node [anchor=north west][inner sep=0.75pt] {$\\textcolor[rgb]{0.82,0.01,0.11}{\\sim A^{-1}}$};\n \\draw (50,-30) node [anchor=north west][inner sep=0.75pt] {$\\textcolor[rgb]{0.82,0.01,0.11}{\\sim A^{-b+1}}$};\n\n\\end{tikzpicture}\n\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath,amssymb}\n\\usepackage{color}\n\\usepackage{tikz}\n\\usetikzlibrary{fadings}\n\\usetikzlibrary{patterns}\n\\usetikzlibrary{shadows.blur}\n\\usetikzlibrary{shapes}\n\n\\begin{document}\n\n\\begin{tikzpicture}[x=0.75pt,y=0.75pt,yscale=-1,xscale=1]\n\n\n\\draw \n(28.5,53.5) .. controls (28.5,30.03) and (48.43,11) .. (73,11) .. controls (97.58,11) and (117.5,30.03) .. (117.5,53.5) .. controls (117.5,76.97) and (97.58,96) .. (73,96) .. controls (48.43,96) and (28.5,76.97) .. (28.5,53.5) -- cycle ;\n\\draw \n(50,25.5) .. controls (64,-10.56) and (66,-10.69) .. (80.5,25.5) ;\n\\draw \n(55,25.5) .. controls (64,-4.56) and (66,-4.69) .. (75.5,25.5) ;\n\\draw \n(50,25.5) .. controls (52,23) and (53,23) .. (55,25.5) ;\n\\draw \n(50,25.5) .. controls (52,28) and (53,28) .. (55,25.5) ;\n\\draw \n(75.5,25.5) .. controls (77.5,23) and (78.5,23) .. (80.5,25.5) ;\n\\draw \n(75.5,25.5) .. controls (77.5,28) and (78.5,28) .. (80.5,25.5) ;\n\n\\draw \n(178.5,53.5) .. controls (178.5,30.03) and (198.43,11) .. (223,11) .. controls (247.58,11) and (267.5,30.03) .. (267.5,53.5) .. controls (267.5,76.97) and (247.58,96) .. (223,96) .. controls (198.43,96) and (178.5,76.97) .. (178.5,53.5) -- cycle ;\n\\begin{scope}[rotate around={90:(223,53.5)}]\n\\draw \n(200,45) .. controls (200,65) and (250,65) .. (250,45) ;\n\\draw \n(205,55.5) .. controls (205,50) and (245,50) .. (245,55.5) ;\n\n\\end{scope}\n\\draw (135.5,50) node [anchor=north west][inner sep=0.75pt] [rotate=0] [align=left] {{\\fontsize{18pt}{18pt}\\selectfont $\\ll$}};\n \\draw (200,-30) node [anchor=north west][inner sep=0.75pt] {$\\textcolor[rgb]{0.82,0.01,0.11}{\\sim A^{-1}}$};\n \\draw (50,-30) node [anchor=north west][inner sep=0.75pt] {$\\textcolor[rgb]{0.82,0.01,0.11}{\\sim A^{-b+1}}$};\n\n\\end{tikzpicture}\n\n\\end{document}" ]
[ 40 ]
vima_no_256
\documentclass[tikz,border=5]{standalone} \usepackage{amsmath,amssymb,amsfonts} \usepackage{xcolor} \usepackage{pgfplots} \usepackage{pgfplots} \pgfplotsset{width=8cm,compat=newest} \pgfplotsset{every tick label/.append style={font=\small}} \begin{document} \begin{tikzpicture} \begin{axis}[ height=3.5cm, width=9.5cm, ybar=0pt, bar width=8pt, xtick=data, xtick style= {draw=none}, ylabel=Speedup, enlarge x limits = 0.2, y label style={font=\footnotesize,yshift=-2mm}, x label style={font=\footnotesize}, ymax=30, ymin=0, axis line style={draw=none}, ytick={0,5,10,15,20,25,30}, ytick style={font=\scriptsize}, yticklabels={0,5,10,15,20,25,30}, ymajorgrids=true, tick pos=left, yticklabel style={font=\scriptsize}, nodes near coords, every node near coord/.append style={font=\scriptsize,rotate=90, anchor=west,xshift=-1mm}, symbolic x coords={VecSum,Stencil, MatMult}, legend style = {font=\scriptsize, at={(0.4,1)}, anchor=south}, legend image code/.code={ \draw[#1, draw=none, fill=black] (-0.01cm,-0.11cm) rectangle (0.31cm,0.11cm); \draw[#1, draw=none] (0cm,-0.1cm) rectangle (0.3cm,0.1cm); }, legend style = { legend columns=-1, draw={none}, text depth=0pt, /tikz/every odd column/.append style={column sep=0cm} }, legend image post style={scale=0.5}, point meta=explicit symbolic ] \addlegendimage{empty legend}, \addplot [black,/tikz/fill=white] coordinates {(Stencil,2.74)[2.74] (VecSum,7.18)[7.18] (MatMult, 3.70)[3.70]}; \addplot [black,/tikz/fill=black!40!white] coordinates {(Stencil,2.75)[2.75] (VecSum,7.18)[7.18] (MatMult, 26.48)[26.48]}; \addplot [black,/tikz/fill=black!60!white] coordinates {(Stencil,3.42)[3.42] (VecSum,7.27)[7.27] (MatMult, 26.48)[26.48]}; \addplot [black,/tikz/fill=black] coordinates {(Stencil,3.44)[3.44] (VecSum,7.17)[7.17] (MatMult, 26.47)[26.47]}; \addlegendentry{\hspace{-.6cm}\textbf{VIMA Cache Size:}}; \addlegendentry{32KB}; \addlegendentry{64KB}; \addlegendentry{128KB}; \addlegendentry{256KB}; \end{axis} \draw (0,0.1) -- +(0,-0.2); \draw (2.53,0.1) -- +(0,-0.2); \draw (5.4,0.1) -- +(0,-0.2); \draw (7.93,0.1) -- +(0,-0.2); \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{amsmath,amssymb,amsfonts} \usepackage{xcolor} \usepackage{pgfplots} \usepackage{pgfplots} \pgfplotsset{width=8cm,compat=newest} \pgfplotsset{every tick label/.append style={font=\small}} \begin{document} \begin{tikzpicture} \begin{axis}[ height=3.5cm, width=9.5cm, ybar=0pt, bar width=8pt, xtick=data, xtick style= {draw=none}, ylabel=Speedup, enlarge x limits = 0.2, y label style={font=\footnotesize,yshift=-2mm}, x label style={font=\footnotesize}, ymax=30, ymin=0, axis line style={draw=none}, ytick={0,5,10,15,20,25,30}, ytick style={font=\scriptsize}, yticklabels={0,5,10,15,20,25,30}, ymajorgrids=true, tick pos=left, yticklabel style={font=\scriptsize}, nodes near coords, every node near coord/.append style={font=\scriptsize,rotate=90, anchor=west,xshift=-1mm}, symbolic x coords={VecSum,Stencil, MatMult}, legend style = {font=\scriptsize, at={(0.4,1)}, anchor=south}, legend image code/.code={ \draw[#1, draw=none, fill=black] (-0.01cm,-0.11cm) rectangle (0.31cm,0.11cm); \draw[#1, draw=none] (0cm,-0.1cm) rectangle (0.3cm,0.1cm); }, legend style = { legend columns=-1, draw={none}, text depth=0pt, % default spacing: % the space between legend image and text: /tikz/every odd column/.append style={column sep=0cm} }, legend image post style={scale=0.5}, point meta=explicit symbolic ] \addlegendimage{empty legend}, \addplot [black,/tikz/fill=white] coordinates {(Stencil,2.74)[2.74] (VecSum,7.18)[7.18] (MatMult, 3.70)[3.70]}; % 32K \addplot [black,/tikz/fill=black!40!white] coordinates {(Stencil,2.75)[2.75] (VecSum,7.18)[7.18] (MatMult, 26.48)[26.48]}; %64K \addplot [black,/tikz/fill=black!60!white] coordinates {(Stencil,3.42)[3.42] (VecSum,7.27)[7.27] (MatMult, 26.48)[26.48]}; %128K \addplot [black,/tikz/fill=black] coordinates {(Stencil,3.44)[3.44] (VecSum,7.17)[7.17] (MatMult, 26.47)[26.47]}; %256K \addlegendentry{\hspace{-.6cm}\textbf{VIMA Cache Size:}}; \addlegendentry{32KB}; \addlegendentry{64KB}; \addlegendentry{128KB}; \addlegendentry{256KB}; \end{axis} \draw (0,0.1) -- +(0,-0.2); \draw (2.53,0.1) -- +(0,-0.2); \draw (5.4,0.1) -- +(0,-0.2); \draw (7.93,0.1) -- +(0,-0.2); \end{tikzpicture} \end{document}
Remove the measurements for 256kb
Scientific diagram with speedup measures for 32, 64 and 128kb.
easy
remove
scientific
[ "@@ -51 +50,0 @@\n\n-\\addplot [black,/tikz/fill=black] coordinates {(Stencil,3.44)[3.44] (VecSum,7.17)[7.17] (MatMult, 26.47)[26.47]};\n@@ -56 +54,0 @@\n\n-\\addlegendentry{256KB};" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath,amssymb,amsfonts}\n\\usepackage{xcolor}\n\\usepackage{pgfplots}\n\\usepackage{pgfplots}\n\\pgfplotsset{width=8cm,compat=newest}\n\\pgfplotsset{every tick label/.append style={font=\\small}}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n \\begin{axis}[\n height=3.5cm,\n width=9.5cm,\n ybar=0pt,\n bar width=8pt,\n xtick=data,\n xtick style= {draw=none},\n ylabel=Speedup,\n enlarge x limits = 0.2,\n y label style={font=\\footnotesize,yshift=-2mm},\n x label style={font=\\footnotesize},\n ymax=30,\n ymin=0,\n axis line style={draw=none},\n ytick={0,5,10,15,20,25,30},\n ytick style={font=\\scriptsize},\n yticklabels={0,5,10,15,20,25,30},\n ymajorgrids=true,\n tick pos=left,\n yticklabel style={font=\\scriptsize},\n nodes near coords,\n every node near coord/.append style={font=\\scriptsize,rotate=90, anchor=west,xshift=-1mm},\n symbolic x coords={VecSum,Stencil, MatMult},\n legend style = {font=\\scriptsize, at={(0.4,1)}, anchor=south},\n legend image code/.code={\n \\draw[#1, draw=none, fill=black] (-0.01cm,-0.11cm) rectangle (0.31cm,0.11cm);\n \\draw[#1, draw=none] (0cm,-0.1cm) rectangle (0.3cm,0.1cm);\n },\n legend style = {\n legend columns=-1,\n draw={none},\n text depth=0pt,\n /tikz/every odd column/.append style={column sep=0cm}\n },\n legend image post style={scale=0.5},\n point meta=explicit symbolic\n ]\n \\addlegendimage{empty legend},\n \\addplot [black,/tikz/fill=white] coordinates {(Stencil,2.74)[2.74] (VecSum,7.18)[7.18] (MatMult, 3.70)[3.70]}; \n \\addplot [black,/tikz/fill=black!40!white] coordinates {(Stencil,2.75)[2.75] (VecSum,7.18)[7.18] (MatMult, 26.48)[26.48]}; \n \\addplot [black,/tikz/fill=black!60!white] coordinates {(Stencil,3.42)[3.42] (VecSum,7.27)[7.27] (MatMult, 26.48)[26.48]}; \n\n \n \\addlegendentry{\\hspace{-.6cm}\\textbf{VIMA Cache Size:}};\n \\addlegendentry{32KB};\n \\addlegendentry{64KB};\n \\addlegendentry{128KB};\n \\end{axis}\n \\draw (0,0.1) -- +(0,-0.2);\n \\draw (2.53,0.1) -- +(0,-0.2);\n \\draw (5.4,0.1) -- +(0,-0.2);\n \\draw (7.93,0.1) -- +(0,-0.2);\n \n \\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath,amssymb,amsfonts}\n\\usepackage{xcolor}\n\\usepackage{pgfplots}\n\\usepackage{pgfplots}\n\\pgfplotsset{width=8cm,compat=newest}\n\\pgfplotsset{every tick label/.append style={font=\\small}}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n \\begin{axis}[\n height=3.5cm,\n width=9.5cm,\n ybar=0pt,\n bar width=8pt,\n xtick=data,\n xtick style= {draw=none},\n ylabel=Speedup,\n enlarge x limits = 0.2,\n y label style={font=\\footnotesize,yshift=-2mm},\n x label style={font=\\footnotesize},\n ymax=30,\n ymin=0,\n axis line style={draw=none},\n ytick={0,5,10,15,20,25,30},\n ytick style={font=\\scriptsize},\n yticklabels={0,5,10,15,20,25,30},\n ymajorgrids=true,\n tick pos=left,\n yticklabel style={font=\\scriptsize},\n nodes near coords,\n every node near coord/.append style={font=\\scriptsize,rotate=90, anchor=west,xshift=-1mm},\n symbolic x coords={VecSum,Stencil, MatMult},\n legend style = {font=\\scriptsize, at={(0.4,1)}, anchor=south},\n legend image code/.code={\n \\draw[#1, draw=none, fill=black] (-0.01cm,-0.11cm) rectangle (0.31cm,0.11cm);\n \\draw[#1, draw=none] (0cm,-0.1cm) rectangle (0.3cm,0.1cm);\n },\n legend style = {\n legend columns=-1,\n draw={none},\n text depth=0pt,\n /tikz/every odd column/.append style={column sep=0cm}\n },\n legend image post style={scale=0.5},\n point meta=explicit symbolic\n ]\n \\addlegendimage{empty legend},\n \\addplot [black,/tikz/fill=white] coordinates {(Stencil,2.74)[2.74] (VecSum,7.18)[7.18] (MatMult, 3.70)[3.70]}; \n \\addplot [black,/tikz/fill=black!40!white] coordinates {(Stencil,2.75)[2.75] (VecSum,7.18)[7.18] (MatMult, 26.48)[26.48]}; \n \\addplot [black,/tikz/fill=black!60!white] coordinates {(Stencil,3.42)[3.42] (VecSum,7.27)[7.27] (MatMult, 26.48)[26.48]}; \n\n \n \\addlegendentry{\\hspace{-.6cm}\\textbf{VIMA Cache Size:}};\n \\addlegendentry{32KB};\n \\addlegendentry{64KB};\n \\addlegendentry{128KB};\n \\end{axis}\n \\draw (0,0.1) -- +(0,-0.2);\n \\draw (2.53,0.1) -- +(0,-0.2);\n \\draw (5.4,0.1) -- +(0,-0.2);\n \\draw (7.93,0.1) -- +(0,-0.2);\n \n \\end{tikzpicture}\n\n\\end{document}" ]
[ 30 ]
vr_two_motors
\documentclass[tikz,border=5]{standalone} \usepackage[utf8]{inputenc} \usepackage{xcolor} \usepackage{tikz} \usetikzlibrary{patterns,positioning,arrows,arrows.meta,calc,shapes,pgfplots.groupplots,fit,backgrounds} \begin{document} \begin{tikzpicture}[squarednode/.style={rectangle, draw=black!60, very thick, minimum size=5mm},every text node part/.style={align=center}, dot/.style={ circle, minimum size=3pt}, ellipsenode/.style={ellipse, draw=black!60, very thick, minimum size=5mm}] \node[squarednode] (realworld) {Sensor \\ data}; \node[ellipsenode] (sensors) [below=of realworld] {Sensors}; \node[ellipsenode] (motors) [left= 0.2cm of sensors] {Motors}; \node[squarednode] (DNN) [above=of realworld] {Deep Learning \\ module}; \node[squarednode] (tcp) [right= 0.5cm of DNN] {Data\\transfer\\node}; \node[squarednode] (vr) [right = 0.5cm of tcp] {VR \\ environment}; \node[squarednode] (user) [below=of vr] {User}; \node[dot] (e) at (-3.2,1.5) {}; \node[dot] (f) at (0.8,-3) {}; \node[squarednode] (motion) [below=of motors] {Robot \\ controller}; \node (box) [draw=orange,rounded corners,fit = (realworld) (DNN) (motion) (e) (f)] {}; \node (box) [draw=blue,rounded corners,fit = (user) (vr)] {}; \node (box) [draw=green,rounded corners,fit = (sensors) (motors)] {}; \draw[-latex] (sensors.north) -- (realworld.south); \draw[-latex] (realworld.north) -- (DNN.south); \draw[-latex] (DNN.east) -- (tcp.west); \draw[latex-latex] (tcp.east) -- (vr.west); \draw[-latex] (user.north) -- (vr.south); \draw[latex-latex] (tcp.south) |- (motion.east); \draw[-latex] (motion.north) -| (motors.south); \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage[utf8]{inputenc} \usepackage{xcolor} \usepackage{tikz} \usetikzlibrary{patterns,positioning,arrows,arrows.meta,calc,shapes,pgfplots.groupplots,fit,backgrounds} \begin{document} \begin{tikzpicture}[squarednode/.style={rectangle, draw=black!60, very thick, minimum size=5mm},every text node part/.style={align=center}, dot/.style={ % fill=blue, circle, minimum size=3pt}, ellipsenode/.style={ellipse, draw=black!60, very thick, minimum size=5mm}] %Nodes \node[squarednode] (realworld) {Sensor \\ data}; \node[ellipsenode] (sensors) [below=of realworld] {Sensors}; \node[ellipsenode] (motors) [left= 0.2cm of sensors] {Motors}; \node[squarednode] (DNN) [above=of realworld] {Deep Learning \\ module}; \node[squarednode] (tcp) [right= 0.5cm of DNN] {Data\\transfer\\node}; \node[squarednode] (vr) [right = 0.5cm of tcp] {VR \\ environment}; \node[squarednode] (user) [below=of vr] {User}; \node[dot] (e) at (-3.2,1.5) {}; \node[dot] (f) at (0.8,-3) {}; % boxes \node[squarednode] (motion) [below=of motors] {Robot \\ controller}; \node (box) [draw=orange,rounded corners,fit = (realworld) (DNN) (motion) (e) (f)] {}; \node (box) [draw=blue,rounded corners,fit = (user) (vr)] {}; \node (box) [draw=green,rounded corners,fit = (sensors) (motors)] {}; %Lines \draw[-latex] (sensors.north) -- (realworld.south); \draw[-latex] (realworld.north) -- (DNN.south); \draw[-latex] (DNN.east) -- (tcp.west); \draw[latex-latex] (tcp.east) -- (vr.west); \draw[-latex] (user.north) -- (vr.south); \draw[latex-latex] (tcp.south) |- (motion.east); \draw[-latex] (motion.north) -| (motors.south); \end{tikzpicture} \end{document}
Split the motors into two motors next to eachother(lMotor 1 and Motor 2), that are linked to the robot controller the same way motors was. update the containers accordingly
Functionnal diagram of a system with two motors.
medium
add
scientific
[ "@@ -12 +12,2 @@\n\n-\\node[ellipsenode] (motors) [left= 0.2cm of sensors] {Motors};\n+\\node[ellipsenode] (motor2) [left= 0.2cm of sensors] {Motor 2};\n+\\node[ellipsenode] (motor1) [left= 0.2cm of motor2] {Motor 1};\n@@ -17 +18 @@\n\n-\\node[dot] (e) at (-3.2,1.5) {};\n+\\node[dot] (e) at (-5.6,1.5) {};\n@@ -19 +20 @@\n\n-\\node[squarednode] (motion) [below=of motors] {Robot \\\\ controller};\n+\\node[squarednode] (motion) [below=of motor2] {Robot \\\\ controller};\n@@ -22 +23 @@\n\n-\\node (box) [draw=green,rounded corners,fit = (sensors) (motors)] {};\n+\\node (box) [draw=green,rounded corners,fit = (sensors) (motor1) (motor2)] {};\n@@ -29 +30,2 @@\n\n-\\draw[-latex] (motion.north) -| (motors.south);\n+\\draw[-latex] (motion.north) -| (motor1.south);\n+\\draw[-latex] (motion.north) -| (motor2.south);" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[utf8]{inputenc}\n\\usepackage{xcolor}\n\\usepackage{tikz}\n\\usetikzlibrary{patterns,positioning,arrows,arrows.meta,calc,shapes,pgfplots.groupplots,fit,backgrounds}\n\n\\begin{document}\n\n\\begin{tikzpicture}[squarednode/.style={rectangle, draw=black!60, very thick, minimum size=5mm},every text node part/.style={align=center}, dot/.style={\n circle,\n minimum size=3pt}, ellipsenode/.style={ellipse, draw=black!60, very thick, minimum size=5mm}]\n \\node[squarednode] (realworld) {Sensor \\\\ data};\n \\node[ellipsenode] (sensors) [below=of realworld] {Sensors};\n\n \\node[ellipsenode] (motor2) [left= 0.2cm of sensors] {Motor 2};\n \\node[ellipsenode] (motor1) [left= 0.2cm of motor2] {Motor 1};\n \\node[squarednode] (DNN) [above=of realworld] {Deep Learning \\\\ module};\n \\node[squarednode] (tcp) [right= 0.5cm of DNN] {Data\\\\transfer\\\\node};\n \\node[squarednode] (vr) [right = 0.5cm of tcp] {VR \\\\ environment};\n \\node[squarednode] (user) [below=of vr] {User};\n \\node[dot] (e) at (§range(-6.5,-5.5,-5.6),§range(1.4,2.5,1.5)) {};\n \\node[dot] (f) at (0.8,-3) {};\n\n \\node[squarednode] (motion) [below=of motor§choice([1,2],2)] {Robot \\\\ controller};\n \\node (box) [draw=orange,rounded corners,fit = (realworld) (DNN) (motion) (e) (f)] {};\n \\node (box) [draw=blue,rounded corners,fit = (user) (vr)] {};\n \\node (box) [draw=green,rounded corners,fit = (sensors) (motor1) (motor2)] {};\n \n \\draw[-latex] (sensors.north) -- (realworld.south);\n \\draw[-latex] (realworld.north) -- (DNN.south);\n \\draw[-latex] (DNN.east) -- (tcp.west);\n \\draw[latex-latex] (tcp.east) -- (vr.west);\n \\draw[-latex] (user.north) -- (vr.south);\n \\draw[latex-latex] (tcp.south) |- (motion.east);\n \\draw[-latex] (motion.north) -| (motor1.south);\n \\draw[-latex] (motion.north) -| (motor2.south);\n\n\n \\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage[utf8]{inputenc}\n\\usepackage{xcolor}\n\\usepackage{tikz}\n\\usetikzlibrary{patterns,positioning,arrows,arrows.meta,calc,shapes,pgfplots.groupplots,fit,backgrounds}\n\n\\begin{document}\n\n\\begin{tikzpicture}[squarednode/.style={rectangle, draw=black!60, very thick, minimum size=5mm},every text node part/.style={align=center}, dot/.style={\n circle,\n minimum size=3pt}, ellipsenode/.style={ellipse, draw=black!60, very thick, minimum size=5mm}]\n \\node[squarednode] (realworld) {Sensor \\\\ data};\n \\node[ellipsenode] (sensors) [below=of realworld] {Sensors};\n\n \\node[ellipsenode] (motor2) [left= 0.2cm of sensors] {Motor 2};\n \\node[ellipsenode] (motor1) [left= 0.2cm of motor2] {Motor 1};\n \\node[squarednode] (DNN) [above=of realworld] {Deep Learning \\\\ module};\n \\node[squarednode] (tcp) [right= 0.5cm of DNN] {Data\\\\transfer\\\\node};\n \\node[squarednode] (vr) [right = 0.5cm of tcp] {VR \\\\ environment};\n \\node[squarednode] (user) [below=of vr] {User};\n \\node[dot] (e) at (-5.6,1.5) {};\n \\node[dot] (f) at (0.8,-3) {};\n\n \\node[squarednode] (motion) [below=of motor2] {Robot \\\\ controller};\n \\node (box) [draw=orange,rounded corners,fit = (realworld) (DNN) (motion) (e) (f)] {};\n \\node (box) [draw=blue,rounded corners,fit = (user) (vr)] {};\n \\node (box) [draw=green,rounded corners,fit = (sensors) (motor1) (motor2)] {};\n \n \\draw[-latex] (sensors.north) -- (realworld.south);\n \\draw[-latex] (realworld.north) -- (DNN.south);\n \\draw[-latex] (DNN.east) -- (tcp.west);\n \\draw[latex-latex] (tcp.east) -- (vr.west);\n \\draw[-latex] (user.north) -- (vr.south);\n \\draw[latex-latex] (tcp.south) |- (motion.east);\n \\draw[-latex] (motion.north) -| (motor1.south);\n \\draw[-latex] (motion.north) -| (motor2.south);\n\n\n \\end{tikzpicture}\n\n\\end{document}" ]
[ 73, 21, 73 ]
workflow_box_label
\documentclass[tikz,border=5]{standalone} \usepackage{amsmath,amssymb,graphicx,multirow,mathabx,mathtools,shuffle} \usepackage{tikz} \usepackage{tikz-qtree} \usetikzlibrary{positioning} \usetikzlibrary{fit,calc} \begin{document} \begin{tikzpicture} [place/.style={draw, circle}, transition/.style={draw, minimum height=0.5cm}, silent transition/.style={transition, fill}, treeNode/.style={draw, dashed}] \node (source) [place] {}; \def\firstone{7mm} \def\secondone{7mm}; \def\milestoneplace{5mm}; \def\dist{3.3mm}; \node (int1) [silent transition, right of=source] {}; \node (int12) [place, right of=int1, yshift=\secondone] {}; \node (int112) [place, right of=int1, yshift=-\secondone] {}; \node (a) [transition, right of=int12, label=above right:$a$] {}; \node (int16) [place, right of=a] {}; \node (b) [transition, right of=int112, label=above right:$b$] {}; \node (int23) [place, right of=b] {}; \node (milestone) [place, label=above right:$p_1$] at ($(a)!0.5!(b)$) {}; \node (c) [transition, below=2mm of b, label=above right:$c$] {}; \node (int4) [place, left of=c] {}; \node (int6) [place, right of=c] {}; \node (int9) [silent transition, right of=int16, yshift=-\firstone] {}; \draw [->] (source) to (int1); \draw [->] (int1) |- (int4); \draw [->] (int4) to (c); \draw [->] (c) to (int6); \draw [->] (int6) -| (int9); \draw [->] (int1) to (int12); \draw [->] (int12) to (a); \draw [->] (a) to (int16); \draw [->] (int16) to (int9); \draw [->] (int112) to (b); \draw [->] (int1) to (int112); \draw [->] (int1) to (milestone); \draw [->, bend left] (milestone) to (a); \draw [->, bend left] (milestone) to (b); \draw [->, bend left] (a) to (milestone); \draw [->, bend left] (b) to (milestone); \draw [->] (b) to (int23); \draw [->] (int23) to (int9); \draw [->] (milestone) to (int9); \node (seq2) [place, above=2mm of a] {}; \node (seq1) [transition, left of=seq2, label=above right:$d$] {}; \node (seq3) [transition, right of=seq2, label=above right:$e$] {}; \draw [->] (source) |- (seq1); \draw [->] (seq1) to (seq2); \draw [->] (seq2) to (seq3); \node (loop3) [transition, below=2mm of c, label=above right:$f$] {}; \node (loop2) [place, left of=loop3] {}; \node (loop1) [silent transition, left of=loop2] {}; \node (loop4) [place, right of=loop3] {}; \node (loop5) [transition, below=2mm of loop3, label=above right:$g$] {}; \node (loop6) [silent transition, right of=loop4] {}; \draw [->] (source) |- (loop1); \draw [->] (loop1) to (loop2); \draw [->] (loop2) to (loop3); \draw [->] (loop3) to (loop4); \draw [->] (loop4) |- (loop5); \draw [->] (loop5) -| (loop2); \draw [->] (loop4) to (loop6); \node (sink) [place, right of=int9] {}; \draw [->] (loop6) -| (sink); \draw [->] (seq3) -| (sink); \draw [->] (int9) to (sink); \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{amsmath,amssymb,graphicx,multirow,mathabx,mathtools,shuffle} \usepackage{tikz} \usepackage{tikz-qtree} \usetikzlibrary{positioning} \usetikzlibrary{fit,calc} \begin{document} \begin{tikzpicture} [place/.style={draw, circle}, transition/.style={draw, minimum height=0.5cm}, silent transition/.style={transition, fill}, treeNode/.style={draw, dashed}] \node (source) [place] {}; %interleaved \def\firstone{7mm} \def\secondone{7mm}; \def\milestoneplace{5mm}; \def\dist{3.3mm}; \node (int1) [silent transition, right of=source] {}; \node (int12) [place, right of=int1, yshift=\secondone] {}; \node (int112) [place, right of=int1, yshift=-\secondone] {}; \node (a) [transition, right of=int12, label=above right:$a$] {}; \node (int16) [place, right of=a] {}; \node (b) [transition, right of=int112, label=above right:$b$] {}; \node (int23) [place, right of=b] {}; \node (milestone) [place, label=above right:$p_1$] at ($(a)!0.5!(b)$) {}; \node (c) [transition, below=2mm of b, label=above right:$c$] {}; \node (int4) [place, left of=c] {}; \node (int6) [place, right of=c] {}; \node (int9) [silent transition, right of=int16, yshift=-\firstone] {}; \draw [->] (source) to (int1); \draw [->] (int1) |- (int4); \draw [->] (int4) to (c); \draw [->] (c) to (int6); \draw [->] (int6) -| (int9); \draw [->] (int1) to (int12); \draw [->] (int12) to (a); \draw [->] (a) to (int16); \draw [->] (int16) to (int9); \draw [->] (int112) to (b); \draw [->] (int1) to (int112); \draw [->] (int1) to (milestone); \draw [->, bend left] (milestone) to (a); \draw [->, bend left] (milestone) to (b); \draw [->, bend left] (a) to (milestone); \draw [->, bend left] (b) to (milestone); \draw [->] (b) to (int23); \draw [->] (int23) to (int9); \draw [->] (milestone) to (int9); %sequence \node (seq2) [place, above=2mm of a] {}; \node (seq1) [transition, left of=seq2, label=above right:$d$] {}; \node (seq3) [transition, right of=seq2, label=above right:$e$] {}; \draw [->] (source) |- (seq1); \draw [->] (seq1) to (seq2); \draw [->] (seq2) to (seq3); %loop \node (loop3) [transition, below=2mm of c, label=above right:$f$] {}; \node (loop2) [place, left of=loop3] {}; \node (loop1) [silent transition, left of=loop2] {}; \node (loop4) [place, right of=loop3] {}; \node (loop5) [transition, below=2mm of loop3, label=above right:$g$] {}; \node (loop6) [silent transition, right of=loop4] {}; \draw [->] (source) |- (loop1); \draw [->] (loop1) to (loop2); \draw [->] (loop2) to (loop3); \draw [->] (loop3) to (loop4); \draw [->] (loop4) |- (loop5); \draw [->] (loop5) -| (loop2); \draw [->] (loop4) to (loop6); %sink \node (sink) [place, right of=int9] {}; \draw [->] (loop6) -| (sink); \draw [->] (seq3) -| (sink); \draw [->] (int9) to (sink); \end{tikzpicture} \end{document}
Add a label k_n to each filled black rectangle on their "above right", with n=1,2,3,4 (top-left, top-right, bottom-left, bottom-right)
Workflow diagram with black boxes names from k1 to k4
medium
add
scientific
[ "@@ -71,0 +72,4 @@\n\n+\\node (k1) [above right=2mm of int1] {$k_1$};\n+\\node (k2) [above right=2mm of int9] {$k_2$};\n+\\node (k3) [above right=2mm of loop1] {$k_3$};\n+\\node (k4) [above right=2mm of loop6] {$k_4$};", "@@ -18 +18 @@\n\n-\\node (int1) [silent transition, right of=source] {};\n+\\node (int1) [silent transition, right of=source, label=above right:$k_1$] {};\n@@ -29 +29 @@\n\n-\\node (int9) [silent transition, right of=int16, yshift=-\\firstone] {};\n+\\node (int9) [silent transition, right of=int16, yshift=-\\firstone, label=above right:$k_2$] {};\n@@ -57 +57 @@\n\n-\\node (loop1) [silent transition, left of=loop2] {};\n+\\node (loop1) [silent transition, left of=loop2, label=above right:$k_3$] {};\n@@ -60 +60 @@\n\n-\\node (loop6) [silent transition, right of=loop4] {};\n+\\node (loop6) [silent transition, right of=loop4, label=above right:$k_4$] {};", "@@ -71,0 +72,4 @@\n\n+\\node (k1) [above right=2mm and 2mm of int1] {$k_1$};\n+\\node (k2) [above right=2mm and 2mm of int9] {$k_2$};\n+\\node (k3) [above right=2mm and 2mm of loop1] {$k_3$};\n+\\node (k4) [above right=2mm and 2mm of loop6] {$k_4$};" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath,amssymb,graphicx,multirow,mathabx,mathtools,shuffle}\n\\usepackage{tikz}\n\\usepackage{tikz-qtree}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{fit,calc}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n\t\t[place/.style={draw, circle}, \n\t\ttransition/.style={draw, minimum height=0.5cm},\n\t\tsilent transition/.style={transition, fill},\n\t\ttreeNode/.style={draw, dashed}]\n\t\t\n\t\t\\node (source) [place] {};\n\t\t\n\t\t\\def\\firstone{7mm}\n\t\t\\def\\secondone{7mm};\n\t\t\\def\\milestoneplace{5mm};\n\t\t\\def\\dist{3.3mm};\n\t\t\\node (int1) [silent transition, right of=source] {};\n\t\t\n\t\t\\node (int12) [place, right of=int1, yshift=\\secondone] {};\n\t\t\\node (int112) [place, right of=int1, yshift=-\\secondone] {};\n\t\t\\node (a) [transition, right of=int12, label=above right:$a$] {};\n\t\t\\node (int16) [place, right of=a] {};\n\t\t\n\t\t\\node (b) [transition, right of=int112, label=above right:$b$] {};\n\t\t\\node (int23) [place, right of=b] {};\n\t\t\\node (milestone) [place, label=above right:$p_1$] at ($(a)!0.5!(b)$) {};\n\t\t\n\t\t\\node (c) [transition, below=2mm of b, label=above right:$c$] {};\t\t\n\t\t\\node (int4) [place, left of=c] {};\n\t\t\\node (int6) [place, right of=c] {};\n\t\t\n\t\t\\node (int9) [silent transition, right of=int16, yshift=-\\firstone] {};\n\t\t\n\t\t\\draw [->] (source) to (int1);\n\t\t\\draw [->] (int1) |- (int4);\n\t\t\\draw [->] (int4) to (c);\n\t\t\\draw [->] (c) to (int6);\n\t\t\\draw [->] (int6) -| (int9);\n\t\t\\draw [->] (int1) to (int12);\n\t\t\\draw [->] (int12) to (a);\n\t\t\\draw [->] (a) to (int16);\n\t\t\\draw [->] (int16) to (int9);\n\t\t\\draw [->] (int112) to (b);\n\t\t\\draw [->] (int1) to (int112);\n\t\t\\draw [->] (int1) to (milestone);\n\t\t\\draw [->, bend left] (milestone) to (a);\n\t\t\\draw [->, bend left] (milestone) to (b);\n\t\t\\draw [->, bend left] (a) to (milestone);\n\t\t\\draw [->, bend left] (b) to (milestone);\n\t\t\\draw [->] (b) to (int23);\n\t\t\\draw [->] (int23) to (int9);\n\t\t\\draw [->] (milestone) to (int9);\n\t\t\n\t\t\\node (seq2) [place, above=2mm of a] {};\n\t\t\\node (seq1) [transition, left of=seq2, label=above right:$d$] {};\n\t\t\\node (seq3) [transition, right of=seq2, label=above right:$e$] {};\n\t\t\n\t\t\\draw [->] (source) |- (seq1);\n\t\t\\draw [->] (seq1) to (seq2);\n\t\t\\draw [->] (seq2) to (seq3);\n\t\t\n\t\t\\node (loop3) [transition, below=2mm of c, label=above right:$f$] {};\n\t\t\\node (loop2) [place, left of=loop3] {};\n\t\t\\node (loop1) [silent transition, left of=loop2] {};\t\t\n\t\t\\node (loop4) [place, right of=loop3] {};\n\t\t\\node (loop5) [transition, below=2mm of loop3, label=above right:$g$] {};\n\t\t\\node (loop6) [silent transition, right of=loop4] {};\n\n\t\t\\draw [->] (source) |- (loop1);\t\t\n\t\t\\draw [->] (loop1) to (loop2);\n\t\t\\draw [->] (loop2) to (loop3);\n\t\t\\draw [->] (loop3) to (loop4);\n\t\t\\draw [->] (loop4) |- (loop5);\n\t\t\\draw [->] (loop5) -| (loop2);\n\t\t\\draw [->] (loop4) to (loop6);\n\t\t\n\t\t\\node (sink) [place, right of=int9] {};\n\t\t\\draw [->] (loop6) -| (sink);\n\t\t\\draw [->] (seq3) -| (sink);\n\t\t\\draw [->] (int9) to (sink);\n\t\t\n\t\t\\node (k1) [above right=§rangei(2,1)mm of int1] {$k_1$};\n\t\t\\node (k2) [above right=§rangei(2,1)mm of int9] {$k_2$};\n\t\t\\node (k3) [above right=§rangei(2,1)mm of loop1] {$k_3$};\n\t\t\\node (k4) [above right=§rangei(2,1)mm of loop6] {$k_4$};\n\t\t\n\t\\end{tikzpicture}\n\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath,amssymb,graphicx,multirow,mathabx,mathtools,shuffle}\n\\usepackage{tikz}\n\\usepackage{tikz-qtree}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{fit,calc}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n\t\t[place/.style={draw, circle}, \n\t\ttransition/.style={draw, minimum height=0.5cm},\n\t\tsilent transition/.style={transition, fill},\n\t\ttreeNode/.style={draw, dashed}]\n\t\t\n\t\t\\node (source) [place] {};\n\t\t\n\t\t\\def\\firstone{7mm}\n\t\t\\def\\secondone{7mm};\n\t\t\\def\\milestoneplace{5mm};\n\t\t\\def\\dist{3.3mm};\n\t\t\\node (int1) [silent transition, right of=source, label=above right:$k_1$] {};\n\t\t\n\t\t\\node (int12) [place, right of=int1, yshift=\\secondone] {};\n\t\t\\node (int112) [place, right of=int1, yshift=-\\secondone] {};\n\t\t\\node (a) [transition, right of=int12, label=above right:$a$] {};\n\t\t\\node (int16) [place, right of=a] {};\n\t\t\n\t\t\\node (b) [transition, right of=int112, label=above right:$b$] {};\n\t\t\\node (int23) [place, right of=b] {};\n\t\t\\node (milestone) [place, label=above right:$p_1$] at ($(a)!0.5!(b)$) {};\n\t\t\n\t\t\\node (c) [transition, below=2mm of b, label=above right:$c$] {};\t\t\n\t\t\\node (int4) [place, left of=c] {};\n\t\t\\node (int6) [place, right of=c] {};\n\t\t\n\t\t\\node (int9) [silent transition, right of=int16, yshift=-\\firstone, label=above right:$k_2$] {};\n\t\t\n\t\t\\draw [->] (source) to (int1);\n\t\t\\draw [->] (int1) |- (int4);\n\t\t\\draw [->] (int4) to (c);\n\t\t\\draw [->] (c) to (int6);\n\t\t\\draw [->] (int6) -| (int9);\n\t\t\\draw [->] (int1) to (int12);\n\t\t\\draw [->] (int12) to (a);\n\t\t\\draw [->] (a) to (int16);\n\t\t\\draw [->] (int16) to (int9);\n\t\t\\draw [->] (int112) to (b);\n\t\t\\draw [->] (int1) to (int112);\n\t\t\\draw [->] (int1) to (milestone);\n\t\t\\draw [->, bend left] (milestone) to (a);\n\t\t\\draw [->, bend left] (milestone) to (b);\n\t\t\\draw [->, bend left] (a) to (milestone);\n\t\t\\draw [->, bend left] (b) to (milestone);\n\t\t\\draw [->] (b) to (int23);\n\t\t\\draw [->] (int23) to (int9);\n\t\t\\draw [->] (milestone) to (int9);\n\t\t\n\t\t\\node (seq2) [place, above=2mm of a] {};\n\t\t\\node (seq1) [transition, left of=seq2, label=above right:$d$] {};\n\t\t\\node (seq3) [transition, right of=seq2, label=above right:$e$] {};\n\t\t\n\t\t\\draw [->] (source) |- (seq1);\n\t\t\\draw [->] (seq1) to (seq2);\n\t\t\\draw [->] (seq2) to (seq3);\n\t\t\n\t\t\\node (loop3) [transition, below=2mm of c, label=above right:$f$] {};\n\t\t\\node (loop2) [place, left of=loop3] {};\n\t\t\\node (loop1) [silent transition, left of=loop2, label=above right:$k_3$] {};\t\t\n\t\t\\node (loop4) [place, right of=loop3] {};\n\t\t\\node (loop5) [transition, below=2mm of loop3, label=above right:$g$] {};\n\t\t\\node (loop6) [silent transition, right of=loop4, label=above right:$k_4$] {};\n\n\t\t\\draw [->] (source) |- (loop1);\t\t\n\t\t\\draw [->] (loop1) to (loop2);\n\t\t\\draw [->] (loop2) to (loop3);\n\t\t\\draw [->] (loop3) to (loop4);\n\t\t\\draw [->] (loop4) |- (loop5);\n\t\t\\draw [->] (loop5) -| (loop2);\n\t\t\\draw [->] (loop4) to (loop6);\n\t\t\n\t\t\\node (sink) [place, right of=int9] {};\n\t\t\\draw [->] (loop6) -| (sink);\n\t\t\\draw [->] (seq3) -| (sink);\n\t\t\\draw [->] (int9) to (sink);\n\t\t\n\t\\end{tikzpicture}\n\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath,amssymb,graphicx,multirow,mathabx,mathtools,shuffle}\n\\usepackage{tikz}\n\\usepackage{tikz-qtree}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{fit,calc}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n\t\t[place/.style={draw, circle}, \n\t\ttransition/.style={draw, minimum height=0.5cm},\n\t\tsilent transition/.style={transition, fill},\n\t\ttreeNode/.style={draw, dashed}]\n\t\t\n\t\t\\node (source) [place] {};\n\t\t\n\t\t\\def\\firstone{7mm}\n\t\t\\def\\secondone{7mm};\n\t\t\\def\\milestoneplace{5mm};\n\t\t\\def\\dist{3.3mm};\n\t\t\\node (int1) [silent transition, right of=source] {};\n\t\t\n\t\t\\node (int12) [place, right of=int1, yshift=\\secondone] {};\n\t\t\\node (int112) [place, right of=int1, yshift=-\\secondone] {};\n\t\t\\node (a) [transition, right of=int12, label=above right:$a$] {};\n\t\t\\node (int16) [place, right of=a] {};\n\t\t\n\t\t\\node (b) [transition, right of=int112, label=above right:$b$] {};\n\t\t\\node (int23) [place, right of=b] {};\n\t\t\\node (milestone) [place, label=above right:$p_1$] at ($(a)!0.5!(b)$) {};\n\t\t\n\t\t\\node (c) [transition, below=2mm of b, label=above right:$c$] {};\t\t\n\t\t\\node (int4) [place, left of=c] {};\n\t\t\\node (int6) [place, right of=c] {};\n\t\t\n\t\t\\node (int9) [silent transition, right of=int16, yshift=-\\firstone] {};\n\t\t\n\t\t\\draw [->] (source) to (int1);\n\t\t\\draw [->] (int1) |- (int4);\n\t\t\\draw [->] (int4) to (c);\n\t\t\\draw [->] (c) to (int6);\n\t\t\\draw [->] (int6) -| (int9);\n\t\t\\draw [->] (int1) to (int12);\n\t\t\\draw [->] (int12) to (a);\n\t\t\\draw [->] (a) to (int16);\n\t\t\\draw [->] (int16) to (int9);\n\t\t\\draw [->] (int112) to (b);\n\t\t\\draw [->] (int1) to (int112);\n\t\t\\draw [->] (int1) to (milestone);\n\t\t\\draw [->, bend left] (milestone) to (a);\n\t\t\\draw [->, bend left] (milestone) to (b);\n\t\t\\draw [->, bend left] (a) to (milestone);\n\t\t\\draw [->, bend left] (b) to (milestone);\n\t\t\\draw [->] (b) to (int23);\n\t\t\\draw [->] (int23) to (int9);\n\t\t\\draw [->] (milestone) to (int9);\n\t\t\n\t\t\\node (seq2) [place, above=2mm of a] {};\n\t\t\\node (seq1) [transition, left of=seq2, label=above right:$d$] {};\n\t\t\\node (seq3) [transition, right of=seq2, label=above right:$e$] {};\n\t\t\n\t\t\\draw [->] (source) |- (seq1);\n\t\t\\draw [->] (seq1) to (seq2);\n\t\t\\draw [->] (seq2) to (seq3);\n\t\t\n\t\t\\node (loop3) [transition, below=2mm of c, label=above right:$f$] {};\n\t\t\\node (loop2) [place, left of=loop3] {};\n\t\t\\node (loop1) [silent transition, left of=loop2] {};\t\t\n\t\t\\node (loop4) [place, right of=loop3] {};\n\t\t\\node (loop5) [transition, below=2mm of loop3, label=above right:$g$] {};\n\t\t\\node (loop6) [silent transition, right of=loop4] {};\n\n\t\t\\draw [->] (source) |- (loop1);\t\t\n\t\t\\draw [->] (loop1) to (loop2);\n\t\t\\draw [->] (loop2) to (loop3);\n\t\t\\draw [->] (loop3) to (loop4);\n\t\t\\draw [->] (loop4) |- (loop5);\n\t\t\\draw [->] (loop5) -| (loop2);\n\t\t\\draw [->] (loop4) to (loop6);\n\t\t\n\t\t\\node (sink) [place, right of=int9] {};\n\t\t\\draw [->] (loop6) -| (sink);\n\t\t\\draw [->] (seq3) -| (sink);\n\t\t\\draw [->] (int9) to (sink);\n\t\t\n\t\t\\node (k1) [above right=§rangei(2,1)mm and §rangei(2,1)mm of int1] {$k_1$};\n\t\t\\node (k2) [above right=§rangei(2,1)mm and §rangei(2,1)mm of int9] {$k_2$};\n\t\t\\node (k3) [above right=§rangei(2,1)mm and §rangei(2,1)mm of loop1] {$k_3$};\n\t\t\\node (k4) [above right=§rangei(2,1)mm and §rangei(2,1)mm of loop6] {$k_4$};\n\t\t\n\t\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath,amssymb,graphicx,multirow,mathabx,mathtools,shuffle}\n\\usepackage{tikz}\n\\usepackage{tikz-qtree}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{fit,calc}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n\t\t[place/.style={draw, circle}, \n\t\ttransition/.style={draw, minimum height=0.5cm},\n\t\tsilent transition/.style={transition, fill},\n\t\ttreeNode/.style={draw, dashed}]\n\t\t\n\t\t\\node (source) [place] {};\n\t\t\n\t\t\\def\\firstone{7mm}\n\t\t\\def\\secondone{7mm};\n\t\t\\def\\milestoneplace{5mm};\n\t\t\\def\\dist{3.3mm};\n\t\t\\node (int1) [silent transition, right of=source] {};\n\t\t\n\t\t\\node (int12) [place, right of=int1, yshift=\\secondone] {};\n\t\t\\node (int112) [place, right of=int1, yshift=-\\secondone] {};\n\t\t\\node (a) [transition, right of=int12, label=above right:$a$] {};\n\t\t\\node (int16) [place, right of=a] {};\n\t\t\n\t\t\\node (b) [transition, right of=int112, label=above right:$b$] {};\n\t\t\\node (int23) [place, right of=b] {};\n\t\t\\node (milestone) [place, label=above right:$p_1$] at ($(a)!0.5!(b)$) {};\n\t\t\n\t\t\\node (c) [transition, below=2mm of b, label=above right:$c$] {};\t\t\n\t\t\\node (int4) [place, left of=c] {};\n\t\t\\node (int6) [place, right of=c] {};\n\t\t\n\t\t\\node (int9) [silent transition, right of=int16, yshift=-\\firstone] {};\n\t\t\n\t\t\\draw [->] (source) to (int1);\n\t\t\\draw [->] (int1) |- (int4);\n\t\t\\draw [->] (int4) to (c);\n\t\t\\draw [->] (c) to (int6);\n\t\t\\draw [->] (int6) -| (int9);\n\t\t\\draw [->] (int1) to (int12);\n\t\t\\draw [->] (int12) to (a);\n\t\t\\draw [->] (a) to (int16);\n\t\t\\draw [->] (int16) to (int9);\n\t\t\\draw [->] (int112) to (b);\n\t\t\\draw [->] (int1) to (int112);\n\t\t\\draw [->] (int1) to (milestone);\n\t\t\\draw [->, bend left] (milestone) to (a);\n\t\t\\draw [->, bend left] (milestone) to (b);\n\t\t\\draw [->, bend left] (a) to (milestone);\n\t\t\\draw [->, bend left] (b) to (milestone);\n\t\t\\draw [->] (b) to (int23);\n\t\t\\draw [->] (int23) to (int9);\n\t\t\\draw [->] (milestone) to (int9);\n\t\t\n\t\t\\node (seq2) [place, above=2mm of a] {};\n\t\t\\node (seq1) [transition, left of=seq2, label=above right:$d$] {};\n\t\t\\node (seq3) [transition, right of=seq2, label=above right:$e$] {};\n\t\t\n\t\t\\draw [->] (source) |- (seq1);\n\t\t\\draw [->] (seq1) to (seq2);\n\t\t\\draw [->] (seq2) to (seq3);\n\t\t\n\t\t\\node (loop3) [transition, below=2mm of c, label=above right:$f$] {};\n\t\t\\node (loop2) [place, left of=loop3] {};\n\t\t\\node (loop1) [silent transition, left of=loop2] {};\t\t\n\t\t\\node (loop4) [place, right of=loop3] {};\n\t\t\\node (loop5) [transition, below=2mm of loop3, label=above right:$g$] {};\n\t\t\\node (loop6) [silent transition, right of=loop4] {};\n\n\t\t\\draw [->] (source) |- (loop1);\t\t\n\t\t\\draw [->] (loop1) to (loop2);\n\t\t\\draw [->] (loop2) to (loop3);\n\t\t\\draw [->] (loop3) to (loop4);\n\t\t\\draw [->] (loop4) |- (loop5);\n\t\t\\draw [->] (loop5) -| (loop2);\n\t\t\\draw [->] (loop4) to (loop6);\n\t\t\n\t\t\\node (sink) [place, right of=int9] {};\n\t\t\\draw [->] (loop6) -| (sink);\n\t\t\\draw [->] (seq3) -| (sink);\n\t\t\\draw [->] (int9) to (sink);\n\t\t\n\t\t\\node (k1) [above right=2mm of int1] {$k_1$};\n\t\t\\node (k2) [above right=2mm of int9] {$k_2$};\n\t\t\\node (k3) [above right=2mm of loop1] {$k_3$};\n\t\t\\node (k4) [above right=2mm of loop6] {$k_4$};\n\t\t\n\t\\end{tikzpicture}\n\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath,amssymb,graphicx,multirow,mathabx,mathtools,shuffle}\n\\usepackage{tikz}\n\\usepackage{tikz-qtree}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{fit,calc}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n\t\t[place/.style={draw, circle}, \n\t\ttransition/.style={draw, minimum height=0.5cm},\n\t\tsilent transition/.style={transition, fill},\n\t\ttreeNode/.style={draw, dashed}]\n\t\t\n\t\t\\node (source) [place] {};\n\t\t\n\t\t\\def\\firstone{7mm}\n\t\t\\def\\secondone{7mm};\n\t\t\\def\\milestoneplace{5mm};\n\t\t\\def\\dist{3.3mm};\n\t\t\\node (int1) [silent transition, right of=source, label=above right:$k_1$] {};\n\t\t\n\t\t\\node (int12) [place, right of=int1, yshift=\\secondone] {};\n\t\t\\node (int112) [place, right of=int1, yshift=-\\secondone] {};\n\t\t\\node (a) [transition, right of=int12, label=above right:$a$] {};\n\t\t\\node (int16) [place, right of=a] {};\n\t\t\n\t\t\\node (b) [transition, right of=int112, label=above right:$b$] {};\n\t\t\\node (int23) [place, right of=b] {};\n\t\t\\node (milestone) [place, label=above right:$p_1$] at ($(a)!0.5!(b)$) {};\n\t\t\n\t\t\\node (c) [transition, below=2mm of b, label=above right:$c$] {};\t\t\n\t\t\\node (int4) [place, left of=c] {};\n\t\t\\node (int6) [place, right of=c] {};\n\t\t\n\t\t\\node (int9) [silent transition, right of=int16, yshift=-\\firstone, label=above right:$k_2$] {};\n\t\t\n\t\t\\draw [->] (source) to (int1);\n\t\t\\draw [->] (int1) |- (int4);\n\t\t\\draw [->] (int4) to (c);\n\t\t\\draw [->] (c) to (int6);\n\t\t\\draw [->] (int6) -| (int9);\n\t\t\\draw [->] (int1) to (int12);\n\t\t\\draw [->] (int12) to (a);\n\t\t\\draw [->] (a) to (int16);\n\t\t\\draw [->] (int16) to (int9);\n\t\t\\draw [->] (int112) to (b);\n\t\t\\draw [->] (int1) to (int112);\n\t\t\\draw [->] (int1) to (milestone);\n\t\t\\draw [->, bend left] (milestone) to (a);\n\t\t\\draw [->, bend left] (milestone) to (b);\n\t\t\\draw [->, bend left] (a) to (milestone);\n\t\t\\draw [->, bend left] (b) to (milestone);\n\t\t\\draw [->] (b) to (int23);\n\t\t\\draw [->] (int23) to (int9);\n\t\t\\draw [->] (milestone) to (int9);\n\t\t\n\t\t\\node (seq2) [place, above=2mm of a] {};\n\t\t\\node (seq1) [transition, left of=seq2, label=above right:$d$] {};\n\t\t\\node (seq3) [transition, right of=seq2, label=above right:$e$] {};\n\t\t\n\t\t\\draw [->] (source) |- (seq1);\n\t\t\\draw [->] (seq1) to (seq2);\n\t\t\\draw [->] (seq2) to (seq3);\n\t\t\n\t\t\\node (loop3) [transition, below=2mm of c, label=above right:$f$] {};\n\t\t\\node (loop2) [place, left of=loop3] {};\n\t\t\\node (loop1) [silent transition, left of=loop2, label=above right:$k_3$] {};\t\t\n\t\t\\node (loop4) [place, right of=loop3] {};\n\t\t\\node (loop5) [transition, below=2mm of loop3, label=above right:$g$] {};\n\t\t\\node (loop6) [silent transition, right of=loop4, label=above right:$k_4$] {};\n\n\t\t\\draw [->] (source) |- (loop1);\t\t\n\t\t\\draw [->] (loop1) to (loop2);\n\t\t\\draw [->] (loop2) to (loop3);\n\t\t\\draw [->] (loop3) to (loop4);\n\t\t\\draw [->] (loop4) |- (loop5);\n\t\t\\draw [->] (loop5) -| (loop2);\n\t\t\\draw [->] (loop4) to (loop6);\n\t\t\n\t\t\\node (sink) [place, right of=int9] {};\n\t\t\\draw [->] (loop6) -| (sink);\n\t\t\\draw [->] (seq3) -| (sink);\n\t\t\\draw [->] (int9) to (sink);\n\t\t\n\t\\end{tikzpicture}\n\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath,amssymb,graphicx,multirow,mathabx,mathtools,shuffle}\n\\usepackage{tikz}\n\\usepackage{tikz-qtree}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{fit,calc}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n\t\t[place/.style={draw, circle}, \n\t\ttransition/.style={draw, minimum height=0.5cm},\n\t\tsilent transition/.style={transition, fill},\n\t\ttreeNode/.style={draw, dashed}]\n\t\t\n\t\t\\node (source) [place] {};\n\t\t\n\t\t\\def\\firstone{7mm}\n\t\t\\def\\secondone{7mm};\n\t\t\\def\\milestoneplace{5mm};\n\t\t\\def\\dist{3.3mm};\n\t\t\\node (int1) [silent transition, right of=source] {};\n\t\t\n\t\t\\node (int12) [place, right of=int1, yshift=\\secondone] {};\n\t\t\\node (int112) [place, right of=int1, yshift=-\\secondone] {};\n\t\t\\node (a) [transition, right of=int12, label=above right:$a$] {};\n\t\t\\node (int16) [place, right of=a] {};\n\t\t\n\t\t\\node (b) [transition, right of=int112, label=above right:$b$] {};\n\t\t\\node (int23) [place, right of=b] {};\n\t\t\\node (milestone) [place, label=above right:$p_1$] at ($(a)!0.5!(b)$) {};\n\t\t\n\t\t\\node (c) [transition, below=2mm of b, label=above right:$c$] {};\t\t\n\t\t\\node (int4) [place, left of=c] {};\n\t\t\\node (int6) [place, right of=c] {};\n\t\t\n\t\t\\node (int9) [silent transition, right of=int16, yshift=-\\firstone] {};\n\t\t\n\t\t\\draw [->] (source) to (int1);\n\t\t\\draw [->] (int1) |- (int4);\n\t\t\\draw [->] (int4) to (c);\n\t\t\\draw [->] (c) to (int6);\n\t\t\\draw [->] (int6) -| (int9);\n\t\t\\draw [->] (int1) to (int12);\n\t\t\\draw [->] (int12) to (a);\n\t\t\\draw [->] (a) to (int16);\n\t\t\\draw [->] (int16) to (int9);\n\t\t\\draw [->] (int112) to (b);\n\t\t\\draw [->] (int1) to (int112);\n\t\t\\draw [->] (int1) to (milestone);\n\t\t\\draw [->, bend left] (milestone) to (a);\n\t\t\\draw [->, bend left] (milestone) to (b);\n\t\t\\draw [->, bend left] (a) to (milestone);\n\t\t\\draw [->, bend left] (b) to (milestone);\n\t\t\\draw [->] (b) to (int23);\n\t\t\\draw [->] (int23) to (int9);\n\t\t\\draw [->] (milestone) to (int9);\n\t\t\n\t\t\\node (seq2) [place, above=2mm of a] {};\n\t\t\\node (seq1) [transition, left of=seq2, label=above right:$d$] {};\n\t\t\\node (seq3) [transition, right of=seq2, label=above right:$e$] {};\n\t\t\n\t\t\\draw [->] (source) |- (seq1);\n\t\t\\draw [->] (seq1) to (seq2);\n\t\t\\draw [->] (seq2) to (seq3);\n\t\t\n\t\t\\node (loop3) [transition, below=2mm of c, label=above right:$f$] {};\n\t\t\\node (loop2) [place, left of=loop3] {};\n\t\t\\node (loop1) [silent transition, left of=loop2] {};\t\t\n\t\t\\node (loop4) [place, right of=loop3] {};\n\t\t\\node (loop5) [transition, below=2mm of loop3, label=above right:$g$] {};\n\t\t\\node (loop6) [silent transition, right of=loop4] {};\n\n\t\t\\draw [->] (source) |- (loop1);\t\t\n\t\t\\draw [->] (loop1) to (loop2);\n\t\t\\draw [->] (loop2) to (loop3);\n\t\t\\draw [->] (loop3) to (loop4);\n\t\t\\draw [->] (loop4) |- (loop5);\n\t\t\\draw [->] (loop5) -| (loop2);\n\t\t\\draw [->] (loop4) to (loop6);\n\t\t\n\t\t\\node (sink) [place, right of=int9] {};\n\t\t\\draw [->] (loop6) -| (sink);\n\t\t\\draw [->] (seq3) -| (sink);\n\t\t\\draw [->] (int9) to (sink);\n\t\t\n\t\t\\node (k1) [above right=2mm and 2mm of int1] {$k_1$};\n\t\t\\node (k2) [above right=2mm and 2mm of int9] {$k_2$};\n\t\t\\node (k3) [above right=2mm and 2mm of loop1] {$k_3$};\n\t\t\\node (k4) [above right=2mm and 2mm of loop6] {$k_4$};\n\t\t\n\t\\end{tikzpicture}\n\n\\end{document}" ]
[ 142, 140 ]
workflow_loop_removed
\documentclass[tikz,border=5]{standalone} \usepackage{amsmath,amssymb,graphicx,multirow,mathabx,mathtools,shuffle} \usepackage{tikz} \usepackage{tikz-qtree} \usetikzlibrary{positioning} \usetikzlibrary{fit,calc} \begin{document} \begin{tikzpicture} [place/.style={draw, circle}, transition/.style={draw, minimum height=0.5cm}, silent transition/.style={transition, fill}, treeNode/.style={draw, dashed}] \node (source) [place] {}; \def\firstone{7mm} \def\secondone{7mm}; \def\milestoneplace{5mm}; \def\dist{3.3mm}; \node (int1) [silent transition, right of=source] {}; \node (int12) [place, right of=int1, yshift=\secondone] {}; \node (int112) [place, right of=int1, yshift=-\secondone] {}; \node (a) [transition, right of=int12, label=above right:$a$] {}; \node (int16) [place, right of=a] {}; \node (b) [transition, right of=int112, label=above right:$b$] {}; \node (int23) [place, right of=b] {}; \node (milestone) [place, label=above right:$p_1$] at ($(a)!0.5!(b)$) {}; \node (c) [transition, below=2mm of b, label=above right:$c$] {}; \node (int4) [place, left of=c] {}; \node (int6) [place, right of=c] {}; \node (int9) [silent transition, right of=int16, yshift=-\firstone] {}; \draw [->] (source) to (int1); \draw [->] (int1) |- (int4); \draw [->] (int4) to (c); \draw [->] (c) to (int6); \draw [->] (int6) -| (int9); \draw [->] (int1) to (int12); \draw [->] (int12) to (a); \draw [->] (a) to (int16); \draw [->] (int16) to (int9); \draw [->] (int112) to (b); \draw [->] (int1) to (int112); \draw [->] (int1) to (milestone); \draw [->, bend left] (milestone) to (a); \draw [->, bend left] (milestone) to (b); \draw [->, bend left] (a) to (milestone); \draw [->, bend left] (b) to (milestone); \draw [->] (b) to (int23); \draw [->] (int23) to (int9); \draw [->] (milestone) to (int9); \node (seq2) [place, above=2mm of a] {}; \node (seq1) [transition, left of=seq2, label=above right:$d$] {}; \node (seq3) [transition, right of=seq2, label=above right:$e$] {}; \draw [->] (source) |- (seq1); \draw [->] (seq1) to (seq2); \draw [->] (seq2) to (seq3); \node (loop3) [transition, below=2mm of c, label=above right:$f$] {}; \node (loop2) [place, left of=loop3] {}; \node (loop1) [silent transition, left of=loop2] {}; \node (loop4) [place, right of=loop3] {}; \node (loop5) [transition, below=2mm of loop3, label=above right:$g$] {}; \node (loop6) [silent transition, right of=loop4] {}; \draw [->] (source) |- (loop1); \draw [->] (loop1) to (loop2); \draw [->] (loop2) to (loop3); \draw [->] (loop3) to (loop4); \draw [->] (loop4) |- (loop5); \draw [->] (loop5) -| (loop2); \draw [->] (loop4) to (loop6); \node (sink) [place, right of=int9] {}; \draw [->] (loop6) -| (sink); \draw [->] (seq3) -| (sink); \draw [->] (int9) to (sink); \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{amsmath,amssymb,graphicx,multirow,mathabx,mathtools,shuffle} \usepackage{tikz} \usepackage{tikz-qtree} \usetikzlibrary{positioning} \usetikzlibrary{fit,calc} \begin{document} \begin{tikzpicture} [place/.style={draw, circle}, transition/.style={draw, minimum height=0.5cm}, silent transition/.style={transition, fill}, treeNode/.style={draw, dashed}] \node (source) [place] {}; %interleaved \def\firstone{7mm} \def\secondone{7mm}; \def\milestoneplace{5mm}; \def\dist{3.3mm}; \node (int1) [silent transition, right of=source] {}; \node (int12) [place, right of=int1, yshift=\secondone] {}; \node (int112) [place, right of=int1, yshift=-\secondone] {}; \node (a) [transition, right of=int12, label=above right:$a$] {}; \node (int16) [place, right of=a] {}; \node (b) [transition, right of=int112, label=above right:$b$] {}; \node (int23) [place, right of=b] {}; \node (milestone) [place, label=above right:$p_1$] at ($(a)!0.5!(b)$) {}; \node (c) [transition, below=2mm of b, label=above right:$c$] {}; \node (int4) [place, left of=c] {}; \node (int6) [place, right of=c] {}; \node (int9) [silent transition, right of=int16, yshift=-\firstone] {}; \draw [->] (source) to (int1); \draw [->] (int1) |- (int4); \draw [->] (int4) to (c); \draw [->] (c) to (int6); \draw [->] (int6) -| (int9); \draw [->] (int1) to (int12); \draw [->] (int12) to (a); \draw [->] (a) to (int16); \draw [->] (int16) to (int9); \draw [->] (int112) to (b); \draw [->] (int1) to (int112); \draw [->] (int1) to (milestone); \draw [->, bend left] (milestone) to (a); \draw [->, bend left] (milestone) to (b); \draw [->, bend left] (a) to (milestone); \draw [->, bend left] (b) to (milestone); \draw [->] (b) to (int23); \draw [->] (int23) to (int9); \draw [->] (milestone) to (int9); %sequence \node (seq2) [place, above=2mm of a] {}; \node (seq1) [transition, left of=seq2, label=above right:$d$] {}; \node (seq3) [transition, right of=seq2, label=above right:$e$] {}; \draw [->] (source) |- (seq1); \draw [->] (seq1) to (seq2); \draw [->] (seq2) to (seq3); %loop \node (loop3) [transition, below=2mm of c, label=above right:$f$] {}; \node (loop2) [place, left of=loop3] {}; \node (loop1) [silent transition, left of=loop2] {}; \node (loop4) [place, right of=loop3] {}; \node (loop5) [transition, below=2mm of loop3, label=above right:$g$] {}; \node (loop6) [silent transition, right of=loop4] {}; \draw [->] (source) |- (loop1); \draw [->] (loop1) to (loop2); \draw [->] (loop2) to (loop3); \draw [->] (loop3) to (loop4); \draw [->] (loop4) |- (loop5); \draw [->] (loop5) -| (loop2); \draw [->] (loop4) to (loop6); %sink \node (sink) [place, right of=int9] {}; \draw [->] (loop6) -| (sink); \draw [->] (seq3) -| (sink); \draw [->] (int9) to (sink); \end{tikzpicture} \end{document}
Remove the entire bottom section of the diagram, where the nodes f and g are.
Workflow diagram with two main branches going from left to right.
easy
remove
scientific
[ "@@ -55,13 +54,0 @@\n\n-\\node (loop3) [transition, below=2mm of c, label=above right:$f$] {};\n-\\node (loop2) [place, left of=loop3] {};\n-\\node (loop1) [silent transition, left of=loop2] {};\n-\\node (loop4) [place, right of=loop3] {};\n-\\node (loop5) [transition, below=2mm of loop3, label=above right:$g$] {};\n-\\node (loop6) [silent transition, right of=loop4] {};\n-\\draw [->] (source) |- (loop1);\n-\\draw [->] (loop1) to (loop2);\n-\\draw [->] (loop2) to (loop3);\n-\\draw [->] (loop3) to (loop4);\n-\\draw [->] (loop4) |- (loop5);\n-\\draw [->] (loop5) -| (loop2);\n-\\draw [->] (loop4) to (loop6);\n@@ -69 +56 @@\n\n-\\draw [->] (loop6) -| (sink);\n+\\draw [->] (int9) to (sink);\n@@ -71 +57,0 @@\n\n-\\draw [->] (int9) to (sink);", "@@ -55,13 +54,0 @@\n\n-\\node (loop3) [transition, below=2mm of c, label=above right:$f$] {};\n-\\node (loop2) [place, left of=loop3] {};\n-\\node (loop1) [silent transition, left of=loop2] {};\n-\\node (loop4) [place, right of=loop3] {};\n-\\node (loop5) [transition, below=2mm of loop3, label=above right:$g$] {};\n-\\node (loop6) [silent transition, right of=loop4] {};\n-\\draw [->] (source) |- (loop1);\n-\\draw [->] (loop1) to (loop2);\n-\\draw [->] (loop2) to (loop3);\n-\\draw [->] (loop3) to (loop4);\n-\\draw [->] (loop4) |- (loop5);\n-\\draw [->] (loop5) -| (loop2);\n-\\draw [->] (loop4) to (loop6);\n@@ -69 +55,0 @@\n\n-\\draw [->] (loop6) -| (sink);" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath,amssymb,graphicx,multirow,mathabx,mathtools,shuffle}\n\\usepackage{tikz}\n\\usepackage{tikz-qtree}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{fit,calc}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n\t\t[place/.style={draw, circle}, \n\t\ttransition/.style={draw, minimum height=0.5cm},\n\t\tsilent transition/.style={transition, fill},\n\t\ttreeNode/.style={draw, dashed}]\n\t\t\n\t\t\\node (source) [place] {};\n\t\t\n\t\t\\def\\firstone{7mm}\n\t\t\\def\\secondone{7mm};\n\t\t\\def\\milestoneplace{5mm};\n\t\t\\def\\dist{3.3mm};\n\t\t\\node (int1) [silent transition, right of=source] {};\n\t\t\n\t\t\\node (int12) [place, right of=int1, yshift=\\secondone] {};\n\t\t\\node (int112) [place, right of=int1, yshift=-\\secondone] {};\n\t\t\\node (a) [transition, right of=int12, label=above right:$a$] {};\n\t\t\\node (int16) [place, right of=a] {};\n\t\t\n\t\t\\node (b) [transition, right of=int112, label=above right:$b$] {};\n\t\t\\node (int23) [place, right of=b] {};\n\t\t\\node (milestone) [place, label=above right:$p_1$] at ($(a)!0.5!(b)$) {};\n\t\t\n\t\t\\node (c) [transition, below=2mm of b, label=above right:$c$] {};\t\t\n\t\t\\node (int4) [place, left of=c] {};\n\t\t\\node (int6) [place, right of=c] {};\n\t\t\n\t\t\\node (int9) [silent transition, right of=int16, yshift=-\\firstone] {};\n\t\t\n\t\t\\draw [->] (source) to (int1);\n\t\t\\draw [->] (int1) |- (int4);\n\t\t\\draw [->] (int4) to (c);\n\t\t\\draw [->] (c) to (int6);\n\t\t\\draw [->] (int6) -| (int9);\n\t\t\\draw [->] (int1) to (int12);\n\t\t\\draw [->] (int12) to (a);\n\t\t\\draw [->] (a) to (int16);\n\t\t\\draw [->] (int16) to (int9);\n\t\t\\draw [->] (int112) to (b);\n\t\t\\draw [->] (int1) to (int112);\n\t\t\\draw [->] (int1) to (milestone);\n\t\t\\draw [->, bend left] (milestone) to (a);\n\t\t\\draw [->, bend left] (milestone) to (b);\n\t\t\\draw [->, bend left] (a) to (milestone);\n\t\t\\draw [->, bend left] (b) to (milestone);\n\t\t\\draw [->] (b) to (int23);\n\t\t\\draw [->] (int23) to (int9);\n\t\t\\draw [->] (milestone) to (int9);\n\t\t\n\t\t\\node (seq2) [place, above=2mm of a] {};\n\t\t\\node (seq1) [transition, left of=seq2, label=above right:$d$] {};\n\t\t\\node (seq3) [transition, right of=seq2, label=above right:$e$] {};\n\t\t\n\t\t\\draw [->] (source) |- (seq1);\n\t\t\\draw [->] (seq1) to (seq2);\n\t\t\\draw [->] (seq2) to (seq3);\n\t\t\n\t\t\\node (sink) [place, right of=int9] {};\n\t\t\\draw [->] (int9) to (sink);\n\t\t\\draw [->] (seq3) -| (sink);\n\t\t\n\t\\end{tikzpicture}\n\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath,amssymb,graphicx,multirow,mathabx,mathtools,shuffle}\n\\usepackage{tikz}\n\\usepackage{tikz-qtree}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{fit,calc}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n\t\t[place/.style={draw, circle}, \n\t\ttransition/.style={draw, minimum height=0.5cm},\n\t\tsilent transition/.style={transition, fill},\n\t\ttreeNode/.style={draw, dashed}]\n\t\t\n\t\t\\node (source) [place] {};\n\t\t\n\t\t\\def\\firstone{7mm}\n\t\t\\def\\secondone{7mm};\n\t\t\\def\\milestoneplace{5mm};\n\t\t\\def\\dist{3.3mm};\n\t\t\\node (int1) [silent transition, right of=source] {};\n\t\t\n\t\t\\node (int12) [place, right of=int1, yshift=\\secondone] {};\n\t\t\\node (int112) [place, right of=int1, yshift=-\\secondone] {};\n\t\t\\node (a) [transition, right of=int12, label=above right:$a$] {};\n\t\t\\node (int16) [place, right of=a] {};\n\t\t\n\t\t\\node (b) [transition, right of=int112, label=above right:$b$] {};\n\t\t\\node (int23) [place, right of=b] {};\n\t\t\\node (milestone) [place, label=above right:$p_1$] at ($(a)!0.5!(b)$) {};\n\t\t\n\t\t\\node (c) [transition, below=2mm of b, label=above right:$c$] {};\t\t\n\t\t\\node (int4) [place, left of=c] {};\n\t\t\\node (int6) [place, right of=c] {};\n\t\t\n\t\t\\node (int9) [silent transition, right of=int16, yshift=-\\firstone] {};\n\t\t\n\t\t\\draw [->] (source) to (int1);\n\t\t\\draw [->] (int1) |- (int4);\n\t\t\\draw [->] (int4) to (c);\n\t\t\\draw [->] (c) to (int6);\n\t\t\\draw [->] (int6) -| (int9);\n\t\t\\draw [->] (int1) to (int12);\n\t\t\\draw [->] (int12) to (a);\n\t\t\\draw [->] (a) to (int16);\n\t\t\\draw [->] (int16) to (int9);\n\t\t\\draw [->] (int112) to (b);\n\t\t\\draw [->] (int1) to (int112);\n\t\t\\draw [->] (int1) to (milestone);\n\t\t\\draw [->, bend left] (milestone) to (a);\n\t\t\\draw [->, bend left] (milestone) to (b);\n\t\t\\draw [->, bend left] (a) to (milestone);\n\t\t\\draw [->, bend left] (b) to (milestone);\n\t\t\\draw [->] (b) to (int23);\n\t\t\\draw [->] (int23) to (int9);\n\t\t\\draw [->] (milestone) to (int9);\n\t\t\n\t\t\\node (seq2) [place, above=2mm of a] {};\n\t\t\\node (seq1) [transition, left of=seq2, label=above right:$d$] {};\n\t\t\\node (seq3) [transition, right of=seq2, label=above right:$e$] {};\n\t\t\n\t\t\\draw [->] (source) |- (seq1);\n\t\t\\draw [->] (seq1) to (seq2);\n\t\t\\draw [->] (seq2) to (seq3);\n\t\t\n\t\t\\node (sink) [place, right of=int9] {};\n\t\t\\draw [->] (seq3) -| (sink);\n\t\t\\draw [->] (int9) to (sink);\n\t\t\n\t\\end{tikzpicture}\n\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath,amssymb,graphicx,multirow,mathabx,mathtools,shuffle}\n\\usepackage{tikz}\n\\usepackage{tikz-qtree}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{fit,calc}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n\t\t[place/.style={draw, circle}, \n\t\ttransition/.style={draw, minimum height=0.5cm},\n\t\tsilent transition/.style={transition, fill},\n\t\ttreeNode/.style={draw, dashed}]\n\t\t\n\t\t\\node (source) [place] {};\n\t\t\n\t\t\\def\\firstone{7mm}\n\t\t\\def\\secondone{7mm};\n\t\t\\def\\milestoneplace{5mm};\n\t\t\\def\\dist{3.3mm};\n\t\t\\node (int1) [silent transition, right of=source] {};\n\t\t\n\t\t\\node (int12) [place, right of=int1, yshift=\\secondone] {};\n\t\t\\node (int112) [place, right of=int1, yshift=-\\secondone] {};\n\t\t\\node (a) [transition, right of=int12, label=above right:$a$] {};\n\t\t\\node (int16) [place, right of=a] {};\n\t\t\n\t\t\\node (b) [transition, right of=int112, label=above right:$b$] {};\n\t\t\\node (int23) [place, right of=b] {};\n\t\t\\node (milestone) [place, label=above right:$p_1$] at ($(a)!0.5!(b)$) {};\n\t\t\n\t\t\\node (c) [transition, below=2mm of b, label=above right:$c$] {};\t\t\n\t\t\\node (int4) [place, left of=c] {};\n\t\t\\node (int6) [place, right of=c] {};\n\t\t\n\t\t\\node (int9) [silent transition, right of=int16, yshift=-\\firstone] {};\n\t\t\n\t\t\\draw [->] (source) to (int1);\n\t\t\\draw [->] (int1) |- (int4);\n\t\t\\draw [->] (int4) to (c);\n\t\t\\draw [->] (c) to (int6);\n\t\t\\draw [->] (int6) -| (int9);\n\t\t\\draw [->] (int1) to (int12);\n\t\t\\draw [->] (int12) to (a);\n\t\t\\draw [->] (a) to (int16);\n\t\t\\draw [->] (int16) to (int9);\n\t\t\\draw [->] (int112) to (b);\n\t\t\\draw [->] (int1) to (int112);\n\t\t\\draw [->] (int1) to (milestone);\n\t\t\\draw [->, bend left] (milestone) to (a);\n\t\t\\draw [->, bend left] (milestone) to (b);\n\t\t\\draw [->, bend left] (a) to (milestone);\n\t\t\\draw [->, bend left] (b) to (milestone);\n\t\t\\draw [->] (b) to (int23);\n\t\t\\draw [->] (int23) to (int9);\n\t\t\\draw [->] (milestone) to (int9);\n\t\t\n\t\t\\node (seq2) [place, above=2mm of a] {};\n\t\t\\node (seq1) [transition, left of=seq2, label=above right:$d$] {};\n\t\t\\node (seq3) [transition, right of=seq2, label=above right:$e$] {};\n\t\t\n\t\t\\draw [->] (source) |- (seq1);\n\t\t\\draw [->] (seq1) to (seq2);\n\t\t\\draw [->] (seq2) to (seq3);\n\t\t\n\t\t\\node (sink) [place, right of=int9] {};\n\t\t\\draw [->] (int9) to (sink);\n\t\t\\draw [->] (seq3) -| (sink);\n\t\t\n\t\\end{tikzpicture}\n\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{amsmath,amssymb,graphicx,multirow,mathabx,mathtools,shuffle}\n\\usepackage{tikz}\n\\usepackage{tikz-qtree}\n\\usetikzlibrary{positioning}\n\\usetikzlibrary{fit,calc}\n\n\\begin{document}\n\n\\begin{tikzpicture}\n\t\t[place/.style={draw, circle}, \n\t\ttransition/.style={draw, minimum height=0.5cm},\n\t\tsilent transition/.style={transition, fill},\n\t\ttreeNode/.style={draw, dashed}]\n\t\t\n\t\t\\node (source) [place] {};\n\t\t\n\t\t\\def\\firstone{7mm}\n\t\t\\def\\secondone{7mm};\n\t\t\\def\\milestoneplace{5mm};\n\t\t\\def\\dist{3.3mm};\n\t\t\\node (int1) [silent transition, right of=source] {};\n\t\t\n\t\t\\node (int12) [place, right of=int1, yshift=\\secondone] {};\n\t\t\\node (int112) [place, right of=int1, yshift=-\\secondone] {};\n\t\t\\node (a) [transition, right of=int12, label=above right:$a$] {};\n\t\t\\node (int16) [place, right of=a] {};\n\t\t\n\t\t\\node (b) [transition, right of=int112, label=above right:$b$] {};\n\t\t\\node (int23) [place, right of=b] {};\n\t\t\\node (milestone) [place, label=above right:$p_1$] at ($(a)!0.5!(b)$) {};\n\t\t\n\t\t\\node (c) [transition, below=2mm of b, label=above right:$c$] {};\t\t\n\t\t\\node (int4) [place, left of=c] {};\n\t\t\\node (int6) [place, right of=c] {};\n\t\t\n\t\t\\node (int9) [silent transition, right of=int16, yshift=-\\firstone] {};\n\t\t\n\t\t\\draw [->] (source) to (int1);\n\t\t\\draw [->] (int1) |- (int4);\n\t\t\\draw [->] (int4) to (c);\n\t\t\\draw [->] (c) to (int6);\n\t\t\\draw [->] (int6) -| (int9);\n\t\t\\draw [->] (int1) to (int12);\n\t\t\\draw [->] (int12) to (a);\n\t\t\\draw [->] (a) to (int16);\n\t\t\\draw [->] (int16) to (int9);\n\t\t\\draw [->] (int112) to (b);\n\t\t\\draw [->] (int1) to (int112);\n\t\t\\draw [->] (int1) to (milestone);\n\t\t\\draw [->, bend left] (milestone) to (a);\n\t\t\\draw [->, bend left] (milestone) to (b);\n\t\t\\draw [->, bend left] (a) to (milestone);\n\t\t\\draw [->, bend left] (b) to (milestone);\n\t\t\\draw [->] (b) to (int23);\n\t\t\\draw [->] (int23) to (int9);\n\t\t\\draw [->] (milestone) to (int9);\n\t\t\n\t\t\\node (seq2) [place, above=2mm of a] {};\n\t\t\\node (seq1) [transition, left of=seq2, label=above right:$d$] {};\n\t\t\\node (seq3) [transition, right of=seq2, label=above right:$e$] {};\n\t\t\n\t\t\\draw [->] (source) |- (seq1);\n\t\t\\draw [->] (seq1) to (seq2);\n\t\t\\draw [->] (seq2) to (seq3);\n\t\t\n\t\t\\node (sink) [place, right of=int9] {};\n\t\t\\draw [->] (seq3) -| (sink);\n\t\t\\draw [->] (int9) to (sink);\n\t\t\n\t\\end{tikzpicture}\n\n\\end{document}" ]
[ 1, 7 ]
zoomedtriangle_centered
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{calc, spy} \makeatletter \def\pgfpointnormalised#1{ \pgf@process{#1} \pgfmathatantwo{\the\pgf@y}{\the\pgf@x} \let\pgf@tmp=\pgfmathresult \pgfmathcos@{\pgf@tmp}\pgf@x=\pgfmathresult pt\relax \pgfmathsin@{\pgf@tmp}\pgf@y=\pgfmathresult pt\relax } \makeatother \begin{document} \begin{tikzpicture}[spy using outlines={circle, magnification=7, size=17mm, connect spies}] \path (0,0) coordinate (A) ({(1/4)*16},0) coordinate (B) ({(1/4)*12},{(1/4)*(4*sqrt(3))}) coordinate (C); \draw (A) -- (B) -- (C) -- cycle; \node[anchor=north, inner sep=0, font=\footnotesize] at ($(A) +(0,-0.15)$){$A$}; \node[anchor=north, inner sep=0, font=\footnotesize] at ($(B) +(0,-0.15)$){$B$}; \node[anchor=south, inner sep=0, font=\footnotesize] at ($(C) +(0,0.15)$){$C$}; \coordinate (U) at ($(C)!5mm!45:(A)$); \draw ($(A)!(U)!(C)$) -- (U) -- ($(B)!(U)!(C)$); \draw[green] let \p1=($(B)-(C)$), \n1={atan(\y1/\x1)} in (U) -- ($(U) +({\n1+180}:0.5)$); \draw[fill=green] ($(A)!(U)!(C)$) circle (1pt); \coordinate (F) at ({(1/4)*(12)},0); \draw[dashed] (F) -- (C); \coordinate (V) at ($(F)!3.25mm!-45:(A)$); \draw ($(A)!(V)!(B)$) -- (V) -- ($(C)!(V)!(F)$); \spy[red] on (2.7,1.5) in node at (1,1.7); \end{tikzpicture} \end{document}
\documentclass[tikz,border=5]{standalone} \usepackage{tikz} \usetikzlibrary{calc, spy} % use the Mark Wibrow's correction \makeatletter \def\pgfpointnormalised#1{% \pgf@process{#1}% \pgfmathatantwo{\the\pgf@y}{\the\pgf@x}% \let\pgf@tmp=\pgfmathresult% \pgfmathcos@{\pgf@tmp}\pgf@x=\pgfmathresult pt\relax% \pgfmathsin@{\pgf@tmp}\pgf@y=\pgfmathresult pt\relax% } \makeatother \begin{document} \begin{tikzpicture}[spy using outlines={circle, magnification=7, size=17mm, connect spies}] %A right triangle is drawn. \path (0,0) coordinate (A) ({(1/4)*16},0) coordinate (B) ({(1/4)*12},{(1/4)*(4*sqrt(3))}) coordinate (C); \draw (A) -- (B) -- (C) -- cycle; %The vertices are labeled. \node[anchor=north, inner sep=0, font=\footnotesize] at ($(A) +(0,-0.15)$){$A$}; \node[anchor=north, inner sep=0, font=\footnotesize] at ($(B) +(0,-0.15)$){$B$}; \node[anchor=south, inner sep=0, font=\footnotesize] at ($(C) +(0,0.15)$){$C$}; %A right-angle mark is drawn at C. \coordinate (U) at ($(C)!5mm!45:(A)$); \draw ($(A)!(U)!(C)$) -- (U) -- ($(B)!(U)!(C)$); \draw[green] let \p1=($(B)-(C)$), \n1={atan(\y1/\x1)} in (U) -- ($(U) +({\n1+180}:0.5)$); \draw[fill=green] ($(A)!(U)!(C)$) circle (1pt); %The foot of the altitude is labeled F. \coordinate (F) at ({(1/4)*(12)},0); \draw[dashed] (F) -- (C); %A right-angle mark is drawn at F. \coordinate (V) at ($(F)!3.25mm!-45:(A)$); \draw ($(A)!(V)!(B)$) -- (V) -- ($(C)!(V)!(F)$); \spy[red] on (2.7,1.5) in node at (1,1.7); \end{tikzpicture} \end{document}
Center the zoom at the green intersection point.
A right angled triang, with a zoom centered right on a green dot
easy
update
scientific
[ "@@ -28 +28 @@\n\n-\\spy[red] on (2.7,1.5) in node at (1,1.7);\n+\\spy[red] on (2.69,1.55) in node at (1,1.7);", "@@ -28 +28 @@\n\n-\\spy[red] on (2.7,1.5) in node at (1,1.7);\n+\\spy[red] on ($(A)!(U)!(C)$) in node at (1,1.7);" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{calc, spy}\n\n\\makeatletter\n\\def\\pgfpointnormalised#1{\n \\pgf@process{#1}\n \\pgfmathatantwo{\\the\\pgf@y}{\\the\\pgf@x}\n \\let\\pgf@tmp=\\pgfmathresult\n \\pgfmathcos@{\\pgf@tmp}\\pgf@x=\\pgfmathresult pt\\relax\n \\pgfmathsin@{\\pgf@tmp}\\pgf@y=\\pgfmathresult pt\\relax\n}\n\\makeatother\n\n\\begin{document}\n\n\\begin{tikzpicture}[spy using outlines={circle, magnification=7, size=17mm, connect spies}]\n\n\\path (0,0) coordinate (A) ({(1/4)*16},0) coordinate (B) ({(1/4)*12},{(1/4)*(4*sqrt(3))}) coordinate (C);\n\\draw (A) -- (B) -- (C) -- cycle;\n\n\\node[anchor=north, inner sep=0, font=\\footnotesize] at ($(A) +(0,-0.15)$){$A$};\n\\node[anchor=north, inner sep=0, font=\\footnotesize] at ($(B) +(0,-0.15)$){$B$};\n\\node[anchor=south, inner sep=0, font=\\footnotesize] at ($(C) +(0,0.15)$){$C$};\n\n\\coordinate (U) at ($(C)!5mm!45:(A)$);\n\\draw ($(A)!(U)!(C)$) -- (U) -- ($(B)!(U)!(C)$);\n\\draw[green] let \\p1=($(B)-(C)$), \\n1={atan(\\y1/\\x1)} in (U) -- ($(U) +({\\n1+180}:0.5)$);\n\\draw[fill=green] ($(A)!(U)!(C)$) circle (1pt);\n\n\n\\coordinate (F) at ({(1/4)*(12)},0);\n\\draw[dashed] (F) -- (C);\n\n\\coordinate (V) at ($(F)!3.25mm!-45:(A)$);\n\\draw ($(A)!(V)!(B)$) -- (V) -- ($(C)!(V)!(F)$);\n\n\\spy[red] on (2.69,1.55) in node at (1,1.7);\n\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{calc, spy}\n\n\\makeatletter\n\\def\\pgfpointnormalised#1{\n \\pgf@process{#1}\n \\pgfmathatantwo{\\the\\pgf@y}{\\the\\pgf@x}\n \\let\\pgf@tmp=\\pgfmathresult\n \\pgfmathcos@{\\pgf@tmp}\\pgf@x=\\pgfmathresult pt\\relax\n \\pgfmathsin@{\\pgf@tmp}\\pgf@y=\\pgfmathresult pt\\relax\n}\n\\makeatother\n\n\\begin{document}\n\n\\begin{tikzpicture}[spy using outlines={circle, magnification=7, size=17mm, connect spies}]\n\n\\path (0,0) coordinate (A) ({(1/4)*16},0) coordinate (B) ({(1/4)*12},{(1/4)*(4*sqrt(3))}) coordinate (C);\n\\draw (A) -- (B) -- (C) -- cycle;\n\n\\node[anchor=north, inner sep=0, font=\\footnotesize] at ($(A) +(0,-0.15)$){$A$};\n\\node[anchor=north, inner sep=0, font=\\footnotesize] at ($(B) +(0,-0.15)$){$B$};\n\\node[anchor=south, inner sep=0, font=\\footnotesize] at ($(C) +(0,0.15)$){$C$};\n\n\\coordinate (U) at ($(C)!5mm!45:(A)$);\n\\draw ($(A)!(U)!(C)$) -- (U) -- ($(B)!(U)!(C)$);\n\\draw[green] let \\p1=($(B)-(C)$), \\n1={atan(\\y1/\\x1)} in (U) -- ($(U) +({\\n1+180}:0.5)$);\n\\draw[fill=green] ($(A)!(U)!(C)$) circle (1pt);\n\n\n\\coordinate (F) at ({(1/4)*(12)},0);\n\\draw[dashed] (F) -- (C);\n\n\\coordinate (V) at ($(F)!3.25mm!-45:(A)$);\n\\draw ($(A)!(V)!(B)$) -- (V) -- ($(C)!(V)!(F)$);\n\n\\spy[red] on ($(A)!(U)!(C)$) in node at (1,1.7);\n\n\\end{tikzpicture}\n\\end{document}" ]
[ "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{calc, spy}\n\n\\makeatletter\n\\def\\pgfpointnormalised#1{\n \\pgf@process{#1}\n \\pgfmathatantwo{\\the\\pgf@y}{\\the\\pgf@x}\n \\let\\pgf@tmp=\\pgfmathresult\n \\pgfmathcos@{\\pgf@tmp}\\pgf@x=\\pgfmathresult pt\\relax\n \\pgfmathsin@{\\pgf@tmp}\\pgf@y=\\pgfmathresult pt\\relax\n}\n\\makeatother\n\n\\begin{document}\n\n\\begin{tikzpicture}[spy using outlines={circle, magnification=7, size=17mm, connect spies}]\n\n\\path (0,0) coordinate (A) ({(1/4)*16},0) coordinate (B) ({(1/4)*12},{(1/4)*(4*sqrt(3))}) coordinate (C);\n\\draw (A) -- (B) -- (C) -- cycle;\n\n\\node[anchor=north, inner sep=0, font=\\footnotesize] at ($(A) +(0,-0.15)$){$A$};\n\\node[anchor=north, inner sep=0, font=\\footnotesize] at ($(B) +(0,-0.15)$){$B$};\n\\node[anchor=south, inner sep=0, font=\\footnotesize] at ($(C) +(0,0.15)$){$C$};\n\n\\coordinate (U) at ($(C)!5mm!45:(A)$);\n\\draw ($(A)!(U)!(C)$) -- (U) -- ($(B)!(U)!(C)$);\n\\draw[green] let \\p1=($(B)-(C)$), \\n1={atan(\\y1/\\x1)} in (U) -- ($(U) +({\\n1+180}:0.5)$);\n\\draw[fill=green] ($(A)!(U)!(C)$) circle (1pt);\n\n\n\\coordinate (F) at ({(1/4)*(12)},0);\n\\draw[dashed] (F) -- (C);\n\n\\coordinate (V) at ($(F)!3.25mm!-45:(A)$);\n\\draw ($(A)!(V)!(B)$) -- (V) -- ($(C)!(V)!(F)$);\n\n\\spy[red] on (2.69,1.55) in node at (1,1.7);\n\n\\end{tikzpicture}\n\\end{document}", "\\documentclass[tikz,border=5]{standalone}\n\\usepackage{tikz}\n\\usetikzlibrary{calc, spy}\n\n\\makeatletter\n\\def\\pgfpointnormalised#1{\n \\pgf@process{#1}\n \\pgfmathatantwo{\\the\\pgf@y}{\\the\\pgf@x}\n \\let\\pgf@tmp=\\pgfmathresult\n \\pgfmathcos@{\\pgf@tmp}\\pgf@x=\\pgfmathresult pt\\relax\n \\pgfmathsin@{\\pgf@tmp}\\pgf@y=\\pgfmathresult pt\\relax\n}\n\\makeatother\n\n\\begin{document}\n\n\\begin{tikzpicture}[spy using outlines={circle, magnification=7, size=17mm, connect spies}]\n\n\\path (0,0) coordinate (A) ({(1/4)*16},0) coordinate (B) ({(1/4)*12},{(1/4)*(4*sqrt(3))}) coordinate (C);\n\\draw (A) -- (B) -- (C) -- cycle;\n\n\\node[anchor=north, inner sep=0, font=\\footnotesize] at ($(A) +(0,-0.15)$){$A$};\n\\node[anchor=north, inner sep=0, font=\\footnotesize] at ($(B) +(0,-0.15)$){$B$};\n\\node[anchor=south, inner sep=0, font=\\footnotesize] at ($(C) +(0,0.15)$){$C$};\n\n\\coordinate (U) at ($(C)!5mm!45:(A)$);\n\\draw ($(A)!(U)!(C)$) -- (U) -- ($(B)!(U)!(C)$);\n\\draw[green] let \\p1=($(B)-(C)$), \\n1={atan(\\y1/\\x1)} in (U) -- ($(U) +({\\n1+180}:0.5)$);\n\\draw[fill=green] ($(A)!(U)!(C)$) circle (1pt);\n\n\n\\coordinate (F) at ({(1/4)*(12)},0);\n\\draw[dashed] (F) -- (C);\n\n\\coordinate (V) at ($(F)!3.25mm!-45:(A)$);\n\\draw ($(A)!(V)!(B)$) -- (V) -- ($(C)!(V)!(F)$);\n\n\\spy[red] on ($(A)!(U)!(C)$) in node at (1,1.7);\n\n\\end{tikzpicture}\n\\end{document}" ]