Update processing sketch bool -> boolean

This commit is contained in:
Bodmer
2021-12-16 01:47:11 +00:00
parent ebdc2dead9
commit 174414f726

View File

@@ -49,9 +49,9 @@ String image_type = ".png"; // Lossless compression
//String image_type = ".bmp"; // # //String image_type = ".bmp"; // #
//String image_type = ".tif"; // # //String image_type = ".tif"; // #
// # // #
bool save_border = true; // Save the image with a border # boolean save_border = true; // Save the image with a border #
int border = 5; // Border pixel width # int border = 5; // Border pixel width #
bool fade = false; // Fade out image after saving # boolean fade = false; // Fade out image after saving #
// # // #
int max_images = 100; // Maximum of numbered file images before over-writing files # int max_images = 100; // Maximum of numbered file images before over-writing files #
// # // #
@@ -82,9 +82,9 @@ color frameColor = 42;
color buttonStopped = color(255, 0, 0); color buttonStopped = color(255, 0, 0);
color buttonRunning = color(128, 204, 206); color buttonRunning = color(128, 204, 206);
color buttonDimmed = color(180, 0, 0); color buttonDimmed = color(180, 0, 0);
bool dimmed = false; boolean dimmed = false;
bool running = true; boolean running = true;
bool mouseClick = false; boolean mouseClick = false;
int[] rgb = new int[3]; // Buffer for the colour bytes int[] rgb = new int[3]; // Buffer for the colour bytes
int indexRed = 0; // Colour byte index in the array int indexRed = 0; // Colour byte index in the array
@@ -288,7 +288,7 @@ void flushBuffer()
while ( millis() < clearTime ) serial.clear(); while ( millis() < clearTime ) serial.clear();
} }
bool getSize() boolean getSize()
{ {
if ( serial.available() > 6 ) { if ( serial.available() > 6 ) {
println(); println();
@@ -371,7 +371,7 @@ void getFilename()
else if (inByte == 't') image_type =".tif"; else if (inByte == 't') image_type =".tif";
} }
bool unicodeCheck(int unicode) boolean unicodeCheck(int unicode)
{ {
if ( unicode >= '0' && unicode <= '9' ) return true; if ( unicode >= '0' && unicode <= '9' ) return true;
if ( (unicode >= 'A' && unicode <= 'Z' ) || (unicode >= 'a' && unicode <= 'z')) return true; if ( (unicode >= 'A' && unicode <= 'Z' ) || (unicode >= 'a' && unicode <= 'z')) return true;
@@ -475,7 +475,7 @@ void percent(float percentage)
text(" [ " + (int)percentage + "% ]", 10, height-8); text(" [ " + (int)percentage + "% ]", 10, height-8);
} }
bool fadedImage() boolean fadedImage()
{ {
int opacity = frameCount - drawLoopCount; // So we get increasing fade int opacity = frameCount - drawLoopCount; // So we get increasing fade
if (fade) if (fade)