mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 05:39:18 +01:00
tweaks to focus and online
This commit is contained in:
@@ -5951,6 +5951,7 @@ public class PGraphics extends PImage implements PConstants {
|
||||
|
||||
public final float red(int what) {
|
||||
float c = (what >> 16) & 0xff;
|
||||
System.out.println((color_mode == RGB) + " " + color_scale);
|
||||
if ((color_mode == RGB) && (!color_scale)) return c;
|
||||
return (c / 255.0f) * colorMaxX;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user