Straight Line Drawing Mechanism

Input: violet gear.
Green, blue, yellow and pink bars create a parallelogram mechanism.
Length of green bar: La
Lengths of blue and yellow bars: Lb
Length of pink bar: La + Lb
All gears have the same tooth number.
End point of pink bar traces a straight line.
Its length is less than 4Lb (green crank can’t make a full revolution).