( 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)
| 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 | /** |
nothing calls this directly
no test coverage detected