indigo.shared.temporal

Type members

Classlikes

object Signal

Types

opaque type Signal[A]

A Signal is function t: Seconds -> A. Signals are stateless time based value, which is to say that for a given time, they will produce a value based on that time. They are useful for representing things like animations, particularly when used in combination with SignalFunctions.

A Signal is function t: Seconds -> A. Signals are stateless time based value, which is to say that for a given time, they will produce a value based on that time. They are useful for representing things like animations, particularly when used in combination with SignalFunctions.

opaque type SignalFunction[A, B]

A Signal Function is a combinator that maps Signal[A] -> Signal[B]. One way to thing of signal functions is to think of each instance as one section of a transformation pipeline. When you attach the pipeline to a Signal you can ask the pipeline for a transformed value over time. For example, you could have a signal that produces an endlessly looping angle, and a signal function that turns that angle into perhaps and orbit or a color.

A Signal Function is a combinator that maps Signal[A] -> Signal[B]. One way to thing of signal functions is to think of each instance as one section of a transformation pipeline. When you attach the pipeline to a Signal you can ask the pipeline for a transformed value over time. For example, you could have a signal that produces an endlessly looping angle, and a signal function that turns that angle into perhaps and orbit or a color.

opaque type SignalReader[R, A]

SignalReader is a wrapper around signal that provides an execution environment. As such it generally delegates to Signal.

SignalReader is a wrapper around signal that provides an execution environment. As such it generally delegates to Signal.

opaque type SignalState[S, A]

SignalState is a type of Signal that carries transformable state values throughout it's life.

SignalState is a type of Signal that carries transformable state values throughout it's life.