Varying Extrusion depth with gestureCapture

Hi.
I’m currently using gestureCapture with xyz inputs to create lines, which I output as a SOP, then extrude to create a 3d shape (essentially for drawing lines is 3d space). I’m wanting to vary the width and depth of my extrusion (i.e. so the extruded line is going from fat to thin, etc), similarly to how gestureCaptures TOP output works (although that is based on speed, and much simpler random variation would be fine for what I’m doing).

Does anyone know a way to do this?
Thanks!

In gestureCapture, the “color” component is generating slowly-changing random color channels. You can instead make the width change randomly by replacing in line_master0 the CHOPs "select’, “math_speed” and “scurve_width” to get one those channels and naming it “width”.