The r value in this context likely refers to the red component of a color in the RGB color model. In an RGB gradient from white (which has equal amounts of red, green, and blue) to red (where the red component is at its maximum and the others are at zero), the r value would start at 0 for white and gradually increase to 255 for pure red.