function setup() {
createCanvas(windowWidth,
windowHeight);
background(234, 234, 234);
}
function draw()
{
noStroke();
fill(350, 270, 230, 80 );
//adding value to the x coordinate of the first point.
triangle(3 + frameCount / 2, 75, 30, 290, 270, 200);
}