Creating a Falcon's logo

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












13















I have been trying to trying to replicate this logo for my team (not to mention in LaTeX ofcourse:-)):



enter image description here



So where I am now:



documentclass[11pt]standalone
usepackagetikz
usepackagepgfplots% loads also tikz
pgfplotssetcompat=newest% to avoid the pgfplots warning
usetikzlibraryintersections, 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

newcommandgear[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
colorletMyColorOneblue!60

newcommandlightercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!white


newcommanddarkercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!black



lightercolorMyColorOne50MyColorOneLight
darkercolorMyColorOne50MyColorOneDark
%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);



begindocument
begintikzpicture
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear922.8156;
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)blue1DrawControl(5,2)blue2;
draw[ultra thick,white]
(0,0.58)
.. controls (0.3,1) ..
(1.3,1.05);
draw[ultra thick, white] (0.535,0.66) piccarc=20:-150:0.2;
endtikzpicture
enddocument


which gives me:



enter image description here



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]



  1. I am not able to replicate the barrel shape in the teeth region of my figure (compared to original).


  2. 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.










share|improve this question



















  • 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. Try definecolorMyColorOneDarkHTML253F83 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





    @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
















13















I have been trying to trying to replicate this logo for my team (not to mention in LaTeX ofcourse:-)):



enter image description here



So where I am now:



documentclass[11pt]standalone
usepackagetikz
usepackagepgfplots% loads also tikz
pgfplotssetcompat=newest% to avoid the pgfplots warning
usetikzlibraryintersections, 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

newcommandgear[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
colorletMyColorOneblue!60

newcommandlightercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!white


newcommanddarkercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!black



lightercolorMyColorOne50MyColorOneLight
darkercolorMyColorOne50MyColorOneDark
%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);



begindocument
begintikzpicture
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear922.8156;
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)blue1DrawControl(5,2)blue2;
draw[ultra thick,white]
(0,0.58)
.. controls (0.3,1) ..
(1.3,1.05);
draw[ultra thick, white] (0.535,0.66) piccarc=20:-150:0.2;
endtikzpicture
enddocument


which gives me:



enter image description here



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]



  1. I am not able to replicate the barrel shape in the teeth region of my figure (compared to original).


  2. 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.










share|improve this question



















  • 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. Try definecolorMyColorOneDarkHTML253F83 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





    @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














13












13








13


0






I have been trying to trying to replicate this logo for my team (not to mention in LaTeX ofcourse:-)):



enter image description here



So where I am now:



documentclass[11pt]standalone
usepackagetikz
usepackagepgfplots% loads also tikz
pgfplotssetcompat=newest% to avoid the pgfplots warning
usetikzlibraryintersections, 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

newcommandgear[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
colorletMyColorOneblue!60

newcommandlightercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!white


newcommanddarkercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!black



lightercolorMyColorOne50MyColorOneLight
darkercolorMyColorOne50MyColorOneDark
%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);



begindocument
begintikzpicture
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear922.8156;
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)blue1DrawControl(5,2)blue2;
draw[ultra thick,white]
(0,0.58)
.. controls (0.3,1) ..
(1.3,1.05);
draw[ultra thick, white] (0.535,0.66) piccarc=20:-150:0.2;
endtikzpicture
enddocument


which gives me:



enter image description here



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]



  1. I am not able to replicate the barrel shape in the teeth region of my figure (compared to original).


  2. 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.










share|improve this question
















I have been trying to trying to replicate this logo for my team (not to mention in LaTeX ofcourse:-)):



enter image description here



So where I am now:



documentclass[11pt]standalone
usepackagetikz
usepackagepgfplots% loads also tikz
pgfplotssetcompat=newest% to avoid the pgfplots warning
usetikzlibraryintersections, 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

newcommandgear[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
colorletMyColorOneblue!60

newcommandlightercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!white


newcommanddarkercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!black



lightercolorMyColorOne50MyColorOneLight
darkercolorMyColorOne50MyColorOneDark
%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);



begindocument
begintikzpicture
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear922.8156;
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)blue1DrawControl(5,2)blue2;
draw[ultra thick,white]
(0,0.58)
.. controls (0.3,1) ..
(1.3,1.05);
draw[ultra thick, white] (0.535,0.66) piccarc=20:-150:0.2;
endtikzpicture
enddocument


which gives me:



enter image description here



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]



  1. I am not able to replicate the barrel shape in the teeth region of my figure (compared to original).


  2. 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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 9 at 14:43







Raaja

















asked Jan 9 at 13:59









RaajaRaaja

2,9002933




2,9002933







  • 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. Try definecolorMyColorOneDarkHTML253F83 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





    @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





    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. Try definecolorMyColorOneDarkHTML253F83 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





    @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 definecolorMyColorOneDarkHTML253F83 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 definecolorMyColorOneDarkHTML253F83 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











1 Answer
1






active

oldest

votes


















15














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
usepackagetikz
usepackagepgfplots% loads also tikz
pgfplotssetcompat=newest% to avoid the pgfplots warning
usetikzlibraryintersections, 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
newcommandgear[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)

colorletMyColorOneblue!60

newcommandlightercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!white


newcommanddarkercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!black



lightercolorMyColorOne50MyColorOneLight
darkercolorMyColorOne50MyColorOneDark
%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);



begindocument
begintikzpicture
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear1022.8156;
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);
endtikzpicture
enddocument


enter image description here



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
usepackagepgfplots% loads also tikz
pgfplotssetcompat=newest% to avoid the pgfplots warning
usetikzlibrarypgfplots.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
newcommandgear[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)

colorletMyColorOneblue!60

newcommandlightercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!white


newcommanddarkercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!black



%lightercolorMyColorOne50MyColorOneLight
darkercolorMyColorOne50MyColorOneDark
%https://tex.stackexchange.com/questions/255234/how-does-one-pick-control-points-to-control-b%C3%A9zier-curves-in-tikz
begindocument
begintikzpicture
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear1022.8156;
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);
endtikzpicture
enddocument


enter image description here






share|improve this answer




















  • 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 Try newcommandgear[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 + (ta) sin t), Y (t) = r (sin t − (ta) cos t). Two of those curves facing each other, with a “cap,” would produce a perfect gear tooth.

    – KRyan
    Jan 9 at 19:16











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
);



);













draft saved

draft discarded


















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









15














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
usepackagetikz
usepackagepgfplots% loads also tikz
pgfplotssetcompat=newest% to avoid the pgfplots warning
usetikzlibraryintersections, 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
newcommandgear[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)

colorletMyColorOneblue!60

newcommandlightercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!white


newcommanddarkercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!black



lightercolorMyColorOne50MyColorOneLight
darkercolorMyColorOne50MyColorOneDark
%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);



begindocument
begintikzpicture
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear1022.8156;
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);
endtikzpicture
enddocument


enter image description here



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
usepackagepgfplots% loads also tikz
pgfplotssetcompat=newest% to avoid the pgfplots warning
usetikzlibrarypgfplots.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
newcommandgear[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)

colorletMyColorOneblue!60

newcommandlightercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!white


newcommanddarkercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!black



%lightercolorMyColorOne50MyColorOneLight
darkercolorMyColorOne50MyColorOneDark
%https://tex.stackexchange.com/questions/255234/how-does-one-pick-control-points-to-control-b%C3%A9zier-curves-in-tikz
begindocument
begintikzpicture
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear1022.8156;
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);
endtikzpicture
enddocument


enter image description here






share|improve this answer




















  • 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 Try newcommandgear[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 + (ta) sin t), Y (t) = r (sin t − (ta) cos t). Two of those curves facing each other, with a “cap,” would produce a perfect gear tooth.

    – KRyan
    Jan 9 at 19:16
















15














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
usepackagetikz
usepackagepgfplots% loads also tikz
pgfplotssetcompat=newest% to avoid the pgfplots warning
usetikzlibraryintersections, 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
newcommandgear[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)

colorletMyColorOneblue!60

newcommandlightercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!white


newcommanddarkercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!black



lightercolorMyColorOne50MyColorOneLight
darkercolorMyColorOne50MyColorOneDark
%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);



begindocument
begintikzpicture
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear1022.8156;
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);
endtikzpicture
enddocument


enter image description here



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
usepackagepgfplots% loads also tikz
pgfplotssetcompat=newest% to avoid the pgfplots warning
usetikzlibrarypgfplots.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
newcommandgear[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)

colorletMyColorOneblue!60

newcommandlightercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!white


newcommanddarkercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!black



%lightercolorMyColorOne50MyColorOneLight
darkercolorMyColorOne50MyColorOneDark
%https://tex.stackexchange.com/questions/255234/how-does-one-pick-control-points-to-control-b%C3%A9zier-curves-in-tikz
begindocument
begintikzpicture
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear1022.8156;
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);
endtikzpicture
enddocument


enter image description here






share|improve this answer




















  • 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 Try newcommandgear[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 + (ta) sin t), Y (t) = r (sin t − (ta) cos t). Two of those curves facing each other, with a “cap,” would produce a perfect gear tooth.

    – KRyan
    Jan 9 at 19:16














15












15








15







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
usepackagetikz
usepackagepgfplots% loads also tikz
pgfplotssetcompat=newest% to avoid the pgfplots warning
usetikzlibraryintersections, 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
newcommandgear[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)

colorletMyColorOneblue!60

newcommandlightercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!white


newcommanddarkercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!black



lightercolorMyColorOne50MyColorOneLight
darkercolorMyColorOne50MyColorOneDark
%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);



begindocument
begintikzpicture
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear1022.8156;
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);
endtikzpicture
enddocument


enter image description here



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
usepackagepgfplots% loads also tikz
pgfplotssetcompat=newest% to avoid the pgfplots warning
usetikzlibrarypgfplots.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
newcommandgear[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)

colorletMyColorOneblue!60

newcommandlightercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!white


newcommanddarkercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!black



%lightercolorMyColorOne50MyColorOneLight
darkercolorMyColorOne50MyColorOneDark
%https://tex.stackexchange.com/questions/255234/how-does-one-pick-control-points-to-control-b%C3%A9zier-curves-in-tikz
begindocument
begintikzpicture
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear1022.8156;
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);
endtikzpicture
enddocument


enter image description here






share|improve this answer















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
usepackagetikz
usepackagepgfplots% loads also tikz
pgfplotssetcompat=newest% to avoid the pgfplots warning
usetikzlibraryintersections, 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
newcommandgear[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)

colorletMyColorOneblue!60

newcommandlightercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!white


newcommanddarkercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!black



lightercolorMyColorOne50MyColorOneLight
darkercolorMyColorOne50MyColorOneDark
%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);



begindocument
begintikzpicture
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear1022.8156;
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);
endtikzpicture
enddocument


enter image description here



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
usepackagepgfplots% loads also tikz
pgfplotssetcompat=newest% to avoid the pgfplots warning
usetikzlibrarypgfplots.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
newcommandgear[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)

colorletMyColorOneblue!60

newcommandlightercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!white


newcommanddarkercolor[3]% Reference Color, Percentage, New Color Name
colorlet#3#1!#2!black



%lightercolorMyColorOne50MyColorOneLight
darkercolorMyColorOne50MyColorOneDark
%https://tex.stackexchange.com/questions/255234/how-does-one-pick-control-points-to-control-b%C3%A9zier-curves-in-tikz
begindocument
begintikzpicture
%draw[help lines, step=.1] (-3,-3) grid (3,3);
draw[help lines] (-3,-3) grid (3,3);
draw[name path = a,thick] gear1022.8156;
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);
endtikzpicture
enddocument


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 9 at 16:33

























answered Jan 9 at 15:08









marmotmarmot

94k4109208




94k4109208







  • 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 Try newcommandgear[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 + (ta) sin t), Y (t) = r (sin t − (ta) 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





    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 Try newcommandgear[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 + (ta) sin t), Y (t) = r (sin t − (ta) 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 newcommandgear[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 newcommandgear[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 + (ta) sin t), Y (t) = r (sin t − (ta) 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 + (ta) sin t), Y (t) = r (sin t − (ta) cos t). Two of those curves facing each other, with a “cap,” would produce a perfect gear tooth.

– KRyan
Jan 9 at 19:16


















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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






Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay