New FREE script ALERT! - Tapered Stroke - Available in the Open-Source Rive Script Library
I’ve made something that can come in handy to many - a tapered stroke AND you can control whether it is aligned to the middle, outside or inside of the path
Available at - # Open-Source Rive Script Library
SETUP
-- 1. Draw an open path (pen tool) in the Rive editor.
2. Add a FILL to the path shape and set its colour. The effect replaces the
open path with a closed envelope polygon that the fill renderer draws.
Do NOT apply to a stroke — strokes will outline the envelope shape.
3. Effects tab → Add Script Effect → choose TaperedStroke.
4. thicknessLeft / thicknessRight: perpendicular offset distance on each side.
5. taperStart / taperEnd: % of path length that narrows to a point (0–100).
0 = blunt end, 100 = taper covers the entire path from that end.
Both can be 100 simultaneously (full taper from both ends → diamond shape).
6. taperEase: easing profile for the taper ramp.
"linear" — constant rate, sharp transition
"smooth" — C1 smoothstep (default), organic feel
"easeIn" — slow start, accelerating taper
"easeOut" — fast start, decelerating taper
"easeInOut" — slow start + slow end, S-curve
7. roundEnds: when true, adds semicircular caps at path start and end.
8. samples: increase for smoother curves on tight bends; decrease for perf.