add constructor make-segment and selectors
add some painter with segments->painter