whats the best way to code a translucent brush

Fd80f81596aa1cf809ceb1c2077e190b
0
rouncer 104 Feb 28, 2013 at 17:08

Ive used gimp, and im pretty sure I know how the brush works in gimp. newcolour=originalcolour(r,g,b )*(1.0f-brushpower)+brushcolour(r,g,b )*brushcolour.

But paintshop pro is different… and better, I want to code the brush in paintshop pro, but I have no idea except what I want it to look like.

Heres a picture of the brush at 1% opacity, and paintshop pro really nails it better than gimp and my program.
The strokes are exactly the same colour!!!

brushex.png

so what could be the secret to getting the brush to look like this?

I tried working the brush with hsl instead of rgb, but it didnt seem to get the effect…

1 Reply

Please log in or register to post a reply.

Fd80f81596aa1cf809ceb1c2077e190b
0
rouncer 104 Feb 28, 2013 at 18:47

brushes aint brushes.

i think ive got it!

you do use hsl instead of rgb, treat black as saturation 1, not 0. then interpolate saturation 3 times the speed of brightness and just clamp the hue. (the real version would need to interpolate hue, will get to that later)

brushex2.png