Control 2 RGB LEDs using PWM with 3 Potentiometers

Where you declare the variables you use int
To fix your problem use float instead