More envelopes January 13, 2012 by Andy Brummer 1 Comment This time I’m not taking up all of the screen. Still working with polynomials and trigonometric functions.
You code instantiates Math object every iteration.
Instead, try the following (and note the increase in FPS after the change):
var mysin = Math.sin;
var myfloor = Math.floor
. . .
. . .
var draw = . . .
. . .for
. . . . . . strokeStyle = . . . ((myfloor(t/3 . . .
. . . . . for
. . . . . . . . . lineTo( 10*mysin(i . . .
[WORDPRESS HASHCASH] The poster sent us ‘0 which is not a hashcash value.