int steps = 100; int status = 0; float w = 400; float h = 400; PVector beginA = new PVector(-50,0); PVector ctrl1A = new PVector(0,h*0.333); PVector ctrl2A = new PVector(-100,h*0.666); PVector endA = new PVector(-50,h); PVector beginB = new PVector(w+50,0); PVector ctrl1B = new PVector(w+100,h*0.333); PVector ctrl2B = new PVector(w-50,h*0.666); PVector endB = new PVector(w+50,h); void setup(){ size(800,800); noFill(); smooth(8); stroke(100); } void draw(){ pushMatrix(); translate(200,200); background(200); stroke(100); rect(0,0,400,400); stroke(255,0,0); bezier(beginA.x,beginA.y,ctrl1A.x,ctrl1A.y,ctrl2A.x,ctrl2A.y,endA.x,endA.y); bezier(beginB.x,beginB.y,ctrl1B.x,ctrl1B.y,ctrl2B.x,ctrl2B.y,endB.x,endB.y); stroke(50,100); for(int i=1;i