4 ms·
This is extremely cool, however the source code does look a little different than the output (the output only has '#' chars, but the source has letters and othe
by saganus 10y ago
This is extremely cool, however the source code does look a little different than the output (the output only has '#' chars, but the source has letters and other chars besides #). Does that still count as a quine? (don't really care though... this is very cool).
Any idea how this works? It's just to much for my mind to bear I think.
- stouset 10y agoI'm not sure what you're talking about. The output is the entire source with the central globe rotated by a user-selectable number of degrees, including 0. The output isn't just the globe in the center. Edit: Ah, nvm. It looks like this is a Javascript port of a famous Ruby quine from 2010, the Qlobe[1]. [1]: http://d.hatena.ne.jp/ku-ma-me/20100905/p1 http://d.hatena.ne.jp/ku-ma-me/20100905/p1
- saganus 10y agoWell, not really. I checked the source and you can see here: https://jsfiddle.net/f17yr7qh/ https://jsfiddle.net/f17yr7qh/ For example, line 9 of the source: ~(32sin(o)/* , (W#####Xx######.P^ T % */sin(.5+y/7))\ You can see that there are more chars than just '#' inside the "globe", like '(W' and 'Xx' and '.P^' I even changed those inside the globe and the effect is non obvious. Sometimes it stops working sometimes it works fine with other chars. No idea why.