abstract struct Scar::Easing::EasingDefinition

Overview

Base struct for an easing definition

Direct Known Subclasses

Defined in:

scar/tween.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

abstract def calc(lf : Float32) : Float32 #

Implement whatever your easing needs in this function

lf is the linear fraction the Tween currently is at.


[View source]
def initialize #

[View source]