Here's a TikZ drawing of a red tractor in 3D:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{3d}
\begin{document}
\begin{tikzpicture}[x={(1cm,0cm)}, y={(0.3cm,0.5cm)}, z={(0cm,1cm)}]
% Define colors
\definecolor{tractorred}{RGB}{180,20,20}
\definecolor{darkred}{RGB}{120,15,15}
\definecolor{wheelgray}{RGB}{60,60,60}
\definecolor{rimsilver}{RGB}{180,180,180}
% Main body (engine compartment)
\fill[tractorred] (0,0,0) -- (3,0,0) -- (3,2,0) -- (0,2,0) -- cycle;
\fill[darkred] (3,0,0) -- (3,2,0) -- (3,2,1.5) -- (3,0,1.5) -- cycle;
\fill[tractorred] (0,2,0) -- (3,2,0) -- (3,2,1.5) -- (0,2,1.5) -- cycle;
\fill[tractorred] (0,0,0) -- (0,2,0) -- (0,2,1.5) -- (0,0,1.5) -- cycle;
\fill[tractorred] (0,0,1.5) -- (3,0,1.5) -- (3,2,1.5) -- (0,2,1.5) -- cycle;
% Cabin
\fill[tractorred] (1.5,0.5,1.5) -- (2.5,0.5,1.5) -- (2.5,1.5,1.5) -- (1.5,1.5,1.5) -- cycle;
\fill[darkred] (2.5,0.5,1.5) -- (2.5,1.5,1.5) -- (2.5,1.5,2.5) -- (2.5,0.5,2.5) -- cycle;
\fill[tractorred] (1.5,1.5,1.5) -- (2.5,1.5,1.5) -- (2.5,1.5,2.5) -- (1.5,1.5,2.5) -- cycle;
\fill[tractorred] (1.5,0.5,1.5) -- (1.5,1.5,1.5) -- (1.5,1.5,2.5) -- (1.5,0.5,2.5) -- cycle;
\fill[tractorred] (1.5,0.5,2.5) -- (2.5,0.5,2.5) -- (2.5,1.5,2.5) -- (1.5,1.5,2.5) -- cycle;
% Windows (simplified)
\fill[cyan!20] (1.6,1.4,1.6) -- (2.4,1.4,1.6) -- (2.4,1.4,2.4) -- (1.6,1.4,2.4) -- cycle;
% Front grille
\draw[black, thick] (3,0.3,0.2) -- (3,0.3,1.3);
\draw[black, thick] (3,0.6,0.2) -- (3,0.6,1.3);
\draw[black, thick] (3,0.9,0.2) -- (3,0.9,1.3);
\draw[black, thick] (3,1.2,0.2) -- (3,1.2,1.3);
\draw[black, thick] (3,1.5,0.2) -- (3,1.5,1.3);
\draw[black, thick] (3,1.8,0.2) -- (3,1.8,1.3);
% Large rear wheels
\fill[wheelgray] (-0.8,0.3,0) circle (0.6);
\fill[rimsilver] (-0.8,0.3,0) circle (0.4);
\fill[wheelgray] (-0.8,1.7,0) circle (0.6);
\fill[rimsilver] (-0.8,1.7,0) circle (0.4);
% Smaller front wheels
\fill[wheelgray] (3.5,0.5,0) circle (0.4);
\fill[rimsilver] (3.5,0.5,0) circle (0.25);
\fill[wheelgray] (3.5,1.5,0) circle (0.4);
\fill[rimsilver] (3.5,1.5,0) circle (0.25);
% Exhaust pipe
\fill[black] (0.5,0.1,1.5) -- (0.5,0.1,2.8) -- (0.6,0.1,2.8) -- (0.6,0.1,1.5) -- cycle;
\fill[black] (0.5,0.1,2.8) -- (0.6,0.1,2.8) -- (0.6,0.2,2.8) -- (0.5,0.2,2.8) -- cycle;
% Headlights
\fill[yellow!80] (3.1,0.4,1) circle (0.15);
\fill[yellow!80] (3.1,1.6,1) circle (0.15);
% Add some depth lines
\draw[black, thick] (0,0,0) -- (3,0,0) -- (3,0,1.5) -- (0,0,1.5) -- cycle;
\draw[black, thick] (0,2,0) -- (3,2,0) -- (3,2,1.5) -- (0,2,1.5) -- cycle;
\draw[black, thick] (0,0,0) -- (0,2,0);
\draw[black, thick] (3,0,0) -- (3,2,0);
\draw[black, thick] (0,0,1.5) -- (0,2,1.5);
\draw[black, thick] (3,0,1.5) -- (3,2,1.5);
% Cabin outline
\draw[black, thick] (1.5,0.5,1.5) -- (2.5,0.5,1.5) -- (2.5,0.5,2.5) -- (1.5,0.5,2.5) -- cycle;
\draw[black, thick] (1.5,1.5,1.5) -- (2.5,1.5,1.5) -- (2.5,1.5,2.5) -- (1.5,1.5,2.5) -- cycle;
\draw[black, thick] (1.5,0.5,1.5) -- (1.5,1.5,1.5);
\draw[black, thick] (2.5,0.5,1.5) -- (2.5,1.5,1.5);
\draw[black, thick] (1.5,0.5,2.5) -- (1.5,1.5,2.5);
\draw[black, thick] (2.5,0.5,2.5) -- (2.5,1.5,2.5);
\end{tikzpicture}
\end{document}
This TikZ code creates a 3D representation of a red tractor with the following features:
- A red main body and engine compartment
- A driver's cabin with a window
- Large rear wheels and smaller front wheels with rims
- A front grille with horizontal lines
- An exhaust pipe
- Yellow headlights
- 3D perspective using custom coordinate transformations
The drawing uses an isometric-style 3D projection where the x, y, and z axes are defined to create depth. You can compile this with LaTeX to see the 3D tractor illustration.