Easing

doodle.interact.easing.Easing
See theEasing companion object
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.

Attributes

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

Members list

Value members

Concrete methods

def followedBy(that: Easing): Easing

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].

Attributes

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.

Attributes

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

Attributes

Source
Easing.scala

Inherited methods

def andThen[A](g: Double => A): T1 => A

Attributes

Inherited from:
Function1
def apply(v1: Double): R

Attributes

Inherited from:
Function1
def compose[A](g: A => Double): A => R

Attributes

Inherited from:
Function1
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function1 -> Any
Inherited from:
Function1