SketchBook

a

function setup() {
createCanvas(windowWidth,
windowHeight);
 background(160, 170, 190);
}

function draw() {

noStroke();
 fill(300, 300, 300, 300);

//adding value to the x coordinate of the first point.
triangle(150 + frameCount / 2, 75, 30, 29, 270, 290);
}