The datasheet for the LM317 says that the 2 ohm resistor will have 1.25V across it. Ohms Law says that the current in the resistor is 1.25V/2 ohms= 625mA. Then the power dissipated by the resistor is 1.25V x 625mA= 0.78W. A 1W resistor will be pretty hot. A half watt resistor will be too hot and might be destroyed.
The distance from the resistor to the LED must be less than 20,000 miles or whatever amount of wire resistance dims the LEDs.
The resistor should be close to the LM317.
Your circuit probably needs an input capacitror for each LM317.
The distance from the resistor to the LED must be less than 20,000 miles or whatever amount of wire resistance dims the LEDs.
The resistor should be close to the LM317.
Your circuit probably needs an input capacitror for each LM317.