mirror of
https://github.com/processing/processing4.git
synced 2026-02-11 09:39:19 +01:00
work on alpha() in PImage, also cleaned up proper bounding of color
commands
This commit is contained in:
@@ -285,7 +285,8 @@ public class PImage implements PConstants, Cloneable {
|
||||
public int get(int x, int y) {
|
||||
if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) return 0;
|
||||
return (format == RGB) ?
|
||||
(pixels[y*width + x] & 0xff000000) : pixels[y*width + x];
|
||||
(pixels[y*width + x] & 0x00ffffff) : pixels[y*width + x];
|
||||
//(pixels[y*width + x] & 0xff000000) : pixels[y*width + x];
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user