Help with LED Lamp concept.

There's a few easy ways to do it. You can do it in the calculations that construct the values you're outputting, you can change the values you define for the maximum and minimum (and change the direction of your traverse) or you can do it in the analogWrite() like was outlined above:

    // set the colour in the LED
    analogWrite(R_PIN, 255-v.x);
    analogWrite(G_PIN, 255-v.y);
    analogWrite(B_PIN, 255-v.z);

All compiles. Should work.

Geoff