Skip to content

Instantly share code, notes, and snippets.

@darknoon
Created August 5, 2025 02:18
Show Gist options
  • Save darknoon/b2771b7bb4957e6f3638587d4df8c7da to your computer and use it in GitHub Desktop.
Save darknoon/b2771b7bb4957e6f3638587d4df8c7da to your computer and use it in GitHub Desktop.
Draw a picture of a mongoose riding a bicycle in TikZ
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[y=1, x=1,every path/.style={draw=bike,line cap=round,line join=round}]
\definecolor{fur}{HTML}{A74B00}
\definecolor{snoot}{HTML}{4F2200}
\definecolor{bike}{HTML}{555555}
\fill[white] (0,0) rectangle (1024,1024);
\path[line width=17]
% pedal
(469,353)--(486,353)(504,353)--(486,353)(486,353)--(476,294)
% frame
(429,295)--(256,295)--(383,515)--(665,516)--(676,491)--(515,325)
(476,292)
% chain ring
circle(44)
% fork
(770,295).. controls(746,330)and(661,526)..(636,580)--(684,611).. controls(730,611)and(766,602)..(766,569).. controls(766,537)and(731,525)..(702,525);
% wheels
\path[line width=20] (256, 295) circle (159) ++(514,0) circle (159);
% fur
\fill[fur] (511, 803).. controls (590, 842) and (593, 908) .. (658, 908).. controls (737, 908) and (785, 858) .. (824, 838).. controls (829, 834) and (829, 828) .. (830, 822) -- (834, 812).. controls (821, 796) and (785, 778) .. (723, 773).. controls (645, 766) and (622, 703) .. (608, 677).. controls (629, 660) and (653, 630) .. (707, 637).. controls (734, 640) and (747, 641) .. (750, 628).. controls (752, 616) and (730, 604) .. (698, 599).. controls (629, 589) and (577, 609) .. (558, 625).. controls (552, 619) and (511, 582) .. (489, 566).. controls (504, 540) and (505, 510) .. (485, 475).. controls (450, 413) and (458, 414) .. (490, 387).. controls (513, 368) and (504, 362) .. (500, 358).. controls (494, 352) and (481, 347) .. (462, 359).. controls (431, 379) and (401, 376) .. (404, 425).. controls (407, 493) and (364, 464) .. (327, 502) -- (297, 499).. controls (222, 499) and (173, 560) .. (176, 625).. controls (179, 702) and (177, 725) .. (161, 750).. controls (151, 766) and (143, 767) .. (143, 775).. controls (143, 779) and (146, 784) .. (155, 784).. controls (178, 784) and (223, 746) .. (223, 669).. controls (223, 592) and (255, 554) .. (308, 554).. controls (304, 566) and (304, 578) .. (304, 591).. controls (309, 736) and (458, 778) .. (511, 803);
% ears
\draw[snoot,line width=17] (621, 816).. controls (536, 855) and (608, 929) .. (648, 871);
% eye
\fill[snoot] (731, 848) circle (16);
% nose
\fill[snoot] (844, 833).. controls (841, 840) and (833, 844) .. (818, 841).. controls (816, 828) and (815, 819) .. (833, 810).. controls (843, 815) and (848, 826) .. (844, 833) -- cycle;
\end{tikzpicture}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment