tweaks to focus and online

This commit is contained in:
benfry
2004-07-15 13:44:23 +00:00
parent f493c1896b
commit f9517fefd0
2 changed files with 8 additions and 23 deletions

View File

@@ -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;
}