[PixelBender] FuzzyMosaic Filter

More pixelbender fun! \ o /

About the fuzzy mosaic filter:
This filter styles your picture in a fuzzyMosaic style.
Build in pixelbender. Usage for flash.

Demo:















































Download flash bytecode: fuzzyMosaic.pbj

PixelBender code:

View CodeACTIONSCRIPT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
kernel FuzzyMosaic
<   namespace   : "nl.rackdoll";
    vendor      : "Rackdoll-Labs";
    version     : 1;
    description : "FuzzyMosaic's your image";
>
{
    input image4 src;
    output pixel4 dst;
 
    parameter float pixelate
    <
        minValue:0.0;
        maxValue:100.0;
        defaultValue:0.0;
    >;
 
    void
    evaluatePixel()
    {
        float2 pos  = outCoord();
        pos        += tan(pos.yx )* pixelate;
        dst         = sampleNearest( src, pos );
    }
}

Comments are closed.


Categories
Archives
LinkedIn
R. Kollau