It's spinning in the wrong direction!
World
31–40 of 102 posts
Re: World
#32Re: World
#33It's spinning in the wrong direction!
Re: World
#34Re: World
#35Re: World
#36(note that it will not work like the original and make a pretty globe, because it's dependent on the exact character positioning)
Re: World
#37Re: World
#38Earlier quoted context omitted.
https://s3.amazonaws.com/xhroot/world.html Happy?
nice work. how did you know? For anyone wondering the difference, 0>cos on line 8 is now 0<cos.
This is true in almost any context involving 2D/3D graphics, not just for this particular example. It's much more efficient than trying to sit there and think through the math or figure out what does what. But of course you learn less that way, so it's a tradeoff. And sometimes it's less efficient if there are too many combinations to efficiently bruteforce, or if it takes too long to test each iteration. But we live in the age of rapid-iteration javascript.
Re: World
#39Reminds me of the old 1992 winner of the IOCCC by Brian Westley (who consistently entered some of the most impressive programs in that contest). It doesn't spin, but it prints a map of the provided lat/long. http://www.ioccc.org/1992/westley.hint main(l ,a,n,d)char**a;{ for(d=atoi(a[1])/10*80- atoi(a[2])/5-596;n="@NKA\ CLCCGZAAQBEAADAFaISADJABBA^\ SNLGAQABDAXIMBAACTBATAHDBAN\ ZcEMMCCCCAAhEIJFAEAAABAfHJE\ TBdFLDAANEfD…
There is another program arranged in a similar circular shape that calculated pi experimentally using it's own source code as the circle to test.
Re: World
#40Earlier quoted context omitted.
Go to the Sources tab and click the || button to pause javascript. If you're wondering where the code is, just curl the URL :) (or, with Web Inspector open, refresh the page, go to the Network tab and select the only request.
You can just look at the source (Ctrl+Alt+U in Chrome). It's an HTML document with a single script tag in it.