If I want to shift the vertices of a mesh to some other point, how can I do so using Tweens?

```
function setup()
m = mesh()
m.vertices = {vec2(WIDTH/2, HEIGHT/2), vec2(WIDTH/3, HEIGHT/2), vec2(3*WIDTH/5, HEIGHT/3)}
for k,v in pairs(m.vertices) do
tween(1, v, {x = 0, y = 0})
end
end
function draw()
background()
m:draw()
end
```

This doesn’t seem to work. But if I define a variable ‘x’ and cahange it in draw it works, like so.

```
function setup()
m = mesh()
x = WIDTH
end
function draw()
background()
x = x - 1
m.vertices = {vec2(x/2, HEIGHT/2), vec2(x/3, HEIGHT/2), vec2(3*x/5, HEIGHT/3)}
m:draw()
end
```

I’m pretty sure there is a silly mistake in the first one.

I can define a variable x in the first case and tween x till 0, but I want to know why this method doesn’t seem to work.

Is there a better method to do the same?