Page 1 of 1

Pixellate in Transform?

Posted: Thu Jan 23, 2020 10:29 pm
by Westeford
I might be missing something obvious, but I was wondering if it's possible to use pixellate in a transform. I'd use this for whenever I call a specific screen. I know I can use it as a transition like:
but I want to use it in a transform so I can have it pixellate on show and hide. And so I don't have to find every instance of this screen being called.

Thanks

Re: Pixellate in Transform?

Posted: Fri Jan 24, 2020 7:54 am
by Remix
You can use 'with' in transforms, just you have to tell it the displayable to transition to (and maybe back to)

Code: Select all

transform pixellate_to_new( new=Null(), old=Null() ):
    on show:
        new with pixellate
    on hide:
        old with pixellate

##  show "old" at pixellate_to_new("images/new.png", "old")
There are likely ways to do it just with transitions set against the screen though, which might be better

Re: Pixellate in Transform?

Posted: Fri Jan 24, 2020 10:14 am
by Westeford
Remix wrote:
Fri Jan 24, 2020 7:54 am
You can use 'with' in transforms, just you have to tell it the displayable to transition to (and maybe back to)

Code: Select all

transform pixellate_to_new( new=Null(), old=Null() ):
    on show:
        new with pixellate
    on hide:
        old with pixellate

##  show "old" at pixellate_to_new("images/new.png", "old")
There are likely ways to do it just with transitions set against the screen though, which might be better
So are "new" and "old" separate images?