[PD] color aritmetics with an image and a value as operands (in GEM)
cyrille henry
ch at chnry.net
Mon Apr 11 20:15:36 CEST 2011
Le 11/04/2011 20:04, Matteo Sisti Sette a écrit :
> Hi,
>
> I'm finding some difficulty in doing in GEM operations that I thought would be trivial, and I think I must be missing something.
>
> For example, i'd like to do the same kind of operations you can do with pix_difference, pix_add and pix_multiply but use a single color as the right operand, as if it was an image of the same size as the left operand with all pixels of the same color.
>
> The only way I can think of, is to use pix_set as the right-operand pix, to use pix_info to retrieve the size of the left image and to repeat the color the needed number of times. Or to use pix_resize to resize the pix_set pix to the size of the other image.
>
> Is there a simpler and more elegant way?
use shaders...
c
>
> thanks
> m.
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>
More information about the Pd-list
mailing list