The x and y gradients of the green and blue color components (G, B) and texture and other components are calculated using the above equations but substituting the desired component for R. The color or texture of any pixel within the triangle can be calculated from a starting pixel, pixel 0, and the x and y gradients.