Jump to content


whats the best way to code a translucent brush


1 reply to this topic

#1 rouncer

    Senior Member

  • Members
  • PipPipPipPip
  • 2722 posts

Posted 28 February 2013 - 05:08 PM

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!!!

Posted Image


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...
you used to be able to fit a game on a disk, then you used to be able to fit a game on a cd, then you used to be able to fit a game on a dvd, now you can barely fit one on your harddrive.

#2 rouncer

    Senior Member

  • Members
  • PipPipPipPip
  • 2722 posts

Posted 28 February 2013 - 06:47 PM

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)

Posted Image
you used to be able to fit a game on a disk, then you used to be able to fit a game on a cd, then you used to be able to fit a game on a dvd, now you can barely fit one on your harddrive.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users