gromit-mpx icon indicating copy to clipboard operation
gromit-mpx copied to clipboard

Pen specific opacity for creating a highlighter pen

Open Maralai opened this issue 4 years ago • 4 comments

Is your feature request related to a problem? Please describe. In addition to overall opacity, it would be great if we can have pen level opacity.

Describe the solution you'd like Allow for the config similar to something like: "yellow Pen" = "red Pen" (color="yellow" opacity=0.5 size=10);

Describe alternatives you've considered I have considered using opacity over the whole thing but that is not as practical when wanting a highlighter and a pen on the same canvas.

Additional context Just think using the ctrl key to use a highlighter with some opacity control...

Maralai avatar May 17 '20 15:05 Maralai

+1 I've grown to love gromit-mpx over the last 24 hours and this would just be icing on the cake.

mikeperalta1 avatar Feb 04 '21 22:02 mikeperalta1

Couldn't this be addressed by supporting colors with alpha channels? so i.e "#AARRGGBB" instead of just "#RRGGBB" as it is now?

MarcinOrlowski avatar Jun 29 '21 17:06 MarcinOrlowski

Couldn't this be addressed by supporting colors with alpha channels? so i.e "#AARRGGBB" instead of just "#RRGGBB" as it is now?

Probably yes.

bk138 avatar Jun 30 '21 10:06 bk138

Chiming in as I also wanted to use highlighting and looked into it a bit. Transparent colours can be specified using an RGBA colour formatted as rgba(r,g,b,a). So for example, a blue highlighter with 60% opacity:

"blue Highlighter" = PEN (size=40 color="rgba(0, 0, 255, 0.6)");

Perhaps this can be added to the documentation somewhere.

However there is an overpainting issue as you can see in this screenshot: image

The correct opacity is shown above, but when the line direction changes a new segment is drawn. The overlapping segments combine to increase the opacity.

mitchelloharawild avatar Feb 28 '22 05:02 mitchelloharawild