setPixel method

void setPixel(
  1. int x,
  2. int y,
  3. Color c
)

Set the color of the pixel at the given coordinates to the color of the given Color c.

Implementation

void setPixel(int x, int y, Color c) {
  setPixelRgba(x, y, c.r, c.g, c.b, c.a);
}