1. A system comprising:a memory configured to store instructions; and
a hardware-based processor configured to execute the instructions to cause the system to perform operations comprising:determine a pulse-width modulation (PWM) frequency of an input PWM signal,
generate a first PWM signal for a first light emitting diode (LED), a second PWM signal for a second LED, and a third PWM signal for a third LED, such that each of the first PWM signal, the second PWM signal, and the third PWM signal has the PWM frequency and is in phase with the input PWM signal,
vary a first duty cycle of the first PWM signal, a second duty cycle of the second PWM signal, and a third duty cycle of the third PWM signal based on a control signal, such that a sum of the first duty cycle, the second duty cycle, and the third duty cycle is a predetermined percentage, and
select values of the first duty cycle, the second duty cycle, and the third duty cycle from a table in the memory based on the control signal.