Timing

smile.animation.Timing
object Timing

Stateless timing, in seconds. Phase is measured in cycles, and positive phase starts ahead. Repeat wraps to zero at its boundary. PingPong and sine are continuous at theirs.

Attributes

Source
Timing.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Timing.type

Members list

Value members

Concrete methods

def once(time: Double, duration: Double, delay: Double = ...): Double

A one-shot transition. Stays at zero before delay, and at one after duration.

A one-shot transition. Stays at zero before delay, and at one after duration.

Attributes

Source
Timing.scala
def pingPong(time: Double, period: Double, phase: Double = ...): Double

Zero to one and back to zero over one complete period.

Zero to one and back to zero over one complete period.

Attributes

Source
Timing.scala
def repeat(time: Double, period: Double, phase: Double = ...): Double

Attributes

Source
Timing.scala
def sine(time: Double, period: Double, phase: Double = ...): Double

Smooth zero to one and back to zero over one complete period.

Smooth zero to one and back to zero over one complete period.

Attributes

Source
Timing.scala
def wrap(value: Double, min: Double, max: Double): Double

Wrap a value into [min, max), including negative values.

Wrap a value into [min, max), including negative values.

Attributes

Source
Timing.scala