Changing RGB code, so I can use a force sensitive resistor, How?

What do you want to change? The first thing to do is define your requirement(s).