gromit-mpx
gromit-mpx copied to clipboard
Pen specific opacity for creating a highlighter pen
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...
+1 I've grown to love gromit-mpx over the last 24 hours and this would just be icing on the cake.
Couldn't this be addressed by supporting colors with alpha channels? so i.e "#AARRGGBB" instead of just "#RRGGBB" as it is now?
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.
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:
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.