draws a simplicial complex using Canvas2D context