Coordinate values arent stored in processing
Coordinate values arent stored in processing I really have no idea why the x and y values wont go to the drawLines function float x, x1, x2; float y, y1, y2; float rad; //radius int lines = 30; //number of lines int colorNumber = 1; void setup() { background(#FFFFFF); size (800, 600); rad = 8; } void draw() { } This creates the three dots or vertices of the mathematical envelope void mouseClicked() { float x = mouseX; float x1 = mouseX; float x2 = mouseX; float y = mouseY; float y1 = mouseY; float y2 = mouseY; if (colorNumber == 1) { fill(#9393ff); ellipse(x, y, rad, rad); } else if (colorNumber == 2) { fill(#FF9393); ellipse(x1, y1, rad, rad); } else if (colorNumber == 3) { fill(#93ff93); ellipse(x2, y2, rad, rad); } } This is supposed to draw the envelope using the coordinates of the vertices void drawLines(int numLines) { for (int i = 0; i < numLines; i = i + 1) { float x = mouseX; float x1 = mouseX; float x2 = mouse...