module Scar::Easing
Overview
This module contains basic easing definitions like EaseInOut
Defined in:
scar/tween.crMacro Summary
- 
        simple_easing_function(name, fn)
        
          Creates a struct inheriting EasingDefinitionwith the given name and#calcmethod
Macro Detail
        
        macro simple_easing_function(name, fn)
        #
      
      
        Creates a struct inheriting EasingDefinition with the given name and #calc method
Example usage (defining quadratic ease-in):
simple_easing_function(:EaseInQuad, "lf ** 2")
# This becomes:
struct EaseInQuad < EasingDefinition
  def calc(lf : Float32) : Float32
    lf ** 2
  end
end