Module

Puregrain.Internal.Step

Package
purescript-puregrain
Repository
roman-mkh/puregrain

One pixel of the diffusion: add up the error arriving from earlier pixels, quantize, and send the new error on to the queues. Internal: may change without notice.

#step Source

step :: forall f a. Fifo f => Ring a => Scalable a => CompiledKernel -> Quantizer a -> RowState f a -> a -> Tuple (RowState f a) a

#dequeueAllLayer Source

dequeueAllLayer :: forall f a. Fifo f => RowLayer f a -> Tuple (Array a) (RowLayer f a)