Plotting Define A Color Function Using Piecewise Mathematica Stack

Plotting Define A Color Function Using Piecewise Mathematica Stack