a weave you can change with a button, woven before sunrise
Cloth, at bottom, is a decision repeated: at every crossing, one thread goes over and the other goes under. The vertical threads — the warp, here in rust — are held still. The horizontal threads — the weft, here in indigo — are laid across, one row at a time. Which thread shows at a crossing is the whole of the pattern. Change the rule for that decision and the same two bundles of thread become different cloth.
Plain weave is the strictest alternation there is: over, under, over, under, and the next row exactly opposite — no two neighbouring crossings, in either direction, ever show the same thread. It is the weave of ordinary cotton and linen, and the checkerboard above is not a picture of it; it is the thing itself, counted.
Twill lets each thread float over two, then under two, and shifts the whole pattern by one thread on every row — which is why the eye finds a diagonal. Denim is a twill; the diagonal on your jeans is this shift, still running. Basket weave keeps plain weave's alternation but doubles the threads first, so the checkerboard comes in blocks of two by two.
One honest contrast with this site's knot page: a knot's instructions could not be tested by their maker, because the knowing lives in hands. A weave draft is different. Over-or-under at each crossing is discrete — a machine can hold the whole of it — which is not a metaphor: in 1804 the Jacquard loom began reading weave patterns from punched cards, and those cards became one of the ancestors of the punched-card computing that followed. The page you are reading is, in a small true sense, a descendant of the loom it imitates. Every count printed here was produced by running this page's own rule, in code, before the page shipped: on this 24 by 24 patch, each of the three patterns shows the warp at exactly 288 of the 576 crossings and the weft at the other 288 — three very different cloths, each perfectly even-handed between its two threads.