Draw a unicorn in TikZ
Rate quality
Private research annotation
Sign in to add a private research label or note.
- User
Draw a unicorn in TikZ
- Assistant
Here's an example of how you can draw a unicorn using TikZ in LaTeX:
latex\documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} % Body \fill[gray!20] (0,0) .. controls (1,1) and (2,1) .. (3,0) -- (2,-1) .. controls (1,-1) and (0.5,-0.5) .. (0,0); % Legs \fill[gray!20] (0.5,-0.5) -- (0.5,-2) -- (1,-2) -- (1,-0.5) -- cycle; \fill[gray!20] (2,-1) -- (2,-2) -- (2.5,-2) -- (2.5,-1) -- cycle; % Head \fill[gray!20] (3,0) .. controls (3.5,0.5) and (4,0.5) .. (4.5,0) .. controls (4,0) and (3.5,-0.5) .. (3,0); % Ears \fill[gray!20] (3.8,0.3) -- (4,0.8) -- (4.2,0.3) -- cycle; % Horn \fill[yellow!50] (4,0.5) -- (4.5,1.5) -- (4.2,0.5) -- cycle; % Eye \fill[black] (3.8,0.1) circle (0.1); % Mane \fill[gray!50] (3.2,0.2) .. controls (3.5,0.5) and (4,0.5) .. (4.3,0.2) .. controls (4,0.2) and (3.5,0) .. (3.2,0.2); % Tail \fill[gray!50] (0.2,-0.2) .. controls (0,-1) and (-0.5,-1.5) .. (-0.5,-2) .. controls (-0.5,-1.5) and (0,-1) .. (0.2,-0.2); \end{tikzpicture} \end{document}This code will generate a simple unicorn illustration using TikZ. The unicorn is created using various geometric shapes and curves. You can customize the colors, sizes, and positions of the elements to suit your preferences.
To compile this code, make sure you have a LaTeX distribution installed on your system that includes the
tikzpackage. Save the code in a.texfile and compile it using your preferred LaTeX compiler (e.g.,pdflatex).Please note that this is a basic example, and you can further enhance and refine the illustration by adding more details, shading, or other decorative elements using TikZ commands and options.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.