base code & draw a shape with LineLoop Primitive