More envelopes

This time I’m not taking up all of the screen. Still working with polynomials and trigonometric functions.

Related Images:


Posted

in

,

by

Comments

One response to “More envelopes”

  1. yep Avatar
    yep

    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.

Leave a Reply

Your email address will not be published. Required fields are marked *