I have unobfuscated and simplified this animation into a jsfiddle available here. Nevertheless, I still don’t quite understand the math behind it.
Does someone have any insight explaining the animation?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your fiddle link wasn’t working for me due to a missing interval speed, should be using
getElementByIdtoo (just because it works in Internet Explorer doesn’t make it cross-browser).Here, I forked it, use this one instead:
http://jsfiddle.net/spechackers/hJhCz/
I have also cleaned up the code in your first link:
The result of the code in the two links you provided are very different from one another.
However the logic in the code is quite similar. Both use a for-loop to loop through all the characters, a mod operation on a non-integer number, and a
bitwisexor operation.How does it all work, well basically all
I can tell you is to pay attention to the variables changing as the input and output change.All the logic appears to be some sort of
bitwisecryptic way to decide which of 2 characters or a line break to add to the page.I don’t quite follow it myself from a
calculus or trigonometrysort of perspective.