struct Scar::Easing::CubicBezier

Overview

Can compute a 4 point Bezier curve easing. Adapted from CSS browser implementations.

Defined in:

scar/tween.cr

Constructors

Instance Method Summary

Instance methods inherited from struct Scar::Easing::EasingDefinition

calc(lf : Float32) : Float32 calc, initialize initialize

Constructor methods inherited from struct Scar::Easing::EasingDefinition

new new

Constructor Detail

def self.new(x1, y1, x2, y2) #

[View source]

Instance Method Detail

def calc(lf : Float32, epsilon : Float64) : Float32 #

Sample the curve with the given epsilon value


[View source]
def calc(lf : Float32) : Float32 #

[View source]