Map

doodle.interact.animation.Interpolation.Map
final case class Map[A, B](source: Interpolation[A], f: A => B) extends Interpolation[B]

Attributes

Source
Interpolation.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Interpolation[B]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def forDuration(duration: Duration): Transducer[A]

Attributes

Inherited from:
Interpolation
Source
Interpolation.scala
def forSteps(steps: Long): Transducer[A]

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.

Attributes

Inherited from:
Interpolation
Source
Interpolation.scala
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.

Attributes

Inherited from:
Interpolation
Source
Interpolation.scala
def product[B](that: Interpolation[B]): Interpolation[(A, B)]

Combine this Interpolation in parallel with that Interpolation.

Combine this Interpolation in parallel with that Interpolation.

Attributes

Inherited from:
Interpolation
Source
Interpolation.scala

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
def withEasing(easing: Easing): Interpolation[A]

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.

Attributes

Inherited from:
Interpolation
Source
Interpolation.scala