highlighter/transparent colors #167
Answered
by
hm21
amirharati
asked this question in
Q&A
-
Hi, I am trying to implement a highlight tool (for example to use to highlight a text). It seems painting line should just do it but i need to be able to control the opacity. From examples, I have not figure out how to do so. Is there a way to configure opacity and other features? appreciate it if point me to an example (or perhaps if there is a special feature for highlighting). |
Beta Was this translation helpful? Give feedback.
Answered by
hm21
Jul 22, 2024
Replies: 1 comment 2 replies
-
here is a solution I come up with (also prob. not best solution for this): |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I just take a look at your solution and in the image editor version <=
4.2.9
it is the best thing you can do to solve it. However, I released version4.3.0
with a new option which makes it easier for users to set the opacity and also solve the opacity in the freestyle drawing which look not really smooth.Below is an example of how to do it, but feel free to use
customWidgets
as well. If you use your own solution, I recommend using the newsetOpacity
method in the paint editor and not to set the opacity directly on the color.FYI: I noticed that you set the
customPixelRatio
to1
. I'm not sure if you really want this, but I recommend not setting a value there because the image editor w…