set colorModeDefault to true by default

This commit is contained in:
Ben Fry
2017-11-20 16:06:21 -05:00
parent a3943ee508
commit f4452c0781
+5 -2
View File
@@ -334,8 +334,11 @@ public class PGraphics extends PImage implements PConstants {
/** True if colors are not in the range 0..1 */
boolean colorModeScale; // = true;
/** True if colorMode(RGB, 255) */
boolean colorModeDefault; // = true;
/**
* True if colorMode(RGB, 255). Defaults to true so that color()
* used as part of a field declaration will properly assign values.
*/
boolean colorModeDefault = true;
// ........................................................