Lua script, lerp function

Mar 24, 2013 at 10:09am

Lua script, lerp function

Hi,

can anyone tell me what i’m doing wrong in the following….

—————————————————————–
require(“vec”)
this.inlets = 3
this.outlets = 2

local v1 ={1.,0.}
local v2 ={2.,2.}

for i = 0, 100 do
local t = i / 100
local f = vec2.lerp(v1,v2,t) < --error occur on this line , "in main chunk"
outlet(0,f)

end

#67288
Oct 27, 2013 at 5:57am

Hi, TOUK

I encountered same problem on jit.gl.lua.
Although this message was displayed, patches could perform correctly.

Are there bugs on jit.gl.lua editor?

#269250

You must be logged in to reply to this topic.