drawing primitives for interactive marble diagrams