A framework for element-based computer graphics