glbrush.js
glbrush.js copied to clipboard
Allow pressure to modify Opacity and/or Flow
Currently the pressure parameter alters the radius of the brush stroke. It would be beneficial if the pressure could also be used for changing the opacity and flow settings. The Photoshop brush allows the user to choose which brush properties are changed with pen pressure.
I start work on this issue. Right now I'm researching sources.
This would be a good feature, but it's maybe better to do it as a part of a larger brush overhaul. Have to think about backwards compatibility and the possibility of re-rendering the picture to a different resolution too. "Opacity" is the opacity of the brush stroke as a whole though, so varying that along the stroke doesn't make sense.
Understood. The HTML5 Pointer Events API that detects touch/pen pressure is supported by IE and Edge. Firefox and Chrome are supposed to support it this year. This would be a useful addition for when it's supported across more browsers.