[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simulating program functions/filters



Hi,

Ok, then here are my TF codes for blending images. c0 is the RGB 
value of image source 0, c1 is the RGB value of image source 1.


Lighten:
max(c0,c1)

Darken:
min(c0,c1)

Screen:
255-((255-c0)*(255-c1)/256)

Multiply:
put(c0*c1/256,1)

Hard Light
c0<128?(2*c0*c1/256):255-2*(255-c0)*(255-c1)/256

Soft Light
c1<128?2*scl(c0,0,255,64,192)*c1/256:255-(2*(255-
scl(c0,0,255,64,192))*(255-c1)/256)

Difference
abs(c0-c1)

Inversion
abs(c0-(255-c1))

Melt (invented by myself):
sqr(c0*c1)

Mix (invented by myself):
255-sqr((255-c0)*(255-c1))

Invert A (invented by myself):
255-abs((255-c0)-c1)

Invert B (invented by myself):
255-abs(c0-c1)


Hope this helps,
Harry


> Although FF and FiFo cannot combine two images or two layers, you still
> can create like new textures and combine them with the original image.
> This is used very often in FF codes.
> 
> I won't be updating the FFPG any more. Several reasons: - We have
> now a FF successor (FiFo), hopefully we will be seeing some FM as
> well - I am writing my thesis ;-) 
> 
> That's why I proposed on a new FAQ, whose codes can be taken and
> used in FF, FiFo and FM. BTW, has someone heard of the "BMP
> wizard"? I think Mr Benoni discontinued it... 


PlugIn Com HQ - 
Plugins, Effects and Tools for Image and Video Editing
http://pico.i-us.com/