Creating a Falcon's logo
I have been trying to trying to replicate this logo for my team (not to mention in LaTeX
ofcourse:-)):
So where I am now:
documentclass[11pt]{standalone}
usepackage{tikz}
usepackage{pgfplots}% loads also tikz
pgfplotsset{compat=newest}% to avoid the pgfplots warning
usetikzlibrary{intersections, pgfplots.fillbetween}
%https://tex.stackexchange.com/questions/58702/creating-gears-in-tikz
% #1 number of teeths
% #2 radius intern
% #3 radius extern
% #4 angle from start to end of the first arc
% #5 angle to decale the second arc from the first
newcommand{gear}[5]{%
foreach i in {1,...,#1} {%
[rotate=(i-1)*360/#1] (0:#2) arc (0:#4:#2) {
-- (#4+#5:#3) arc (#4+#5:360/#1-#5:#3)} -- (360/#1:#2)
}}
%https://tex.stackexchange.com/questions/48662/tikz-or-xcolor-lighten-color
colorlet{MyColorOne}{blue!60}
newcommand{lightercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!white}
}
newcommand{darkercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!black}
}
lightercolor{MyColorOne}{50}{MyColorOneLight}
darkercolor{MyColorOne}{50}{MyColorOneDark}
%https://tex.stackexchange.com/questions/255234/how-does-one-pick-control-points-to-control-b%C3%A9zier-curves-in-tikz
newcommandDrawControl[3]{
node[#2,circle,fill=#2,inner sep=2pt,label={above:$#1$},label={[black]below:{footnotesize#3}}] at #1 {}
}
%https://tex.stackexchange.com/questions/66490/drawing-a-tikz-arc-specifying-the-center/218814
tikzset{
pics/carc/.style args={#1:#2:#3}{
code={
draw[pic actions] (#1:#3) arc(#1:#2:#3);
}
}
}
begin{document}
begin{tikzpicture}
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear{9}{2}{2.8}{15}{6};
draw[name path = b, black,fill=black] (0,0) circle (1.65cm);
draw[name path = c, white] (0,0) circle (1.7cm);
tikzfillbetween[of=a and c]{MyColorOneDark};
tikzfillbetween[of=b and c]{white};
draw[black,fill=black] (0,0) circle (1.65cm);
draw[white] (0,0) circle (1.7cm);
draw[ultra thick,white]
(1,-1.34)
.. controls (1,-0.65) and (-1.4,0.4) ..
%to
(-1,-0.6);
draw[ultra thick,white]
(-1,-0.6)
.. controls (-1.3,0.3) ..
(0.75,0.75);% DrawControl{(4,2)}{blue}{}; %DrawControl{(3,2)}{blue}{1}DrawControl{(5,2)}{blue}{2};
draw[ultra thick,white]
(0,0.58)
.. controls (0.3,1) ..
(1.3,1.05);
draw[ultra thick, white] (0.535,0.66) pic{carc=20:-150:0.2};
end{tikzpicture}
end{document}
which gives me:
Having said that, with respect to the original figure, the challenges that I face are three-fold:
1. I am not able to match the blue color between the gears and the first white circle. [worked as per Phelype Oleinik suggestion]
I am not able to replicate the barrel shape in the teeth region of my figure (compared to original).
Finally, ofcourse, I used a lot of helps from other answers that are linked to this question (especially, @Gonzalo's Bézier trick). But still I am not able to get the smooth finishing of my Falcon.
All helps and suggestions are appreciated. Nevertheless, any optimisations of my code is more than welcome.
tikz-pgf color tikz-styles shapes
|
show 11 more comments
I have been trying to trying to replicate this logo for my team (not to mention in LaTeX
ofcourse:-)):
So where I am now:
documentclass[11pt]{standalone}
usepackage{tikz}
usepackage{pgfplots}% loads also tikz
pgfplotsset{compat=newest}% to avoid the pgfplots warning
usetikzlibrary{intersections, pgfplots.fillbetween}
%https://tex.stackexchange.com/questions/58702/creating-gears-in-tikz
% #1 number of teeths
% #2 radius intern
% #3 radius extern
% #4 angle from start to end of the first arc
% #5 angle to decale the second arc from the first
newcommand{gear}[5]{%
foreach i in {1,...,#1} {%
[rotate=(i-1)*360/#1] (0:#2) arc (0:#4:#2) {
-- (#4+#5:#3) arc (#4+#5:360/#1-#5:#3)} -- (360/#1:#2)
}}
%https://tex.stackexchange.com/questions/48662/tikz-or-xcolor-lighten-color
colorlet{MyColorOne}{blue!60}
newcommand{lightercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!white}
}
newcommand{darkercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!black}
}
lightercolor{MyColorOne}{50}{MyColorOneLight}
darkercolor{MyColorOne}{50}{MyColorOneDark}
%https://tex.stackexchange.com/questions/255234/how-does-one-pick-control-points-to-control-b%C3%A9zier-curves-in-tikz
newcommandDrawControl[3]{
node[#2,circle,fill=#2,inner sep=2pt,label={above:$#1$},label={[black]below:{footnotesize#3}}] at #1 {}
}
%https://tex.stackexchange.com/questions/66490/drawing-a-tikz-arc-specifying-the-center/218814
tikzset{
pics/carc/.style args={#1:#2:#3}{
code={
draw[pic actions] (#1:#3) arc(#1:#2:#3);
}
}
}
begin{document}
begin{tikzpicture}
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear{9}{2}{2.8}{15}{6};
draw[name path = b, black,fill=black] (0,0) circle (1.65cm);
draw[name path = c, white] (0,0) circle (1.7cm);
tikzfillbetween[of=a and c]{MyColorOneDark};
tikzfillbetween[of=b and c]{white};
draw[black,fill=black] (0,0) circle (1.65cm);
draw[white] (0,0) circle (1.7cm);
draw[ultra thick,white]
(1,-1.34)
.. controls (1,-0.65) and (-1.4,0.4) ..
%to
(-1,-0.6);
draw[ultra thick,white]
(-1,-0.6)
.. controls (-1.3,0.3) ..
(0.75,0.75);% DrawControl{(4,2)}{blue}{}; %DrawControl{(3,2)}{blue}{1}DrawControl{(5,2)}{blue}{2};
draw[ultra thick,white]
(0,0.58)
.. controls (0.3,1) ..
(1.3,1.05);
draw[ultra thick, white] (0.535,0.66) pic{carc=20:-150:0.2};
end{tikzpicture}
end{document}
which gives me:
Having said that, with respect to the original figure, the challenges that I face are three-fold:
1. I am not able to match the blue color between the gears and the first white circle. [worked as per Phelype Oleinik suggestion]
I am not able to replicate the barrel shape in the teeth region of my figure (compared to original).
Finally, ofcourse, I used a lot of helps from other answers that are linked to this question (especially, @Gonzalo's Bézier trick). But still I am not able to get the smooth finishing of my Falcon.
All helps and suggestions are appreciated. Nevertheless, any optimisations of my code is more than welcome.
tikz-pgf color tikz-styles shapes
3
The colour seems to be#253F83
:)
– Phelype Oleinik
2 days ago
3
I Think It's because you are using thedarkercolor
command. Trydefinecolor{MyColorOneDark}{HTML}{253F83}
without thedarkercolor
thingy. To get the color I usedgpick
, but are lots of other colour pickers as well.
– Phelype Oleinik
2 days ago
2
@MartinScharrer the teeth of a gear should be involute (be curved) see khkgears.net/new/gear_knowledge/abcs_of_gears-b/…
– KJO
2 days ago
2
The original gear seems to have 10 teeth, you redraw only 9....
– marmot
2 days ago
2
@marmot Probably to avoid copyright problems :)
– samcarter
2 days ago
|
show 11 more comments
I have been trying to trying to replicate this logo for my team (not to mention in LaTeX
ofcourse:-)):
So where I am now:
documentclass[11pt]{standalone}
usepackage{tikz}
usepackage{pgfplots}% loads also tikz
pgfplotsset{compat=newest}% to avoid the pgfplots warning
usetikzlibrary{intersections, pgfplots.fillbetween}
%https://tex.stackexchange.com/questions/58702/creating-gears-in-tikz
% #1 number of teeths
% #2 radius intern
% #3 radius extern
% #4 angle from start to end of the first arc
% #5 angle to decale the second arc from the first
newcommand{gear}[5]{%
foreach i in {1,...,#1} {%
[rotate=(i-1)*360/#1] (0:#2) arc (0:#4:#2) {
-- (#4+#5:#3) arc (#4+#5:360/#1-#5:#3)} -- (360/#1:#2)
}}
%https://tex.stackexchange.com/questions/48662/tikz-or-xcolor-lighten-color
colorlet{MyColorOne}{blue!60}
newcommand{lightercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!white}
}
newcommand{darkercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!black}
}
lightercolor{MyColorOne}{50}{MyColorOneLight}
darkercolor{MyColorOne}{50}{MyColorOneDark}
%https://tex.stackexchange.com/questions/255234/how-does-one-pick-control-points-to-control-b%C3%A9zier-curves-in-tikz
newcommandDrawControl[3]{
node[#2,circle,fill=#2,inner sep=2pt,label={above:$#1$},label={[black]below:{footnotesize#3}}] at #1 {}
}
%https://tex.stackexchange.com/questions/66490/drawing-a-tikz-arc-specifying-the-center/218814
tikzset{
pics/carc/.style args={#1:#2:#3}{
code={
draw[pic actions] (#1:#3) arc(#1:#2:#3);
}
}
}
begin{document}
begin{tikzpicture}
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear{9}{2}{2.8}{15}{6};
draw[name path = b, black,fill=black] (0,0) circle (1.65cm);
draw[name path = c, white] (0,0) circle (1.7cm);
tikzfillbetween[of=a and c]{MyColorOneDark};
tikzfillbetween[of=b and c]{white};
draw[black,fill=black] (0,0) circle (1.65cm);
draw[white] (0,0) circle (1.7cm);
draw[ultra thick,white]
(1,-1.34)
.. controls (1,-0.65) and (-1.4,0.4) ..
%to
(-1,-0.6);
draw[ultra thick,white]
(-1,-0.6)
.. controls (-1.3,0.3) ..
(0.75,0.75);% DrawControl{(4,2)}{blue}{}; %DrawControl{(3,2)}{blue}{1}DrawControl{(5,2)}{blue}{2};
draw[ultra thick,white]
(0,0.58)
.. controls (0.3,1) ..
(1.3,1.05);
draw[ultra thick, white] (0.535,0.66) pic{carc=20:-150:0.2};
end{tikzpicture}
end{document}
which gives me:
Having said that, with respect to the original figure, the challenges that I face are three-fold:
1. I am not able to match the blue color between the gears and the first white circle. [worked as per Phelype Oleinik suggestion]
I am not able to replicate the barrel shape in the teeth region of my figure (compared to original).
Finally, ofcourse, I used a lot of helps from other answers that are linked to this question (especially, @Gonzalo's Bézier trick). But still I am not able to get the smooth finishing of my Falcon.
All helps and suggestions are appreciated. Nevertheless, any optimisations of my code is more than welcome.
tikz-pgf color tikz-styles shapes
I have been trying to trying to replicate this logo for my team (not to mention in LaTeX
ofcourse:-)):
So where I am now:
documentclass[11pt]{standalone}
usepackage{tikz}
usepackage{pgfplots}% loads also tikz
pgfplotsset{compat=newest}% to avoid the pgfplots warning
usetikzlibrary{intersections, pgfplots.fillbetween}
%https://tex.stackexchange.com/questions/58702/creating-gears-in-tikz
% #1 number of teeths
% #2 radius intern
% #3 radius extern
% #4 angle from start to end of the first arc
% #5 angle to decale the second arc from the first
newcommand{gear}[5]{%
foreach i in {1,...,#1} {%
[rotate=(i-1)*360/#1] (0:#2) arc (0:#4:#2) {
-- (#4+#5:#3) arc (#4+#5:360/#1-#5:#3)} -- (360/#1:#2)
}}
%https://tex.stackexchange.com/questions/48662/tikz-or-xcolor-lighten-color
colorlet{MyColorOne}{blue!60}
newcommand{lightercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!white}
}
newcommand{darkercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!black}
}
lightercolor{MyColorOne}{50}{MyColorOneLight}
darkercolor{MyColorOne}{50}{MyColorOneDark}
%https://tex.stackexchange.com/questions/255234/how-does-one-pick-control-points-to-control-b%C3%A9zier-curves-in-tikz
newcommandDrawControl[3]{
node[#2,circle,fill=#2,inner sep=2pt,label={above:$#1$},label={[black]below:{footnotesize#3}}] at #1 {}
}
%https://tex.stackexchange.com/questions/66490/drawing-a-tikz-arc-specifying-the-center/218814
tikzset{
pics/carc/.style args={#1:#2:#3}{
code={
draw[pic actions] (#1:#3) arc(#1:#2:#3);
}
}
}
begin{document}
begin{tikzpicture}
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear{9}{2}{2.8}{15}{6};
draw[name path = b, black,fill=black] (0,0) circle (1.65cm);
draw[name path = c, white] (0,0) circle (1.7cm);
tikzfillbetween[of=a and c]{MyColorOneDark};
tikzfillbetween[of=b and c]{white};
draw[black,fill=black] (0,0) circle (1.65cm);
draw[white] (0,0) circle (1.7cm);
draw[ultra thick,white]
(1,-1.34)
.. controls (1,-0.65) and (-1.4,0.4) ..
%to
(-1,-0.6);
draw[ultra thick,white]
(-1,-0.6)
.. controls (-1.3,0.3) ..
(0.75,0.75);% DrawControl{(4,2)}{blue}{}; %DrawControl{(3,2)}{blue}{1}DrawControl{(5,2)}{blue}{2};
draw[ultra thick,white]
(0,0.58)
.. controls (0.3,1) ..
(1.3,1.05);
draw[ultra thick, white] (0.535,0.66) pic{carc=20:-150:0.2};
end{tikzpicture}
end{document}
which gives me:
Having said that, with respect to the original figure, the challenges that I face are three-fold:
1. I am not able to match the blue color between the gears and the first white circle. [worked as per Phelype Oleinik suggestion]
I am not able to replicate the barrel shape in the teeth region of my figure (compared to original).
Finally, ofcourse, I used a lot of helps from other answers that are linked to this question (especially, @Gonzalo's Bézier trick). But still I am not able to get the smooth finishing of my Falcon.
All helps and suggestions are appreciated. Nevertheless, any optimisations of my code is more than welcome.
tikz-pgf color tikz-styles shapes
tikz-pgf color tikz-styles shapes
edited 2 days ago
Raaja
asked 2 days ago
RaajaRaaja
2,4502632
2,4502632
3
The colour seems to be#253F83
:)
– Phelype Oleinik
2 days ago
3
I Think It's because you are using thedarkercolor
command. Trydefinecolor{MyColorOneDark}{HTML}{253F83}
without thedarkercolor
thingy. To get the color I usedgpick
, but are lots of other colour pickers as well.
– Phelype Oleinik
2 days ago
2
@MartinScharrer the teeth of a gear should be involute (be curved) see khkgears.net/new/gear_knowledge/abcs_of_gears-b/…
– KJO
2 days ago
2
The original gear seems to have 10 teeth, you redraw only 9....
– marmot
2 days ago
2
@marmot Probably to avoid copyright problems :)
– samcarter
2 days ago
|
show 11 more comments
3
The colour seems to be#253F83
:)
– Phelype Oleinik
2 days ago
3
I Think It's because you are using thedarkercolor
command. Trydefinecolor{MyColorOneDark}{HTML}{253F83}
without thedarkercolor
thingy. To get the color I usedgpick
, but are lots of other colour pickers as well.
– Phelype Oleinik
2 days ago
2
@MartinScharrer the teeth of a gear should be involute (be curved) see khkgears.net/new/gear_knowledge/abcs_of_gears-b/…
– KJO
2 days ago
2
The original gear seems to have 10 teeth, you redraw only 9....
– marmot
2 days ago
2
@marmot Probably to avoid copyright problems :)
– samcarter
2 days ago
3
3
The colour seems to be
#253F83
:)– Phelype Oleinik
2 days ago
The colour seems to be
#253F83
:)– Phelype Oleinik
2 days ago
3
3
I Think It's because you are using the
darkercolor
command. Try definecolor{MyColorOneDark}{HTML}{253F83}
without the darkercolor
thingy. To get the color I used gpick
, but are lots of other colour pickers as well.– Phelype Oleinik
2 days ago
I Think It's because you are using the
darkercolor
command. Try definecolor{MyColorOneDark}{HTML}{253F83}
without the darkercolor
thingy. To get the color I used gpick
, but are lots of other colour pickers as well.– Phelype Oleinik
2 days ago
2
2
@MartinScharrer the teeth of a gear should be involute (be curved) see khkgears.net/new/gear_knowledge/abcs_of_gears-b/…
– KJO
2 days ago
@MartinScharrer the teeth of a gear should be involute (be curved) see khkgears.net/new/gear_knowledge/abcs_of_gears-b/…
– KJO
2 days ago
2
2
The original gear seems to have 10 teeth, you redraw only 9....
– marmot
2 days ago
The original gear seems to have 10 teeth, you redraw only 9....
– marmot
2 days ago
2
2
@marmot Probably to avoid copyright problems :)
– samcarter
2 days ago
@marmot Probably to avoid copyright problems :)
– samcarter
2 days ago
|
show 11 more comments
1 Answer
1
active
oldest
votes
I was always scared by falcons. They hunt us! (With to[in=...,out=...]
one can do a lot of things, and if one in
and the next out
differ by 180, there is no kink.)
documentclass[11pt]{standalone}
usepackage{tikz}
usepackage{pgfplots}% loads also tikz
pgfplotsset{compat=newest}% to avoid the pgfplots warning
usetikzlibrary{intersections, pgfplots.fillbetween}
%https://tex.stackexchange.com/questions/58702/creating-gears-in-tikz
% #1 number of teeths
% #2 radius intern
% #3 radius extern
% #4 angle from start to end of the first arc
% #5 angle to decale the second arc from the first
% Max' comment
newcommand{gear}[5]{ foreach i in {1,...,#1} { [rotate=(i-1)*360/#1] (0:#2) arc (0:#4:#2) .. controls (#4:1.1*#2) and (#4+#5/2:0.95*#3) .. (#4+#5:#3) arc (#4+#5:360/#1-#5:#3) .. controls (360/#1-#5/2:0.95*#3) and (360/#1:1.1*#2) .. (360/#1:#2) }}
colorlet{MyColorOne}{blue!60}
newcommand{lightercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!white}
}
newcommand{darkercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!black}
}
lightercolor{MyColorOne}{50}{MyColorOneLight}
darkercolor{MyColorOne}{50}{MyColorOneDark}
%https://tex.stackexchange.com/questions/255234/how-does-one-pick-control-points-to-control-b%C3%A9zier-curves-in-tikz
newcommandDrawControl[3]{
node[#2,circle,fill=#2,inner sep=2pt,label={above:$#1$},label={[black]below:{footnotesize#3}}] at #1 {}
}
%https://tex.stackexchange.com/questions/66490/drawing-a-tikz-arc-specifying-the-center/218814
tikzset{
pics/carc/.style args={#1:#2:#3}{
code={
draw[pic actions] (#1:#3) arc(#1:#2:#3);
}
}
}
begin{document}
begin{tikzpicture}
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear{10}{2}{2.8}{15}{6};
draw[name path = b, black,fill=black] (0,0) circle (1.65cm);
draw[name path = c, white] (0,0) circle (1.7cm);
tikzfillbetween[of=a and c]{MyColorOneDark};
tikzfillbetween[of=b and c]{white};
draw[black,fill=black] (0,0) circle (1.65cm);
draw[white] (0,0) circle (1.7cm);
draw[ultra thick,white,line join=bevel]
(-52:1.67) to[out=100,in=-10] (0,-0.5)
to[out=170,in=20] (-0.7,-0.55)
to[out=200,in=80,looseness=0.8] (-0.8,-0.85)
to[out=120,in=-160,looseness=1.2] (-0.2,0.5)
to[out=20,in=-170,looseness=1.2] (0.75,0.7)
to[out=-70,in=-60,looseness=1.3] (0.3,0.4);
draw[ultra thick,white]
(-0.2,0.5) to[out=45,in=180] (0.5,1) to[out=0,in=170] (32:1.68);
end{tikzpicture}
end{document}
UPDATE: Implemented Max' suggestions for the teeth of the gear and also changed the teeth of the falcon. (Those who want to object that falcons do not have teeth: here's a counter example. ;-)
Addendum: Original beak and removed things that are not used.
documentclass[11pt]{standalone}
usepackage{pgfplots}% loads also tikz
pgfplotsset{compat=newest}% to avoid the pgfplots warning
usetikzlibrary{pgfplots.fillbetween}
%https://tex.stackexchange.com/questions/58702/creating-gears-in-tikz
% #1 number of teeths
% #2 radius intern
% #3 radius extern
% #4 angle from start to end of the first arc
% #5 angle to decale the second arc from the first
% Max' comment
newcommand{gear}[5]{ foreach i in {1,...,#1} { [rotate=(i-1)*360/#1] (0:#2) arc (0:#4:#2) .. controls (#4:1.1*#2) and (#4+#5/2:0.95*#3) .. (#4+#5:#3) arc (#4+#5:360/#1-#5:#3) .. controls (360/#1-#5/2:0.95*#3) and (360/#1:1.1*#2) .. (360/#1:#2) }}
colorlet{MyColorOne}{blue!60}
newcommand{lightercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!white}
}
newcommand{darkercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!black}
}
%lightercolor{MyColorOne}{50}{MyColorOneLight}
darkercolor{MyColorOne}{50}{MyColorOneDark}
%https://tex.stackexchange.com/questions/255234/how-does-one-pick-control-points-to-control-b%C3%A9zier-curves-in-tikz
begin{document}
begin{tikzpicture}
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear{10}{2}{2.8}{15}{6};
draw[name path = b, black,fill=black] (0,0) circle (1.65cm);
draw[name path = c, white] (0,0) circle (1.7cm);
tikzfillbetween[of=a and c]{MyColorOneDark};
tikzfillbetween[of=b and c]{white};
draw[black,fill=black] (0,0) circle (1.65cm);
draw[white] (0,0) circle (1.7cm);
draw[ultra thick,white]
(-52:1.7) to[out=100,in=-10] (0,-0.5)
to[out=170,in=10] (-0.7,-0.55)
to[out=170,in=80] (-0.8,-0.85)
to[out=120,in=-160,looseness=1.2] (-0.2,0.5)
to[out=20,in=-170,looseness=1.2] (0.75,0.7)
to[out=-70,in=-60,looseness=1.3] (0.3,0.4);
% draw[ultra thick,white,line join=bevel]
% (-52:1.67) to[out=100,in=-10] (0,-0.5)
% to[out=170,in=20] (-0.7,-0.55)
% to[out=200,in=80,looseness=0.8] (-0.8,-0.85)
% to[out=120,in=-160,looseness=1.2] (-0.2,0.5)
% to[out=20,in=-170,looseness=1.2] (0.75,0.7)
% to[out=-70,in=-60,looseness=1.3] (0.3,0.4);
draw[ultra thick,white]
(-0.2,0.5) to[out=45,in=180] (0.5,1) to[out=0,in=170] (32:1.68);
end{tikzpicture}
end{document}
3
You could add some string around the bill so the falcon can not hunt marmots
– samcarter
2 days ago
1
Definitely, my falcon will hunt @marmot. Nevertheless, +1 For my tikizifying my Falcon!! I wish I could give more. Could you also suggest how to make teeth barrel shaped?
– Raaja
2 days ago
3
@Raaja Trynewcommand{gear}[5]{ foreach i in {1,...,#1} { [rotate=(i-1)*360/#1] (0:#2) arc (0:#4:#2) to[out=#4+#5,in=#4+#5-150,looseness=0.7] (#4+#5:#3) arc (#4+#5:360/#1-#5:#3) to[out=#4+#5+150,in=#4+#5,looseness=0.7] (360/#1:#2) }}
for an approximation of the barrel shape.
– Max
2 days ago
2
@Max Nice to see you again! (You know what, I was messing with the falcon teeth in my update. Arghhhhh! ;-)
– marmot
2 days ago
3
For the record, the shape of gear teeth has a pretty precise mathematical definition, to ensure they grip correctly. See involute gearing on Wikipedia. The parametric representation of the involute of a circle is X (t) = r (cos t + (t − a) sin t), Y (t) = r (sin t − (t − a) cos t). Two of those curves facing each other, with a “cap,” would produce a perfect gear tooth.
– KRyan
2 days ago
|
show 9 more comments
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f469359%2fcreating-a-falcons-logo%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I was always scared by falcons. They hunt us! (With to[in=...,out=...]
one can do a lot of things, and if one in
and the next out
differ by 180, there is no kink.)
documentclass[11pt]{standalone}
usepackage{tikz}
usepackage{pgfplots}% loads also tikz
pgfplotsset{compat=newest}% to avoid the pgfplots warning
usetikzlibrary{intersections, pgfplots.fillbetween}
%https://tex.stackexchange.com/questions/58702/creating-gears-in-tikz
% #1 number of teeths
% #2 radius intern
% #3 radius extern
% #4 angle from start to end of the first arc
% #5 angle to decale the second arc from the first
% Max' comment
newcommand{gear}[5]{ foreach i in {1,...,#1} { [rotate=(i-1)*360/#1] (0:#2) arc (0:#4:#2) .. controls (#4:1.1*#2) and (#4+#5/2:0.95*#3) .. (#4+#5:#3) arc (#4+#5:360/#1-#5:#3) .. controls (360/#1-#5/2:0.95*#3) and (360/#1:1.1*#2) .. (360/#1:#2) }}
colorlet{MyColorOne}{blue!60}
newcommand{lightercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!white}
}
newcommand{darkercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!black}
}
lightercolor{MyColorOne}{50}{MyColorOneLight}
darkercolor{MyColorOne}{50}{MyColorOneDark}
%https://tex.stackexchange.com/questions/255234/how-does-one-pick-control-points-to-control-b%C3%A9zier-curves-in-tikz
newcommandDrawControl[3]{
node[#2,circle,fill=#2,inner sep=2pt,label={above:$#1$},label={[black]below:{footnotesize#3}}] at #1 {}
}
%https://tex.stackexchange.com/questions/66490/drawing-a-tikz-arc-specifying-the-center/218814
tikzset{
pics/carc/.style args={#1:#2:#3}{
code={
draw[pic actions] (#1:#3) arc(#1:#2:#3);
}
}
}
begin{document}
begin{tikzpicture}
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear{10}{2}{2.8}{15}{6};
draw[name path = b, black,fill=black] (0,0) circle (1.65cm);
draw[name path = c, white] (0,0) circle (1.7cm);
tikzfillbetween[of=a and c]{MyColorOneDark};
tikzfillbetween[of=b and c]{white};
draw[black,fill=black] (0,0) circle (1.65cm);
draw[white] (0,0) circle (1.7cm);
draw[ultra thick,white,line join=bevel]
(-52:1.67) to[out=100,in=-10] (0,-0.5)
to[out=170,in=20] (-0.7,-0.55)
to[out=200,in=80,looseness=0.8] (-0.8,-0.85)
to[out=120,in=-160,looseness=1.2] (-0.2,0.5)
to[out=20,in=-170,looseness=1.2] (0.75,0.7)
to[out=-70,in=-60,looseness=1.3] (0.3,0.4);
draw[ultra thick,white]
(-0.2,0.5) to[out=45,in=180] (0.5,1) to[out=0,in=170] (32:1.68);
end{tikzpicture}
end{document}
UPDATE: Implemented Max' suggestions for the teeth of the gear and also changed the teeth of the falcon. (Those who want to object that falcons do not have teeth: here's a counter example. ;-)
Addendum: Original beak and removed things that are not used.
documentclass[11pt]{standalone}
usepackage{pgfplots}% loads also tikz
pgfplotsset{compat=newest}% to avoid the pgfplots warning
usetikzlibrary{pgfplots.fillbetween}
%https://tex.stackexchange.com/questions/58702/creating-gears-in-tikz
% #1 number of teeths
% #2 radius intern
% #3 radius extern
% #4 angle from start to end of the first arc
% #5 angle to decale the second arc from the first
% Max' comment
newcommand{gear}[5]{ foreach i in {1,...,#1} { [rotate=(i-1)*360/#1] (0:#2) arc (0:#4:#2) .. controls (#4:1.1*#2) and (#4+#5/2:0.95*#3) .. (#4+#5:#3) arc (#4+#5:360/#1-#5:#3) .. controls (360/#1-#5/2:0.95*#3) and (360/#1:1.1*#2) .. (360/#1:#2) }}
colorlet{MyColorOne}{blue!60}
newcommand{lightercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!white}
}
newcommand{darkercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!black}
}
%lightercolor{MyColorOne}{50}{MyColorOneLight}
darkercolor{MyColorOne}{50}{MyColorOneDark}
%https://tex.stackexchange.com/questions/255234/how-does-one-pick-control-points-to-control-b%C3%A9zier-curves-in-tikz
begin{document}
begin{tikzpicture}
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear{10}{2}{2.8}{15}{6};
draw[name path = b, black,fill=black] (0,0) circle (1.65cm);
draw[name path = c, white] (0,0) circle (1.7cm);
tikzfillbetween[of=a and c]{MyColorOneDark};
tikzfillbetween[of=b and c]{white};
draw[black,fill=black] (0,0) circle (1.65cm);
draw[white] (0,0) circle (1.7cm);
draw[ultra thick,white]
(-52:1.7) to[out=100,in=-10] (0,-0.5)
to[out=170,in=10] (-0.7,-0.55)
to[out=170,in=80] (-0.8,-0.85)
to[out=120,in=-160,looseness=1.2] (-0.2,0.5)
to[out=20,in=-170,looseness=1.2] (0.75,0.7)
to[out=-70,in=-60,looseness=1.3] (0.3,0.4);
% draw[ultra thick,white,line join=bevel]
% (-52:1.67) to[out=100,in=-10] (0,-0.5)
% to[out=170,in=20] (-0.7,-0.55)
% to[out=200,in=80,looseness=0.8] (-0.8,-0.85)
% to[out=120,in=-160,looseness=1.2] (-0.2,0.5)
% to[out=20,in=-170,looseness=1.2] (0.75,0.7)
% to[out=-70,in=-60,looseness=1.3] (0.3,0.4);
draw[ultra thick,white]
(-0.2,0.5) to[out=45,in=180] (0.5,1) to[out=0,in=170] (32:1.68);
end{tikzpicture}
end{document}
3
You could add some string around the bill so the falcon can not hunt marmots
– samcarter
2 days ago
1
Definitely, my falcon will hunt @marmot. Nevertheless, +1 For my tikizifying my Falcon!! I wish I could give more. Could you also suggest how to make teeth barrel shaped?
– Raaja
2 days ago
3
@Raaja Trynewcommand{gear}[5]{ foreach i in {1,...,#1} { [rotate=(i-1)*360/#1] (0:#2) arc (0:#4:#2) to[out=#4+#5,in=#4+#5-150,looseness=0.7] (#4+#5:#3) arc (#4+#5:360/#1-#5:#3) to[out=#4+#5+150,in=#4+#5,looseness=0.7] (360/#1:#2) }}
for an approximation of the barrel shape.
– Max
2 days ago
2
@Max Nice to see you again! (You know what, I was messing with the falcon teeth in my update. Arghhhhh! ;-)
– marmot
2 days ago
3
For the record, the shape of gear teeth has a pretty precise mathematical definition, to ensure they grip correctly. See involute gearing on Wikipedia. The parametric representation of the involute of a circle is X (t) = r (cos t + (t − a) sin t), Y (t) = r (sin t − (t − a) cos t). Two of those curves facing each other, with a “cap,” would produce a perfect gear tooth.
– KRyan
2 days ago
|
show 9 more comments
I was always scared by falcons. They hunt us! (With to[in=...,out=...]
one can do a lot of things, and if one in
and the next out
differ by 180, there is no kink.)
documentclass[11pt]{standalone}
usepackage{tikz}
usepackage{pgfplots}% loads also tikz
pgfplotsset{compat=newest}% to avoid the pgfplots warning
usetikzlibrary{intersections, pgfplots.fillbetween}
%https://tex.stackexchange.com/questions/58702/creating-gears-in-tikz
% #1 number of teeths
% #2 radius intern
% #3 radius extern
% #4 angle from start to end of the first arc
% #5 angle to decale the second arc from the first
% Max' comment
newcommand{gear}[5]{ foreach i in {1,...,#1} { [rotate=(i-1)*360/#1] (0:#2) arc (0:#4:#2) .. controls (#4:1.1*#2) and (#4+#5/2:0.95*#3) .. (#4+#5:#3) arc (#4+#5:360/#1-#5:#3) .. controls (360/#1-#5/2:0.95*#3) and (360/#1:1.1*#2) .. (360/#1:#2) }}
colorlet{MyColorOne}{blue!60}
newcommand{lightercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!white}
}
newcommand{darkercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!black}
}
lightercolor{MyColorOne}{50}{MyColorOneLight}
darkercolor{MyColorOne}{50}{MyColorOneDark}
%https://tex.stackexchange.com/questions/255234/how-does-one-pick-control-points-to-control-b%C3%A9zier-curves-in-tikz
newcommandDrawControl[3]{
node[#2,circle,fill=#2,inner sep=2pt,label={above:$#1$},label={[black]below:{footnotesize#3}}] at #1 {}
}
%https://tex.stackexchange.com/questions/66490/drawing-a-tikz-arc-specifying-the-center/218814
tikzset{
pics/carc/.style args={#1:#2:#3}{
code={
draw[pic actions] (#1:#3) arc(#1:#2:#3);
}
}
}
begin{document}
begin{tikzpicture}
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear{10}{2}{2.8}{15}{6};
draw[name path = b, black,fill=black] (0,0) circle (1.65cm);
draw[name path = c, white] (0,0) circle (1.7cm);
tikzfillbetween[of=a and c]{MyColorOneDark};
tikzfillbetween[of=b and c]{white};
draw[black,fill=black] (0,0) circle (1.65cm);
draw[white] (0,0) circle (1.7cm);
draw[ultra thick,white,line join=bevel]
(-52:1.67) to[out=100,in=-10] (0,-0.5)
to[out=170,in=20] (-0.7,-0.55)
to[out=200,in=80,looseness=0.8] (-0.8,-0.85)
to[out=120,in=-160,looseness=1.2] (-0.2,0.5)
to[out=20,in=-170,looseness=1.2] (0.75,0.7)
to[out=-70,in=-60,looseness=1.3] (0.3,0.4);
draw[ultra thick,white]
(-0.2,0.5) to[out=45,in=180] (0.5,1) to[out=0,in=170] (32:1.68);
end{tikzpicture}
end{document}
UPDATE: Implemented Max' suggestions for the teeth of the gear and also changed the teeth of the falcon. (Those who want to object that falcons do not have teeth: here's a counter example. ;-)
Addendum: Original beak and removed things that are not used.
documentclass[11pt]{standalone}
usepackage{pgfplots}% loads also tikz
pgfplotsset{compat=newest}% to avoid the pgfplots warning
usetikzlibrary{pgfplots.fillbetween}
%https://tex.stackexchange.com/questions/58702/creating-gears-in-tikz
% #1 number of teeths
% #2 radius intern
% #3 radius extern
% #4 angle from start to end of the first arc
% #5 angle to decale the second arc from the first
% Max' comment
newcommand{gear}[5]{ foreach i in {1,...,#1} { [rotate=(i-1)*360/#1] (0:#2) arc (0:#4:#2) .. controls (#4:1.1*#2) and (#4+#5/2:0.95*#3) .. (#4+#5:#3) arc (#4+#5:360/#1-#5:#3) .. controls (360/#1-#5/2:0.95*#3) and (360/#1:1.1*#2) .. (360/#1:#2) }}
colorlet{MyColorOne}{blue!60}
newcommand{lightercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!white}
}
newcommand{darkercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!black}
}
%lightercolor{MyColorOne}{50}{MyColorOneLight}
darkercolor{MyColorOne}{50}{MyColorOneDark}
%https://tex.stackexchange.com/questions/255234/how-does-one-pick-control-points-to-control-b%C3%A9zier-curves-in-tikz
begin{document}
begin{tikzpicture}
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear{10}{2}{2.8}{15}{6};
draw[name path = b, black,fill=black] (0,0) circle (1.65cm);
draw[name path = c, white] (0,0) circle (1.7cm);
tikzfillbetween[of=a and c]{MyColorOneDark};
tikzfillbetween[of=b and c]{white};
draw[black,fill=black] (0,0) circle (1.65cm);
draw[white] (0,0) circle (1.7cm);
draw[ultra thick,white]
(-52:1.7) to[out=100,in=-10] (0,-0.5)
to[out=170,in=10] (-0.7,-0.55)
to[out=170,in=80] (-0.8,-0.85)
to[out=120,in=-160,looseness=1.2] (-0.2,0.5)
to[out=20,in=-170,looseness=1.2] (0.75,0.7)
to[out=-70,in=-60,looseness=1.3] (0.3,0.4);
% draw[ultra thick,white,line join=bevel]
% (-52:1.67) to[out=100,in=-10] (0,-0.5)
% to[out=170,in=20] (-0.7,-0.55)
% to[out=200,in=80,looseness=0.8] (-0.8,-0.85)
% to[out=120,in=-160,looseness=1.2] (-0.2,0.5)
% to[out=20,in=-170,looseness=1.2] (0.75,0.7)
% to[out=-70,in=-60,looseness=1.3] (0.3,0.4);
draw[ultra thick,white]
(-0.2,0.5) to[out=45,in=180] (0.5,1) to[out=0,in=170] (32:1.68);
end{tikzpicture}
end{document}
3
You could add some string around the bill so the falcon can not hunt marmots
– samcarter
2 days ago
1
Definitely, my falcon will hunt @marmot. Nevertheless, +1 For my tikizifying my Falcon!! I wish I could give more. Could you also suggest how to make teeth barrel shaped?
– Raaja
2 days ago
3
@Raaja Trynewcommand{gear}[5]{ foreach i in {1,...,#1} { [rotate=(i-1)*360/#1] (0:#2) arc (0:#4:#2) to[out=#4+#5,in=#4+#5-150,looseness=0.7] (#4+#5:#3) arc (#4+#5:360/#1-#5:#3) to[out=#4+#5+150,in=#4+#5,looseness=0.7] (360/#1:#2) }}
for an approximation of the barrel shape.
– Max
2 days ago
2
@Max Nice to see you again! (You know what, I was messing with the falcon teeth in my update. Arghhhhh! ;-)
– marmot
2 days ago
3
For the record, the shape of gear teeth has a pretty precise mathematical definition, to ensure they grip correctly. See involute gearing on Wikipedia. The parametric representation of the involute of a circle is X (t) = r (cos t + (t − a) sin t), Y (t) = r (sin t − (t − a) cos t). Two of those curves facing each other, with a “cap,” would produce a perfect gear tooth.
– KRyan
2 days ago
|
show 9 more comments
I was always scared by falcons. They hunt us! (With to[in=...,out=...]
one can do a lot of things, and if one in
and the next out
differ by 180, there is no kink.)
documentclass[11pt]{standalone}
usepackage{tikz}
usepackage{pgfplots}% loads also tikz
pgfplotsset{compat=newest}% to avoid the pgfplots warning
usetikzlibrary{intersections, pgfplots.fillbetween}
%https://tex.stackexchange.com/questions/58702/creating-gears-in-tikz
% #1 number of teeths
% #2 radius intern
% #3 radius extern
% #4 angle from start to end of the first arc
% #5 angle to decale the second arc from the first
% Max' comment
newcommand{gear}[5]{ foreach i in {1,...,#1} { [rotate=(i-1)*360/#1] (0:#2) arc (0:#4:#2) .. controls (#4:1.1*#2) and (#4+#5/2:0.95*#3) .. (#4+#5:#3) arc (#4+#5:360/#1-#5:#3) .. controls (360/#1-#5/2:0.95*#3) and (360/#1:1.1*#2) .. (360/#1:#2) }}
colorlet{MyColorOne}{blue!60}
newcommand{lightercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!white}
}
newcommand{darkercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!black}
}
lightercolor{MyColorOne}{50}{MyColorOneLight}
darkercolor{MyColorOne}{50}{MyColorOneDark}
%https://tex.stackexchange.com/questions/255234/how-does-one-pick-control-points-to-control-b%C3%A9zier-curves-in-tikz
newcommandDrawControl[3]{
node[#2,circle,fill=#2,inner sep=2pt,label={above:$#1$},label={[black]below:{footnotesize#3}}] at #1 {}
}
%https://tex.stackexchange.com/questions/66490/drawing-a-tikz-arc-specifying-the-center/218814
tikzset{
pics/carc/.style args={#1:#2:#3}{
code={
draw[pic actions] (#1:#3) arc(#1:#2:#3);
}
}
}
begin{document}
begin{tikzpicture}
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear{10}{2}{2.8}{15}{6};
draw[name path = b, black,fill=black] (0,0) circle (1.65cm);
draw[name path = c, white] (0,0) circle (1.7cm);
tikzfillbetween[of=a and c]{MyColorOneDark};
tikzfillbetween[of=b and c]{white};
draw[black,fill=black] (0,0) circle (1.65cm);
draw[white] (0,0) circle (1.7cm);
draw[ultra thick,white,line join=bevel]
(-52:1.67) to[out=100,in=-10] (0,-0.5)
to[out=170,in=20] (-0.7,-0.55)
to[out=200,in=80,looseness=0.8] (-0.8,-0.85)
to[out=120,in=-160,looseness=1.2] (-0.2,0.5)
to[out=20,in=-170,looseness=1.2] (0.75,0.7)
to[out=-70,in=-60,looseness=1.3] (0.3,0.4);
draw[ultra thick,white]
(-0.2,0.5) to[out=45,in=180] (0.5,1) to[out=0,in=170] (32:1.68);
end{tikzpicture}
end{document}
UPDATE: Implemented Max' suggestions for the teeth of the gear and also changed the teeth of the falcon. (Those who want to object that falcons do not have teeth: here's a counter example. ;-)
Addendum: Original beak and removed things that are not used.
documentclass[11pt]{standalone}
usepackage{pgfplots}% loads also tikz
pgfplotsset{compat=newest}% to avoid the pgfplots warning
usetikzlibrary{pgfplots.fillbetween}
%https://tex.stackexchange.com/questions/58702/creating-gears-in-tikz
% #1 number of teeths
% #2 radius intern
% #3 radius extern
% #4 angle from start to end of the first arc
% #5 angle to decale the second arc from the first
% Max' comment
newcommand{gear}[5]{ foreach i in {1,...,#1} { [rotate=(i-1)*360/#1] (0:#2) arc (0:#4:#2) .. controls (#4:1.1*#2) and (#4+#5/2:0.95*#3) .. (#4+#5:#3) arc (#4+#5:360/#1-#5:#3) .. controls (360/#1-#5/2:0.95*#3) and (360/#1:1.1*#2) .. (360/#1:#2) }}
colorlet{MyColorOne}{blue!60}
newcommand{lightercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!white}
}
newcommand{darkercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!black}
}
%lightercolor{MyColorOne}{50}{MyColorOneLight}
darkercolor{MyColorOne}{50}{MyColorOneDark}
%https://tex.stackexchange.com/questions/255234/how-does-one-pick-control-points-to-control-b%C3%A9zier-curves-in-tikz
begin{document}
begin{tikzpicture}
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear{10}{2}{2.8}{15}{6};
draw[name path = b, black,fill=black] (0,0) circle (1.65cm);
draw[name path = c, white] (0,0) circle (1.7cm);
tikzfillbetween[of=a and c]{MyColorOneDark};
tikzfillbetween[of=b and c]{white};
draw[black,fill=black] (0,0) circle (1.65cm);
draw[white] (0,0) circle (1.7cm);
draw[ultra thick,white]
(-52:1.7) to[out=100,in=-10] (0,-0.5)
to[out=170,in=10] (-0.7,-0.55)
to[out=170,in=80] (-0.8,-0.85)
to[out=120,in=-160,looseness=1.2] (-0.2,0.5)
to[out=20,in=-170,looseness=1.2] (0.75,0.7)
to[out=-70,in=-60,looseness=1.3] (0.3,0.4);
% draw[ultra thick,white,line join=bevel]
% (-52:1.67) to[out=100,in=-10] (0,-0.5)
% to[out=170,in=20] (-0.7,-0.55)
% to[out=200,in=80,looseness=0.8] (-0.8,-0.85)
% to[out=120,in=-160,looseness=1.2] (-0.2,0.5)
% to[out=20,in=-170,looseness=1.2] (0.75,0.7)
% to[out=-70,in=-60,looseness=1.3] (0.3,0.4);
draw[ultra thick,white]
(-0.2,0.5) to[out=45,in=180] (0.5,1) to[out=0,in=170] (32:1.68);
end{tikzpicture}
end{document}
I was always scared by falcons. They hunt us! (With to[in=...,out=...]
one can do a lot of things, and if one in
and the next out
differ by 180, there is no kink.)
documentclass[11pt]{standalone}
usepackage{tikz}
usepackage{pgfplots}% loads also tikz
pgfplotsset{compat=newest}% to avoid the pgfplots warning
usetikzlibrary{intersections, pgfplots.fillbetween}
%https://tex.stackexchange.com/questions/58702/creating-gears-in-tikz
% #1 number of teeths
% #2 radius intern
% #3 radius extern
% #4 angle from start to end of the first arc
% #5 angle to decale the second arc from the first
% Max' comment
newcommand{gear}[5]{ foreach i in {1,...,#1} { [rotate=(i-1)*360/#1] (0:#2) arc (0:#4:#2) .. controls (#4:1.1*#2) and (#4+#5/2:0.95*#3) .. (#4+#5:#3) arc (#4+#5:360/#1-#5:#3) .. controls (360/#1-#5/2:0.95*#3) and (360/#1:1.1*#2) .. (360/#1:#2) }}
colorlet{MyColorOne}{blue!60}
newcommand{lightercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!white}
}
newcommand{darkercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!black}
}
lightercolor{MyColorOne}{50}{MyColorOneLight}
darkercolor{MyColorOne}{50}{MyColorOneDark}
%https://tex.stackexchange.com/questions/255234/how-does-one-pick-control-points-to-control-b%C3%A9zier-curves-in-tikz
newcommandDrawControl[3]{
node[#2,circle,fill=#2,inner sep=2pt,label={above:$#1$},label={[black]below:{footnotesize#3}}] at #1 {}
}
%https://tex.stackexchange.com/questions/66490/drawing-a-tikz-arc-specifying-the-center/218814
tikzset{
pics/carc/.style args={#1:#2:#3}{
code={
draw[pic actions] (#1:#3) arc(#1:#2:#3);
}
}
}
begin{document}
begin{tikzpicture}
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear{10}{2}{2.8}{15}{6};
draw[name path = b, black,fill=black] (0,0) circle (1.65cm);
draw[name path = c, white] (0,0) circle (1.7cm);
tikzfillbetween[of=a and c]{MyColorOneDark};
tikzfillbetween[of=b and c]{white};
draw[black,fill=black] (0,0) circle (1.65cm);
draw[white] (0,0) circle (1.7cm);
draw[ultra thick,white,line join=bevel]
(-52:1.67) to[out=100,in=-10] (0,-0.5)
to[out=170,in=20] (-0.7,-0.55)
to[out=200,in=80,looseness=0.8] (-0.8,-0.85)
to[out=120,in=-160,looseness=1.2] (-0.2,0.5)
to[out=20,in=-170,looseness=1.2] (0.75,0.7)
to[out=-70,in=-60,looseness=1.3] (0.3,0.4);
draw[ultra thick,white]
(-0.2,0.5) to[out=45,in=180] (0.5,1) to[out=0,in=170] (32:1.68);
end{tikzpicture}
end{document}
UPDATE: Implemented Max' suggestions for the teeth of the gear and also changed the teeth of the falcon. (Those who want to object that falcons do not have teeth: here's a counter example. ;-)
Addendum: Original beak and removed things that are not used.
documentclass[11pt]{standalone}
usepackage{pgfplots}% loads also tikz
pgfplotsset{compat=newest}% to avoid the pgfplots warning
usetikzlibrary{pgfplots.fillbetween}
%https://tex.stackexchange.com/questions/58702/creating-gears-in-tikz
% #1 number of teeths
% #2 radius intern
% #3 radius extern
% #4 angle from start to end of the first arc
% #5 angle to decale the second arc from the first
% Max' comment
newcommand{gear}[5]{ foreach i in {1,...,#1} { [rotate=(i-1)*360/#1] (0:#2) arc (0:#4:#2) .. controls (#4:1.1*#2) and (#4+#5/2:0.95*#3) .. (#4+#5:#3) arc (#4+#5:360/#1-#5:#3) .. controls (360/#1-#5/2:0.95*#3) and (360/#1:1.1*#2) .. (360/#1:#2) }}
colorlet{MyColorOne}{blue!60}
newcommand{lightercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!white}
}
newcommand{darkercolor}[3]{% Reference Color, Percentage, New Color Name
colorlet{#3}{#1!#2!black}
}
%lightercolor{MyColorOne}{50}{MyColorOneLight}
darkercolor{MyColorOne}{50}{MyColorOneDark}
%https://tex.stackexchange.com/questions/255234/how-does-one-pick-control-points-to-control-b%C3%A9zier-curves-in-tikz
begin{document}
begin{tikzpicture}
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear{10}{2}{2.8}{15}{6};
draw[name path = b, black,fill=black] (0,0) circle (1.65cm);
draw[name path = c, white] (0,0) circle (1.7cm);
tikzfillbetween[of=a and c]{MyColorOneDark};
tikzfillbetween[of=b and c]{white};
draw[black,fill=black] (0,0) circle (1.65cm);
draw[white] (0,0) circle (1.7cm);
draw[ultra thick,white]
(-52:1.7) to[out=100,in=-10] (0,-0.5)
to[out=170,in=10] (-0.7,-0.55)
to[out=170,in=80] (-0.8,-0.85)
to[out=120,in=-160,looseness=1.2] (-0.2,0.5)
to[out=20,in=-170,looseness=1.2] (0.75,0.7)
to[out=-70,in=-60,looseness=1.3] (0.3,0.4);
% draw[ultra thick,white,line join=bevel]
% (-52:1.67) to[out=100,in=-10] (0,-0.5)
% to[out=170,in=20] (-0.7,-0.55)
% to[out=200,in=80,looseness=0.8] (-0.8,-0.85)
% to[out=120,in=-160,looseness=1.2] (-0.2,0.5)
% to[out=20,in=-170,looseness=1.2] (0.75,0.7)
% to[out=-70,in=-60,looseness=1.3] (0.3,0.4);
draw[ultra thick,white]
(-0.2,0.5) to[out=45,in=180] (0.5,1) to[out=0,in=170] (32:1.68);
end{tikzpicture}
end{document}
edited 2 days ago
answered 2 days ago
marmotmarmot
90.7k4104195
90.7k4104195
3
You could add some string around the bill so the falcon can not hunt marmots
– samcarter
2 days ago
1
Definitely, my falcon will hunt @marmot. Nevertheless, +1 For my tikizifying my Falcon!! I wish I could give more. Could you also suggest how to make teeth barrel shaped?
– Raaja
2 days ago
3
@Raaja Trynewcommand{gear}[5]{ foreach i in {1,...,#1} { [rotate=(i-1)*360/#1] (0:#2) arc (0:#4:#2) to[out=#4+#5,in=#4+#5-150,looseness=0.7] (#4+#5:#3) arc (#4+#5:360/#1-#5:#3) to[out=#4+#5+150,in=#4+#5,looseness=0.7] (360/#1:#2) }}
for an approximation of the barrel shape.
– Max
2 days ago
2
@Max Nice to see you again! (You know what, I was messing with the falcon teeth in my update. Arghhhhh! ;-)
– marmot
2 days ago
3
For the record, the shape of gear teeth has a pretty precise mathematical definition, to ensure they grip correctly. See involute gearing on Wikipedia. The parametric representation of the involute of a circle is X (t) = r (cos t + (t − a) sin t), Y (t) = r (sin t − (t − a) cos t). Two of those curves facing each other, with a “cap,” would produce a perfect gear tooth.
– KRyan
2 days ago
|
show 9 more comments
3
You could add some string around the bill so the falcon can not hunt marmots
– samcarter
2 days ago
1
Definitely, my falcon will hunt @marmot. Nevertheless, +1 For my tikizifying my Falcon!! I wish I could give more. Could you also suggest how to make teeth barrel shaped?
– Raaja
2 days ago
3
@Raaja Trynewcommand{gear}[5]{ foreach i in {1,...,#1} { [rotate=(i-1)*360/#1] (0:#2) arc (0:#4:#2) to[out=#4+#5,in=#4+#5-150,looseness=0.7] (#4+#5:#3) arc (#4+#5:360/#1-#5:#3) to[out=#4+#5+150,in=#4+#5,looseness=0.7] (360/#1:#2) }}
for an approximation of the barrel shape.
– Max
2 days ago
2
@Max Nice to see you again! (You know what, I was messing with the falcon teeth in my update. Arghhhhh! ;-)
– marmot
2 days ago
3
For the record, the shape of gear teeth has a pretty precise mathematical definition, to ensure they grip correctly. See involute gearing on Wikipedia. The parametric representation of the involute of a circle is X (t) = r (cos t + (t − a) sin t), Y (t) = r (sin t − (t − a) cos t). Two of those curves facing each other, with a “cap,” would produce a perfect gear tooth.
– KRyan
2 days ago
3
3
You could add some string around the bill so the falcon can not hunt marmots
– samcarter
2 days ago
You could add some string around the bill so the falcon can not hunt marmots
– samcarter
2 days ago
1
1
Definitely, my falcon will hunt @marmot. Nevertheless, +1 For my tikizifying my Falcon!! I wish I could give more. Could you also suggest how to make teeth barrel shaped?
– Raaja
2 days ago
Definitely, my falcon will hunt @marmot. Nevertheless, +1 For my tikizifying my Falcon!! I wish I could give more. Could you also suggest how to make teeth barrel shaped?
– Raaja
2 days ago
3
3
@Raaja Try
newcommand{gear}[5]{ foreach i in {1,...,#1} { [rotate=(i-1)*360/#1] (0:#2) arc (0:#4:#2) to[out=#4+#5,in=#4+#5-150,looseness=0.7] (#4+#5:#3) arc (#4+#5:360/#1-#5:#3) to[out=#4+#5+150,in=#4+#5,looseness=0.7] (360/#1:#2) }}
for an approximation of the barrel shape.– Max
2 days ago
@Raaja Try
newcommand{gear}[5]{ foreach i in {1,...,#1} { [rotate=(i-1)*360/#1] (0:#2) arc (0:#4:#2) to[out=#4+#5,in=#4+#5-150,looseness=0.7] (#4+#5:#3) arc (#4+#5:360/#1-#5:#3) to[out=#4+#5+150,in=#4+#5,looseness=0.7] (360/#1:#2) }}
for an approximation of the barrel shape.– Max
2 days ago
2
2
@Max Nice to see you again! (You know what, I was messing with the falcon teeth in my update. Arghhhhh! ;-)
– marmot
2 days ago
@Max Nice to see you again! (You know what, I was messing with the falcon teeth in my update. Arghhhhh! ;-)
– marmot
2 days ago
3
3
For the record, the shape of gear teeth has a pretty precise mathematical definition, to ensure they grip correctly. See involute gearing on Wikipedia. The parametric representation of the involute of a circle is X (t) = r (cos t + (t − a) sin t), Y (t) = r (sin t − (t − a) cos t). Two of those curves facing each other, with a “cap,” would produce a perfect gear tooth.
– KRyan
2 days ago
For the record, the shape of gear teeth has a pretty precise mathematical definition, to ensure they grip correctly. See involute gearing on Wikipedia. The parametric representation of the involute of a circle is X (t) = r (cos t + (t − a) sin t), Y (t) = r (sin t − (t − a) cos t). Two of those curves facing each other, with a “cap,” would produce a perfect gear tooth.
– KRyan
2 days ago
|
show 9 more comments
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f469359%2fcreating-a-falcons-logo%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
3
The colour seems to be
#253F83
:)– Phelype Oleinik
2 days ago
3
I Think It's because you are using the
darkercolor
command. Trydefinecolor{MyColorOneDark}{HTML}{253F83}
without thedarkercolor
thingy. To get the color I usedgpick
, but are lots of other colour pickers as well.– Phelype Oleinik
2 days ago
2
@MartinScharrer the teeth of a gear should be involute (be curved) see khkgears.net/new/gear_knowledge/abcs_of_gears-b/…
– KJO
2 days ago
2
The original gear seems to have 10 teeth, you redraw only 9....
– marmot
2 days ago
2
@marmot Probably to avoid copyright problems :)
– samcarter
2 days ago