nateshmbhat/touchable

how to paint many elements? loop?

flv999 opened this issue · 0 comments

Hello. I am new to programming. But it is the first time that I write a question about a problem that I cannot solve.
I have to reproduce about 100 drawings on the canvas, which are mostly the same shapes but in different positions. Do I have to create a function to draw each of them, or is there a way to reuse the same function using a loop? The only way I get each form to be toucheable by itself is by calling its own function, I can't reuse it.
I've seen an example from Joshep Muller on Medium, but it offers the full code and I'm not able to reproduce it.
Thanks.