linsyking/elm-regl/4.1.0

NOTE: the latest version is 10.0.0

Renamed to elm-messenger/elm-regl. That is where the repository lives now. It has not been published as a package under the new name.

Versions published as linsyking/elm-regl still install under that name. 5 versions of 15 come from the new location (see their notes).

REGL.Compositors

Compositors

Compose two renderables using various shaders.

Default Compositors

dstOverSrc : Renderable -> Renderable -> Renderable

Draw the dst renderable over the src renderable.

maskBySrc : Renderable -> Renderable -> Renderable

Draw the dst renderable masked by the src renderable.

Fading Compositor

linearFade : Float -> Renderable -> Renderable -> Renderable

Linear fading effect.

imgFade : String -> Float -> Bool -> Renderable -> Renderable -> Renderable

Fading effect using a mask image.

Mask image is a gradient image, similar to this.