Consider an accelerometer. Some are very inexpensive, but unfortunately the cheapest only come in very small packages that are not feasible for manual assembly. The best I could find for manual assembly is the MXR6500MP ($4.91US from Digikey). This is a 2-axis accelerometer analog output with adequate sensitivity (with an op amp, such as LMC6482). With any accelerometer you will need a microprocessor. I favor Microchip's PIC16F886 ($2US in quantity). The '886 has an A/D converter that can convert the accelerometer signal to digital, and plenty of processing ability to make the LED drive signals. To dim the LEDs, you can use a pulse width modulation (PWM) method. The
'886 has 2 PWM modules, and you can synthesize the third from the timers in the '886. The '886 outputs have a 25ma sink/source capability, so can drive the LEDs directly. This could be a fun project!