Vision is a major sensory modality in Drosophila behavior, with more than one-half of the Drosophila brain devoted to visual processing. The mechanisms of vision in Drosophila can be studied in individuals and in populations of flies by using various paradigms. Although there has never been a widely used population assay for visual learning in Drosophila, some population paradigms have shown significant visual learning. These studies use colors as conditioned stimuli (CS) and shaking as the unconditioned stimulus (US). A simple version of the paradigm, conditioning to colors using a shaking device, is described here. A conditioning chamber, called a crab, is designed to center the flies after shaking by having them tumble down to the lowest point between joined glass tubes forming a V. Thus, vibration should be just strong enough to center most flies. After shaking, flies display a geotactic response and climb up either side of the V, and their choice of which side to climb is influenced by color displays on either side. The proportion of flies on either side determines the flies’ natural preference or their learned avoidance of a color associated with shaking.