MCPcopy Index your code
hub / github.com/processing/processing / set

Method set

core/src/processing/core/PImage.java:866–870  ·  view source on GitHub ↗

( begin auto-generated from PImage_set.xml ) Changes the color of any pixel or writes an image directly into the display window. The x and y parameters specify the pixel to change and the color parameter specifies the color value. The color parameter is affected by

(int x, int y, int c)

Source from the content-addressed store, hash-verified

864 * @see PImage#copy(PImage, int, int, int, int, int, int, int, int)
865 */
866 public void set(int x, int y, int c) {
867 if ((x < 0) || (y < 0) || (x >= pixelWidth) || (y >= pixelHeight)) return;
868 pixels[y*pixelWidth + x] = c;
869 updatePixels(x, y, 1, 1); // slow...
870 }
871
872
873 /**

Callers

nothing calls this directly

Calls 2

updatePixelsMethod · 0.95
setImplMethod · 0.95

Tested by

no test coverage detected