Easing

trait Easing extends Double => Double

An easing function is a function from [0,1] to the real numbers (but usually numbers in [0,1]) that is used to construct animation that move in a pleasing way.

All easing functions must return 0.0 for input 0.0 and 1.0 for input 1.0.

Companion:
object
Source:
Easing.scala
trait Double => Double
class Object
trait Matchable
class Any

Value members

Concrete methods

Construct an easing function that has the first half of its output from this easing function, and the second half from that easing function.

Construct an easing function that has the first half of its output from this easing function, and the second half from that easing function.

For the input [0, 0.5) the resulting function uses this easing function, and for [0.5, 1] uses that easing function. The input to the two easing functions is linearly scaled so that they both receive a value in the range [0, 1]. Their output is scaled in half so the first function generates values in [0, 0.5] and the second in [0.5, 1.0].

Source:
Easing.scala

Reflect this easing around x = 0.5 and y = 0.5. Constructs an "out" easing from an "in" easing and vice versa.

Reflect this easing around x = 0.5 and y = 0.5. Constructs an "out" easing from an "in" easing and vice versa.

Source:
Easing.scala
def toStream(steps: Int): Stream[Pure, Double]

Convert to a Stream that produces a total of steps values, starting at 0.0 and finishing at 1.0

Convert to a Stream that produces a total of steps values, starting at 0.0 and finishing at 1.0

Source:
Easing.scala

Inherited methods

def andThen[A](g: Double => A): Double => A
Inherited from:
Function1
def apply(v1: Double): Double
Inherited from:
Function1
def compose[A](g: A => Double): A => Double
Inherited from:
Function1
override def toString(): String
Definition Classes
Function1 -> Any
Inherited from:
Function1