Maybe these examples from the collection will help you?
ColoredGridWithSprites PointInPolygon ConstructionBasis
or Construction of frames with contour/profile