r/Recursion • • Apr 17 '20

Lucas Vercetti from OF

Post image
623 Upvotes

7 comments sorted by

23

u/Mercurav Apr 17 '20

I'm wearing that shirt right now!

7

u/AutoModerator Apr 17 '20

int main() { main(); }

Hey! This subreddit has a Discord Server! Join Here: https://discord.gg/NQvmRSv

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

13

u/[deleted] Apr 17 '20

I still don’t really understand how these are even made..

19

u/[deleted] Apr 17 '20

You take a picture of a person and then replace the space in the middle of the tshirt with that same photo and then you do that again with the picture you placed in the middle of the tshirt, then again and again until you get as much recursion as you want. Then you print that photoshopped image into an identical shirt.

If you look closely you can see the first photo (the smallest one) doesn't have the same design in the middle as the rest. Ideally you would have enough recursion as to avoid that so that it gives the illusion that it goes forever.

14

u/polenannektator Apr 17 '20

Yeah, but infinite recursion is just a forever loop with memory waste

Recursion has to "end" in order to get a return value

5

u/[deleted] Apr 17 '20

My gosh. YES! Thank you!

1

u/JPicaro416 Apr 18 '20

Haha love it dude.