Map

final case
class Map[A, B](source: Interpolation[A], f: A => B) extends Interpolation[B]
trait Serializable
trait Product
trait Equals
trait Interpolation[B]
class Object
trait Matchable
class Any

Value members

Inherited methods

def forDuration(duration: Duration): Transducer[B]
Inherited from
Interpolation
def forSteps(steps: Long): Transducer[B]

Create a transducer that will produce the given number of values before it stops. So, for example, calling forSteps(2) will create a transducer that produces 2 values before it stops.

Create a transducer that will produce the given number of values before it stops. So, for example, calling forSteps(2) will create a transducer that produces 2 values before it stops.

The number of steps must be non-negative. 0 steps means a transducer that stops immediately. 1 step will produce the start value for a half-open interval and the stop value for a closed interval.

Inherited from
Interpolation
def map[B](f: B => B): Interpolation[B]

Transform the output of this interpolation with the given function.

Transform the output of this interpolation with the given function.

Inherited from
Interpolation
def product[B](that: Interpolation[B]): Interpolation[(B, B)]

Combine this Interpolation in parallel with that Interpolation.

Combine this Interpolation in parallel with that Interpolation.

Inherited from
Interpolation
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product

Apply an easing function to this interpolation.

Apply an easing function to this interpolation.

Map the range in this interpolation to 0.0 and 1.0, pass through the given easing function, and then map back to the original domain.

Inherited from
Interpolation