function setup() {
// Create canvas of given size
createCanvas(500, 300);
// Set the background of canvas
background('green');
}
function draw() {
// Use noFill() function to not fill the color
noFill();
// Set the stroke color
stroke('white');
// Use curve() function to create curve
curve(50, 50, 50, 200, 50, 10, 50, 250, 150, 50, 50, 50);
// Set the stroke color
stroke('blue');
// Use curve() function to create curve
curve(50, 200, 450, 50, 250, 100, 350, 250, 250, 450, 450, 400);
}