Reworked Debug Color Adjustment code