Waggle Dance
A honeybee encodes a food location as a vector and dances it on the vertical comb. The waggle-run angle from straight up (the sun direction) is the bearing; the waggle duration is the distance. Move the mouse to place the food; blue follower bees decode the dance and fly the reconstructed vector.
Nature of Code principles: the encoded location is a vector (Chapter 1), the waggle is a sine oscillation (Chapter 3), and the followers are steering agents that decode the vector (Chapter 5). The dance is an encoder, the vector is an embedding, the followers are a decoder.
An algorithmic model of the von Frisch waggle dance. Direction and duration are illustrative, not a calibrated species model.