All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.io.nacular.doodle.animation.Animator.kt Maven / Gradle / Ivy

There is a newer version: 0.10.4
Show newest version
package io.nacular.doodle.animation

import io.nacular.doodle.animation.transition.FixedSpeedLinear
import io.nacular.doodle.animation.transition.FixedTimeLinear
import io.nacular.doodle.animation.transition.NoChange
import io.nacular.doodle.animation.transition.SpeedUpSlowDown
import io.nacular.doodle.animation.transition.Transition
import io.nacular.doodle.utils.Completable
import io.nacular.doodle.utils.Pool
import io.nacular.measured.units.InverseUnits
import io.nacular.measured.units.Measure
import io.nacular.measured.units.Time
import io.nacular.measured.units.Units
import io.nacular.measured.units.UnitsRatio
import io.nacular.measured.units.times
import kotlin.jvm.JvmName

/**
 * Created by Nicholas Eddy on 3/29/18.
 */
public class NoneUnit: Units("")

public val noneUnits: NoneUnit = NoneUnit()

@JvmName("fixedSpeedLinearNumber")
public fun  fixedSpeedLinear(speed: Measure>): (T, T) -> Transition = { _,end -> FixedSpeedLinear(1 * noneUnits * speed, end * noneUnits) }

@JvmName("fixedSpeedLinearUnit")
public fun  fixedSpeedLinear(speed: Measure>): (Measure, Measure) -> Transition = { _,end -> FixedSpeedLinear(speed, end) }

public fun  fixedTimeLinear(time: Measure




© 2015 - 2025 Weber Informatics LLC | Privacy Policy