View on GitHub

memo

Image Filter

Image Filter

Intensity = (R + G + B) / 3

YCbCr

Y = 0.2126*R + 0.7152*G + 0.0722*B

o

Blend mode

Here color is between 0.0(black) and 1.0(white).

Normal

f(a,b)=b

Dissolve

Multiply

f(a,b)=ab

Screen

f(a,b)=1(1a)(1b)

Overlay

f(a,b)={2aba<0.512(1a)(1b)a>=0.5

Hard Light

Soft Light

Dodge and burn

Divide

Addition

Subtract

Difference

Darken Only

Lighten Only

Alpha channel

Reference