MartinSStewart/elm-bayer-matrix - version: 1.0.0

for more information visit the package's GitHub page

Package contains the following modules:

Bayer Matrix

A package that calculates bayer matrices. This is useful if you want to create a dithering effect for a WebGL shader.

Example

import Array2D

matrix 1
--> Array2D.fromList
--> [ [ 0, 2 ]
--> , [ 3, 1 ]
--> ]

matrix 2
--> Array2D.fromList
--> [ [ 0, 8, 2, 10 ]
--> , [ 12, 4, 14, 6 ]
--> , [ 3, 11, 1, 9 ]
--> , [ 15, 7, 13, 5 ]
--> ]