nanovg icon indicating copy to clipboard operation
nanovg copied to clipboard

Line Styles (dashed, dotted, and glow)

Open rgb2hsv opened this issue 2 years ago • 1 comments

This PR adds different line styles by generating uv textures along stroke paths and then applying a shading style. Extra vertices are inserted so that the UV distortion occurs only at the joint between line segments. There should be no distortion along straight paths, which is preferred for a rectangular selection tool.
dump

rgb2hsv avatar Jul 30 '22 17:07 rgb2hsv

Added fixes for gles and addressed bug where line UVs get reverse when winding order is enforced.

rgb2hsv avatar Feb 24 '24 18:02 rgb2hsv