mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
fix filter(OPAQUE) / filter(RGB) (bug #1346)
This commit is contained in:
@@ -691,7 +691,7 @@ public class PImage implements PConstants, Cloneable {
|
||||
throw new RuntimeException("Use filter(POSTERIZE, int levels) " +
|
||||
"instead of filter(POSTERIZE)");
|
||||
|
||||
case RGB:
|
||||
case OPAQUE:
|
||||
for (int i = 0; i < pixels.length; i++) {
|
||||
pixels[i] |= 0xff000000;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user