πŸ“–simple-animations

simple animations library / author: sqwat

the library allows you to easily make animations

example of usage:

local animations = require("morion/simple-animations")

callbacks.init("on_paint", function()
    local alpha = animations.lerp("alpha", gvars.is_open_menu())
    
    draw.rect_filled(0, 0, 400, 400, color_rgba(255, 255, 255, math.floor(alpha*255)))
end)

functions:

lerp

.lerp(id: string, value:boolean/number, [speed: number]): number

Name
Type
Description

id

string

unique animation id

value

boolean/number

animation value

speed

number

animation speed amount

Last updated