skykistler / smudgr

smudge the pixels
http://smudgr.io
3 stars 0 forks source link

Pixel Shift Direction + Scaling features #32

Open ericvoorhis opened 8 years ago

ericvoorhis commented 8 years ago

Adding directionality + different scaling options to pixel shifting: https://github.com/skykistler/smudgr/commit/5e25ab1a9fc1ee91a80b36fbae5c5fc5ee4d6d09

Notes:

        double shiftScale = 1;

        //  find type of shift

        switch(shiftType.getIntValue()) {

        case 1:
            shiftScale = currentInterval;
            break;
        case 2:
            shiftScale = (currentInterval % 2 == 0 ? -currentInterval : currentInterval);
            break;
        }

        //  reverse direction of shifting 

        if (reverse.getIntValue() == 1)
            shiftScale = -shiftScale;

Goals:

Completed So Far:

skykistler commented 8 years ago

Added univariate function parameter, currently commented out in PixelShift Take a look at pixel sort for how to add functions to this parameter

skykistler commented 8 years ago

Is this close to being merged?

ericvoorhis commented 8 years ago

Pixel Shift is pretty much good to go, but I can probably add some stuff to it. Although, there is probably always something that can be added to Pixel Shift.