TikZ drawing of a red tractor in 3d
- User
TikZ drawing of a red tractor in 3d
Assistant
\documentclass{standalone} \usepackage{tikz} \usepackage{tikz-3dplot} \usetikzlibrary{3d} \begin{document} \tdplotsetmaincoords{70}{110} \begin{tikzpicture}[tdplot_main_coords, scale=0.8] % Define colors \colorlet{tractorred}{red!80!black} \colorlet{wheelcolor}{black!80} \colorlet{metalcolor}{gray!80} % Main body (chassis) \filldraw[tractorred, opacity=0.9] (0,0,0.8) -- (4,0,0.8) -- (4,2,0.8) -- (0,2,0.8) -- cycle; % Engine hood \filldraw[tractorred, opacity=0.9] (3,0,0.8) -- (5,0,1.2) -- (5,2,1.2) -- (3,2,0.8) -- cycle; \filldraw[tractorred, opacity=0.9] (5,0,1.2) -- (5,2,1.2) -- (5,2,2.2) -- (5,0,2.2) -- cycle; % Cab \filldraw[tractorred, opacity=0.85] (0,0,0.8) -- (0,0,2.5) -- (0,2,2.5) -- (0,2,0.8) -- cycle; \filldraw[tractorred, opacity=0.95] (0,0,2.5) -- (2,0,2.5) -- (2,2,2.5) -- (0,2,2.5) -- cycle; \filldraw[tractorred, opacity=0.8] (0,2,0.8) -- (0,2,2.5) -- (2,2,2.5) -- (3,2,0.8) -- cycle; \filldraw[tractorred, opacity=0.75] (0,0,0.8) -- (0,0,2.5) -- (2,0,2.5) -- (3,0,0.8) -- cycle; % Windows (transparent) \filldraw[blue!30, opacity=0.4] (0.1,0.1,1.0) -- (0.1,0.1,2.4) -- (0.1,1.9,2.4) -- (0.1,1.9,1.0) -- cycle; \filldraw[blue!30, opacity=0.4] (0.1,0.1,2.4) -- (1.9,0.1,2.4) -- (1.9,1.9,2.4) -- (0.1,1.9,2.4) -- cycle; % Front large wheels \foreach \i in {0,2} { \shade[ball color=wheelcolor] (4.2,\i,0.6) circle (0.8); \draw[metalcolor] (4.2,\i,0.6) circle (0.3); } % Rear large wheels \foreach \i in {0,2} { \shade[ball color=wheelcolor] (1,\i,0.6) circle (1); \draw[metalcolor] (1,\i,0.6) circle (0.4); % Wheel treads (simplified) \foreach \j in {0,30,...,330} { \draw[thick, wheelcolor] (1,\i,0.6) -- ++(\j:1); } } % Exhaust pipe \filldraw[metalcolor] (4.8,1.8,2.2) -- (4.8,1.8,3.0) -- (5.0,1.8,3.0) -- (5.0,1.8,2.2) -- cycle; % Steering wheel suggestion \draw[thick, black] (0.5,1,1.8) circle (0.2); \draw[thick, black] (0.5,1,1.8) -- (0.5,1,1.6); \draw[thick, black] (0.5,1,1.8) -- (0.3,1,1.8); \draw[thick, black] (0.5,1,1.8) -- (0.7,1,1.8); % Headlights \filldraw[yellow!80!white] (5.1,0.4,1.6) circle (0.1); \filldraw[yellow!80!white] (5.1,1.6,1.6) circle (0.1); % Tractor hitch at the back \filldraw[metalcolor] (-0.2,0.8,0.7) -- (-0.2,1.2,0.7) -- (-0.5,1.2,0.7) -- (-0.5,0.8,0.7) -- cycle; \filldraw[metalcolor] (-0.5,0.8,0.7) -- (-0.5,0.8,0.9) -- (-0.5,1.2,0.9) -- (-0.5,1.2,0.7) -- cycle; \end{tikzpicture} \end{document}Would you like me to explain or break down this code?
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
qwen-max-2025-01-25Compare side by side →
claude-sonnet-4-20250514Compare side by side →
qwen3-235b-a22bCompare side by side →
gemini-2.5-pro-preview-05-06Compare side by side →
claude-3-7-sonnet-20250219-thinking-32kCompare side by side →
claude-sonnet-4-20250514Compare side by side →
mistral-medium-2505Compare side by side →
command-a-03-2025Compare side by side →
qwen-max-2025-01-25Compare side by side →
claude-sonnet-4-20250514Compare side by side →
gemini-2.5-proCompare side by side →