Hey guys I had a Linear code where Galenmereth helped me to create for doing lineart movement more "easily" in Ace...
Now though I want to convert it to MV but I don't know how to properly convert it to JS
here the code
#---------------------------------------------------------------------------- # ○ new method: lineart #---------------------------------------------------------------------------- # * t = Current time (frame) # * b = Start value # * c = Target value # * d = Duration total (frames) # * Returns: Value modified by t def lineart(t, b, c, d) return c*t/d.to_f + b end thanks for any further answer
Now though I want to convert it to MV but I don't know how to properly convert it to JS
here the code
#---------------------------------------------------------------------------- # ○ new method: lineart #---------------------------------------------------------------------------- # * t = Current time (frame) # * b = Start value # * c = Target value # * d = Duration total (frames) # * Returns: Value modified by t def lineart(t, b, c, d) return c*t/d.to_f + b end thanks for any further answer
