Last post Sep 11, 2017 02:13 AM by Cathy Zou
Sep 07, 2017 07:53 PM|demarkr|LINK
I am making a game, And I want to be able to draw a level in photoshop. And the game to read it.
For this, I need a way to determine what are rectangles in a picture.
For example, I have this kind of picture:
And I want the program to realize what is a rectangle, What it's size and position.
(Rectangles highlighted in red.)
I thought about using a For loop for each Y value. And reading the green pixels one by one. But I just can't figure out the logic. And my head hurts when I think about it too much.
Any genius that can help me?
Sep 11, 2017 02:13 AM|Cathy Zou|LINK
From the information you provided, I couldn’t get full understanding what you want to do.
Would you please upload your pictures by using following link for I couldn’t see any picture in this threads.