I really need help
So... I'm a high school student and not to long ago I took a multi-media class where I did this project in adobe photoshop were we took an image from a graphic novel and changed the colors to make it look like something much different, the problem is that I used a tool then that would really help me out now... but I don't have a single clue what it is! I remember what it did but it's a little hard for me to describe, but what I remember it doing was that it had a bot (or something I'm not entirely sure about it) detect all the line segments and shapes on the image and ungrouping them all automatically. So all you had to do was select a line segment and alter the color of it or whatever you wanted to do to it. I still sadly can not remember for the life of me what it is/was and I feel like a doofus for not knowing! And that brings me here, I just really hope someone can help me.