Dimming LEDs by changing voltage or current is a black art.
Black art.
Um. LEDs are diodes.
Now you need an active component in addition: a triangle wave generator. You can find a circuit by clicking I'm feeling lucky on Google with the phrase triangle-wave generator circuit.
The third link under 'LED dimmer' which goes to Mike's flight deck has both the theory and the circuit of LED dimming.
Good luck.
BAJ