doodle.reactor.Reactor
See theReactor companion object
final case class Reactor[A](initial: A, onMouseClickHandler: (Point, A) => A, onMouseMoveHandler: (Point, A) => A, onTickHandler: A => A, tickRate: FiniteDuration, renderHandler: A => Image, stopHandler: A => Boolean) extends BaseReactor[A]
A Reactor that has reasonable defaults and a simple builder style for creating more complicated behaviour.
Attributes
- Companion
- object
- Source
- Reactor.scala
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait BaseReactor[A]class Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Attributes
- Source
- Reactor.scala
Attributes
- Source
- Reactor.scala
Attributes
- Source
- Reactor.scala
Attributes
- Source
- Reactor.scala
Attributes
- Source
- Reactor.scala
Attributes
- Source
- Reactor.scala
Attributes
- Source
- Reactor.scala
Attributes
- Source
- Reactor.scala
Attributes
- Source
- Reactor.scala
Attributes
- Source
- Reactor.scala
Attributes
- Source
- Reactor.scala
Attributes
- Source
- Reactor.scala
Attributes
- Source
- Reactor.scala
Attributes
- Source
- Reactor.scala
Attributes
- Source
- Reactor.scala
Inherited methods
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
def run[Alg <: Basic, Frame, Canvas](frame: Frame)(implicit a: AnimationRenderer[Canvas], e: Renderer[Alg, Frame, Canvas], m: MouseClick[Canvas] & MouseMove[Canvas], runtime: IORuntime): Unit
Runs this reactor, drawing on the given frame, until stop indicates it should stop.
Runs this reactor, drawing on the given frame, until stop indicates it should stop.
Attributes
- Inherited from:
- BaseReactor
- Source
- BaseReactor.scala
Run one tick of this reactor, drawing on the given frame. Returns the next state, or None if the Reactor has stopped.
Run one tick of this reactor, drawing on the given frame. Returns the next state, or None if the Reactor has stopped.
Attributes
- Inherited from:
- BaseReactor
- Source
- BaseReactor.scala
In this article