Oct-18-2022, 09:00 PM
Hello,
I need help please. I am trying to figure out how can I take any 2d image I got and pass it in a python program with outlines that would act as borders / collision area ? For example, I take a 2d maze picture made of squares, the red ones are borders and the rest is the “walk area” (sample picture bellow)
).
Or I take a .png of a level i designed and draw lines to delimitate stuff and each colors should lead to a different action (red = border, blue = enter / quit area, green = grass, I don’t know)
Do you know how can I do this and what’s the name of this technique ?
PS: I am new to programming and Python, be nice with me senpais
Thank you
I need help please. I am trying to figure out how can I take any 2d image I got and pass it in a python program with outlines that would act as borders / collision area ? For example, I take a 2d maze picture made of squares, the red ones are borders and the rest is the “walk area” (sample picture bellow)
![[Image: stickers-vector-2d-red-maze.jpg.jpg]](https://img.pixers.pics/pho_wat(s3:700/FO/37/72/37/27/700_FO37723727_47292bce2d66ee7123d9df09330d2a6d.jpg,700,691,cms:2018/10/5bd1b6b8d04b8_220x50-watermark.png,over,480,641,jpg)/stickers-vector-2d-red-maze.jpg.jpg)
Or I take a .png of a level i designed and draw lines to delimitate stuff and each colors should lead to a different action (red = border, blue = enter / quit area, green = grass, I don’t know)
Do you know how can I do this and what’s the name of this technique ?
PS: I am new to programming and Python, be nice with me senpais

Thank you