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
Jan 9 at 14:04
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
Jan 9 at 14:11
2
@MartinScharrer the teeth of a gear should be involute (be curved) see khkgears.net/new/gear_knowledge/abcs_of_gears-b/…
– KJO
Jan 9 at 14:43
2
The original gear seems to have 10 teeth, you redraw only 9....
– marmot
Jan 9 at 14:47
2
@marmot Probably to avoid copyright problems :)
– samcarter
Jan 9 at 14:48
|
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 Jan 9 at 14:43
Raaja
asked Jan 9 at 13:59
RaajaRaaja
5,30421644
5,30421644
3
The colour seems to be#253F83
:)
– Phelype Oleinik
Jan 9 at 14:04
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
Jan 9 at 14:11
2
@MartinScharrer the teeth of a gear should be involute (be curved) see khkgears.net/new/gear_knowledge/abcs_of_gears-b/…
– KJO
Jan 9 at 14:43
2
The original gear seems to have 10 teeth, you redraw only 9....
– marmot
Jan 9 at 14:47
2
@marmot Probably to avoid copyright problems :)
– samcarter
Jan 9 at 14:48
|
show 11 more comments
3
The colour seems to be#253F83
:)
– Phelype Oleinik
Jan 9 at 14:04
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
Jan 9 at 14:11
2
@MartinScharrer the teeth of a gear should be involute (be curved) see khkgears.net/new/gear_knowledge/abcs_of_gears-b/…
– KJO
Jan 9 at 14:43
2
The original gear seems to have 10 teeth, you redraw only 9....
– marmot
Jan 9 at 14:47
2
@marmot Probably to avoid copyright problems :)
– samcarter
Jan 9 at 14:48
3
3
The colour seems to be
#253F83
:)– Phelype Oleinik
Jan 9 at 14:04
The colour seems to be
#253F83
:)– Phelype Oleinik
Jan 9 at 14:04
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
Jan 9 at 14:11
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
Jan 9 at 14:11
2
2
@MartinScharrer the teeth of a gear should be involute (be curved) see khkgears.net/new/gear_knowledge/abcs_of_gears-b/…
– KJO
Jan 9 at 14:43
@MartinScharrer the teeth of a gear should be involute (be curved) see khkgears.net/new/gear_knowledge/abcs_of_gears-b/…
– KJO
Jan 9 at 14:43
2
2
The original gear seems to have 10 teeth, you redraw only 9....
– marmot
Jan 9 at 14:47
The original gear seems to have 10 teeth, you redraw only 9....
– marmot
Jan 9 at 14:47
2
2
@marmot Probably to avoid copyright problems :)
– samcarter
Jan 9 at 14:48
@marmot Probably to avoid copyright problems :)
– samcarter
Jan 9 at 14:48
|
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
Jan 9 at 15:11
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
Jan 9 at 15:12
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
Jan 9 at 15:26
2
@Max Nice to see you again! (You know what, I was messing with the falcon teeth in my update. Arghhhhh! ;-)
– marmot
Jan 9 at 15:29
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
Jan 9 at 19:16
|
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
Jan 9 at 15:11
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
Jan 9 at 15:12
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
Jan 9 at 15:26
2
@Max Nice to see you again! (You know what, I was messing with the falcon teeth in my update. Arghhhhh! ;-)
– marmot
Jan 9 at 15:29
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
Jan 9 at 19:16
|
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
Jan 9 at 15:11
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
Jan 9 at 15:12
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
Jan 9 at 15:26
2
@Max Nice to see you again! (You know what, I was messing with the falcon teeth in my update. Arghhhhh! ;-)
– marmot
Jan 9 at 15:29
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
Jan 9 at 19:16
|
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 Jan 9 at 16:33
answered Jan 9 at 15:08
marmotmarmot
114k5145276
114k5145276
3
You could add some string around the bill so the falcon can not hunt marmots
– samcarter
Jan 9 at 15:11
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
Jan 9 at 15:12
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
Jan 9 at 15:26
2
@Max Nice to see you again! (You know what, I was messing with the falcon teeth in my update. Arghhhhh! ;-)
– marmot
Jan 9 at 15:29
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
Jan 9 at 19:16
|
show 9 more comments
3
You could add some string around the bill so the falcon can not hunt marmots
– samcarter
Jan 9 at 15:11
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
Jan 9 at 15:12
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
Jan 9 at 15:26
2
@Max Nice to see you again! (You know what, I was messing with the falcon teeth in my update. Arghhhhh! ;-)
– marmot
Jan 9 at 15:29
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
Jan 9 at 19:16
3
3
You could add some string around the bill so the falcon can not hunt marmots
– samcarter
Jan 9 at 15:11
You could add some string around the bill so the falcon can not hunt marmots
– samcarter
Jan 9 at 15:11
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
Jan 9 at 15:12
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
Jan 9 at 15:12
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
Jan 9 at 15:26
@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
Jan 9 at 15:26
2
2
@Max Nice to see you again! (You know what, I was messing with the falcon teeth in my update. Arghhhhh! ;-)
– marmot
Jan 9 at 15:29
@Max Nice to see you again! (You know what, I was messing with the falcon teeth in my update. Arghhhhh! ;-)
– marmot
Jan 9 at 15:29
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
Jan 9 at 19:16
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
Jan 9 at 19:16
|
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
Jan 9 at 14:04
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
Jan 9 at 14:11
2
@MartinScharrer the teeth of a gear should be involute (be curved) see khkgears.net/new/gear_knowledge/abcs_of_gears-b/…
– KJO
Jan 9 at 14:43
2
The original gear seems to have 10 teeth, you redraw only 9....
– marmot
Jan 9 at 14:47
2
@marmot Probably to avoid copyright problems :)
– samcarter
Jan 9 at 14:48