Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Processing will not Export

$
0
0

First time in the forum, so please move this if it's in the wrong spot.

When I try and export my application I get an "Error during export" message, but it doesn't give and error code or anything, I am on windows 10 64 bit, latest drivers and latest processing version.

Here is my code in case that helps

/**
Mouse Press.
Move the mouse to position the shape.
Press the mouse button to invert the color.
*/
import processing.serial.*;

Serial port;
int led;

void setup() {
  size(640, 360);
  noSmooth();
  fill(126);
  background(102);
  port = new Serial(this, "COM3", 9600);
  port.bufferUntil('\n');
}

void draw() {
  if (mousePressed) {
    stroke(255);
    led = 1;
    port.write(led);
  } else {
    stroke(0);
    led = 0;
    port.write(led);
  }
  line(mouseX - 66, mouseY, mouseX + 66, mouseY);
  line(mouseX, mouseY - 66, mouseX, mouseY + 66);
}

Thanks, any help would be much appreciated


Viewing all articles
Browse latest Browse all 2896

Trending Articles