Custom Inputs: Capacitive Touch

Can WLED change brightness on segments based on a numerical input passed as a parameter from calculations?

I’m creating a funky input that needs to do some calculations from capacitive touch sensors on an ESP32 board which identifies the closest LED segment, and increase the brightness of that segment to max and surrounding ones to 90%. Is this possible in WLED?