How prograssbarColor with differentThe color indicates

hi all
Suppose the progress takes 20% as a color, also is 100% will have 5 kinds of colors(is also be divided into 5 different colors), for example:
Segment 1(0~20%) red, segment 2(20%~40%) is orange, segment 3(40%~60%) green, segment 4(60~80) yellow, segment 5(80~100) blue