Straight line with variable stroke

Is it possible to draw a line with variable stroke (e.g., changing linearly from a specified starting value to a specified end value)?

Acorn doesn’t offer any way to do this, but we’ll take it as a feature request.