Curvature of the Mind

Thoughts from a Recreational Physicist

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.

Filed Under: Experiments, Physics Tagged With: generative, html5, javascript

Logging In...

Profile cancel

Sign in with Twitter Sign in with Facebook
or

Not published

  • 1 Reply
  • 1 Comment
  • 0 Tweets
  • 0 Facebook
  • 0 Pingbacks
Last reply was February 18, 2012
  1. yep
    View February 18, 2012

    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.

pages

  • 3D harmonic oscillator eigenfunctions
  • About
  • Images
    • 2 simple
    • atomic
    • IFS fractals: 2 transformations
    • random
  • Inspiration
  • Work
    • Atomic Orbitals
    • The surprises keep comming
    • Voronoi

Copyright © 2021 · Curvature of the Mind 2 on Genesis Framework · WordPress · Log in