• Studio

  • Studio API

  • Bots

  • Web API

  • Designer Resources

  • Host Resources

  • Easing

    The Easing service provides a set of easing functions that can be used to create smooth animations.

    Methods

    local t = 0.5
    local result = Easing.Quadratic(t)
    
    print(result)
    

    Parameters

    t

    number

    Returns

    number

    local t = 0.5
    local result = Easing.Cubic(t)
    
    print(result)
    

    Parameters

    t

    number

    Returns

    number

    local t = 0.5
    local p = 2
    local result = Easing.Back(t, p)
    
    print(result)
    

    Parameters

    t

    number

    p

    number

    Returns

    number

    local t = 0.5
    local result = Easing.Circle(t)
    
    print(result)
    

    Parameters

    t

    number

    Returns

    number

    local t = 0.5
    local p = 2
    local result = Easing.Exponential(t, p)
    
    print(result)
    

    Parameters

    t

    number

    p

    number

    Returns

    number

    local t = 0.5
    local result = Easing.Sine(t)
    
    print(result)
    

    Parameters

    t

    number

    Returns

    number

    local t = 0.5
    local x1 = 0.1
    local y1 = 0.2
    local x2 = 0.3
    local y2 = 0.4
    local result = Easing.CubicBezier(t, x1, y1, x2, y2)
    
    print(result)
    

    Parameters

    t

    number

    x1

    number

    y1

    number

    x2

    number

    y2

    number

    Returns

    number

    local t = 0.5
    local bounces = 3
    local bounciness = 2
    local result = Easing.Bounce(t, bounces, bounciness)
    
    print(result)
    

    Parameters

    t

    number

    bounces

    number

    bounciness

    number

    Returns

    number

    local t = 0.5
    local oscillations = 3
    local springiness = 2
    local result = Easing.Elastic(t, oscillations, springiness)
    
    print(result)
    

    Parameters

    t

    number

    oscillations

    number

    springiness

    number

    Returns

    number

    Updated about 1 month ago

    PocketWorlds Icon

    © 2024 Pocket Worlds. All rights reserved.