resure drawing-primitives