def get_parallels(bezier2, width):
<EOL>c1x, c1y = bezier2[<NUM_LIT:0>]<EOL>cmx, cmy = bezier2[<NUM_LIT:1>]<EOL>c2x, c2y = bezier2[<NUM_LIT:2>]<EOL>cos_t1, sin_t1 = get_cos_sin(c1x, c1y, cmx, cmy)<EOL>cos_t2, sin_t2 = get_cos_sin(cmx, cmy, c2x, c2y)<EOL>c1x_left, c1y_left, c1x_right, c1y_right =get_normal_points(c1x, c1y, cos_t1, sin_t1, width)<EOL>c2x_left, c2y_left, c2x_right, c2y_right =get_normal_points(c2x, c2y, cos_t2, sin_t2, width)<EOL>cmx_left, cmy_left = get_intersection(c1x_left, c1y_left, cos_t1, sin_t1,<EOL>c2x_left, c2y_left, cos_t2, sin_t2)<EOL>cmx_right, cmy_right = get_intersection(c1x_right, c1y_right, cos_t1, sin_t1,<EOL>c2x_right, c2y_right, cos_t2, sin_t2)<EOL>path_left = [(c1x_left, c1y_left), (cmx_left, cmy_left), (c2x_left, c2y_left)]<EOL>path_right = [(c1x_right, c1y_right), (cmx_right, cmy_right), (c2x_right, c2y_right)]<EOL>return path_left, path_right<EOL>
Given the quadraitc bezier control points *bezier2*, returns
control points of quadrativ bezier lines roughly parralel to given
one separated by *width*.