The "tile sampler color" should do the trick.
It can be an intimidating node with so many inputs and options, but you can ignore everything you don't need.
First you will need some shapes with a transparent background. Using the alpha merge node is a clean way to do this.
Use the shape as alpha and add a uniform color.
I'm just using white, as the tile sampler will add the necessary colors.

On the tile sampler, you have to set "pattern" to "pattern input", and there is a slider to allow multiple inputs for multiple shapes.

And if you scroll all the way down, there is the option to use the color input map, and set the slider under it to 1
