I'm currently developing an image annotator that uses paper.js
PointText
objects as part of its functionality. One feature we are exploring is the capability for users to highlight different sections of text within a specific PointText
object with varying colors and font sizes.
While browsing the paper.js
website, I came across the Gradient
option, but implementing it might feel like using a workaround, assuming it is even feasible in the first place. Additionally, making sure it displays correctly in the textarea
used for editing the PointText
seems like another messy task; I am aiming for a more elegant solution.
Any proposed solutions should allow for draggable text within the canvas boundaries.
As of now, I don't have any code snippets to share since I haven't found a suitable approach to experiment with. However, I'm reaching out to the SO community to see if there are any potential solutions available.