I wanted to draw some functions using love.graphics.points
it works, I can see the individual points, but it's not persistent, a new point replace the previous one, I wanted it to draw some curves or lines, like in a graphical.
How could I achieve that?
Code: Select all
function love.load()
x, y = 0, 0
t=0
end
function love.update(dt)
z=math.abs(math.sin(t)/math.cos(y+t))
t = t +1
end
function love.draw()
love.graphics.points(t,10+z*44)
end