3 ms·
Can someone explain this really simply for me? I understand that the whole thing is actual source and its manipulating the center commented area. But I am havi
by josephagoss 13y ago
Can someone explain this really simply for me?
I understand that the whole thing is actual source and its manipulating the center commented area. But I am having trouble following the code.
- lutusp 13y ago> Can someone explain this really simply for me? Imagine that you had to write it yourself. First, you would create some strings approximately representing latitudes on Earth and their associated land masses -- one string for maybe 10-20 degrees of latitude, from some southerly latitude to a northerly one. Nest, you would figure out a way to print substrings of the strings, at specific points within the strings that you would choose. Next, you would arrange that the substring printer would wrap around to the beginning of the string in the event that it was asked to print a greater length than the remaining characters available from the specific starting point to the end. By wrapping around, you create the illusion of a circle of characters, like on a globe. Next, you would think of a way to write into a specially formatted executable text file having a roughly circular central section that is commented out, i.e. not executable. Next, you would arrange that the specially formatted text file be the running program, and the central comment area represent the display of the earth. Next, just to blow minds, you would print the current form of the program text file on the console, after each animation cycle filled the comment area. Finally, you would create the illusion that the earth is rotating clockwise as seen from the north pole (the opposite of reality) just to provoke people who know a bit of astronomy.