Implement line_aa
Anti-aliasing
MAINT: bezier_segment is private
MAINT: val in [0,1]