Dataset Viewer
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}"
] |
End of preview. Expand
in Data Studio
vTikZ: A Benchmark for Visually-Grounded Code Editing
Dataset Summary
vTikZ is the first benchmark explicitly designed to evaluate Large Language Models (LLMs) on code editing tasks with visual intent. It focuses on scenarios where natural language instructions are used to modify code that generates diagrams or figures, such as TikZ. The dataset targets the core challenges of this task: localizing relevant code (feature location), generating valid code variants, and ensuring visual consistency with user intent.
Features
Human-Annotated
- Original Code: The base diagram-generating code written by humans.
- Parameterized Solution Code: Templates capturing acceptable variations for a given customization.
- Instruction: Natural language directive describing the intended visual change.
- Perceived Difficulty: Subjective difficulty score assigned to each customization task.
- Result Description: Human-written description of the desired visual outcome.
- Modification Type: Type of code change—
add
,remove
, orupdate
. - Type: Category of the original diagram (
scientific
oranimal
).
Automatically Computed
- Perfect Variants: Set of code solutions generated from the parameterized template.
- Patch: Context-free unidiff patch between the original and perfect variant(s).
- Image Input: Rendered image from the original code.
- Images Solution: Rendered images of all perfect variants.
- AST Difficulty: Tree edit distance (TED) between original and variant code [Zhang & Shasha, 1989].
Citation
If you use this dataset, please cite:
@inproceedings{reux_llmvisualcutomization_2025,
author = {Reux, Charly and Acher, Mathieu and Khelladi, Djamel Eddine and Barais, Olivier and Quinton, Cl{'e}ment},
title = {LLM Code Customization with Visual Results: A Benchmark on TikZ},
booktitle = {Proceedings of {The} 29th {International} {Conference} on {Evaluation} and {Assessment} in {Software} {Engineering} ({EASE} 2025).},
year = {2025},
}
- Downloads last month
- 112