Skip to content

Instantly share code, notes, and snippets.

@yamamaya
Last active January 1, 2016 20:49
Show Gist options
  • Save yamamaya/8199905 to your computer and use it in GitHub Desktop.
Save yamamaya/8199905 to your computer and use it in GitHub Desktop.
書初め2014
<script type="text/javascript">
sin = Math.sin;
cos = Math.cos;
for ( i = 0 ; i < 8 ; i++ ) {
document.write( String.fromCharCode( Math.round( 13202.5+540.8*sin(i)+14948.3*cos(i)+7978.9*sin(2*i)-406.5*cos(2*i)-2614.3*sin(3*i)-5237.5*cos(3*i)+1847.2*sin(4*i)+2334.7*cos(4*i)+10577.7*sin(5*i)-2711*cos(5*i)+11858.1*sin(6*i)+21036.9*cos(6*i)+7818.5*sin(7*i)+1605.5*cos(7*i)-8761*sin(8*i)-9131.8*cos(8*i) ) ) ) ;
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment