class Opal::Animation::ColorTween

Overview

Color tween interpolating between two colors

Defined in:

opal/style/animation.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(from_color : Color, to_color : Color, duration : Time::Span, easing : Easing = Easing::Linear) #

[View source]

Instance Method Detail

def current_color : Color #

[View source]
def finished? : Bool #

[View source]
def from_color : Color #

[View source]
def to_color : Color #

[View source]
def tween : Tween #

[View source]
def update(dt : Float64) : Color #

[View source]