glbrush.js icon indicating copy to clipboard operation
glbrush.js copied to clipboard

Allow pressure to modify Opacity and/or Flow

Open garg opened this issue 10 years ago • 3 comments

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.

garg avatar Sep 08 '15 14:09 garg

I start work on this issue. Right now I'm researching sources.

VoidVolker avatar Sep 14 '15 17:09 VoidVolker

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.

Oletus avatar Jan 16 '16 22:01 Oletus

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.

garg avatar Jan 18 '16 20:01 garg