slider: use range for calculating color