I'm not sure if what I want to do is possible, as I've Googled this for a long time and I'm not coming up with any answers. I have one switch and two lights for that switch. I want the power to start at one light, which is furthest from the switch, and then continue to the next light, and finally end at the switch. This would be the best way to use the least amount of wire.
For the first 3 images below, disregard the wiring. I just want to show where the switch, lights, and cables are.
This diagram below would be ideal, except I want the power source to come in to the right-hand light from the right, and continue on to the left:
This diagram below is close, but I want another light in between the switch and the light:
This diagram below is the closest to what I need that I've found, if we pretend the outlet is a light. But I don't want the power source in the middle, because the place for my switch is furthest from the power source:
I'm not an electrician, I'm just DIY, so having a diagram that shows what I need would be very helpful. I found the one below, but it's confusing to me because I don't know what the red is, and I'm not sure if grounds are included in it. I find the first three images easy to understand. Is the final image below correct, safe, and to code, and does it have any special considerations for grounding? If you have a diagram like the first three, that would be super easy for me to understand.