3 ms·
A while ago I wrote a similar library, running on the GPU using WebGL[1]. It's interesting how the library just became a _wrapper_ around 3 very simple pixel s
by phoboslab 10y ago
A while ago I wrote a similar library, running on the GPU using WebGL[1].
It's interesting how the library just became a _wrapper_ around 3 very simple pixel shaders (color matrix, convolution and blur), with the GPU doing all the looping over each pixel for you. Imho the shaders explain the idea of each filter much more clearly than iterative code could.
[1] http://phoboslab.org/log/2013/11/fast-image-filters-with-webgl http://phoboslab.org/log/2013/11/fast-image-filters-with-web...