Controling LED with Processing

Which Arduino are you using? On the UNO and other 328 based Arduinos, pin 13 is not a PWM pin. You can only vary the brightness of LEDs using PWM pins.