Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. canvas + fast javascript is cool

canvas + fast javascript is cool

Scheduled Pinned Locked Moved The Lounge
c++javascripthtmlcomdesign
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Andy Brummer
    wrote on last edited by
    #1

    After a discussion a month or so back about what is and isn't a fractal, I've been teaching myself some more current javascript and DOM techniques by screwing around with some old fractal generating code rewritten in javascript. In chrome and firefox it is suprisingly fast, and with the alpha channel in the canvas, the rendering looks much better than I ever did with my 28 year old C++ version. Yes, the UI is horrible, and yes I'm just calling eval on a JSON structure stuck in a textarea, but I've been having fun with it and just wanted to share. http://www.brummerfamily.com/curvature/fractal.htm[^]

    I can imagine the sinking feeling one would have after ordering my book, only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon

    D L U D 4 Replies Last reply
    0
    • A Andy Brummer

      After a discussion a month or so back about what is and isn't a fractal, I've been teaching myself some more current javascript and DOM techniques by screwing around with some old fractal generating code rewritten in javascript. In chrome and firefox it is suprisingly fast, and with the alpha channel in the canvas, the rendering looks much better than I ever did with my 28 year old C++ version. Yes, the UI is horrible, and yes I'm just calling eval on a JSON structure stuck in a textarea, but I've been having fun with it and just wanted to share. http://www.brummerfamily.com/curvature/fractal.htm[^]

      I can imagine the sinking feeling one would have after ordering my book, only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon

      D Offline
      D Offline
      Dario Solera
      wrote on last edited by
      #2

      Andy Brummer wrote:

      calling eval on a JSON structure

      That's pretty much what happens when you load JSON via AJAX, so it's pretty standard.

      If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe, but not a personality. [Charlie Brooker] ScrewTurn Wiki, Continuous Localization and My Startup

      1 Reply Last reply
      0
      • A Andy Brummer

        After a discussion a month or so back about what is and isn't a fractal, I've been teaching myself some more current javascript and DOM techniques by screwing around with some old fractal generating code rewritten in javascript. In chrome and firefox it is suprisingly fast, and with the alpha channel in the canvas, the rendering looks much better than I ever did with my 28 year old C++ version. Yes, the UI is horrible, and yes I'm just calling eval on a JSON structure stuck in a textarea, but I've been having fun with it and just wanted to share. http://www.brummerfamily.com/curvature/fractal.htm[^]

        I can imagine the sinking feeling one would have after ordering my book, only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon

        L Offline
        L Offline
        LloydA111
        wrote on last edited by
        #3

        Wow, that's pretty cool :)

        Andy Brummer wrote:

        the rendering looks much better than I ever did with my 28 year old C++ version.

        Could that simply be because 28 years ago, screen resolutions were really small?


        Programming is 10% science, 20% ingenuity, and 70% getting the ingenuity to work with the science. WYSIWYMGIYRRLAAGW: What You See Is What You Might Get If You’re Really Really Lucky And All Goes Well.

        1 Reply Last reply
        0
        • A Andy Brummer

          After a discussion a month or so back about what is and isn't a fractal, I've been teaching myself some more current javascript and DOM techniques by screwing around with some old fractal generating code rewritten in javascript. In chrome and firefox it is suprisingly fast, and with the alpha channel in the canvas, the rendering looks much better than I ever did with my 28 year old C++ version. Yes, the UI is horrible, and yes I'm just calling eval on a JSON structure stuck in a textarea, but I've been having fun with it and just wanted to share. http://www.brummerfamily.com/curvature/fractal.htm[^]

          I can imagine the sinking feeling one would have after ordering my book, only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon

          U Offline
          U Offline
          User of Users Group
          wrote on last edited by
          #4

          That's simply due machines getting faster, and it is cool. Add a common 150MB penalty of WPF and Silverlight bloat, you get pointless flashiness and nothing more. You can see how low and stable memory use is for Chrome. And this doesn't depend on a single proprietary language with new dynamic nonsense, or LINQ, MIL, or runtime being available on your device or machine. Apart from that failing on IE7, no wonder that Chrome and Firefox are on the rise, and more is about to be done right. Google has worked very hard to get the CPU use for JS down because it is still very high. And once the verifiable code and HTML5 is in place the silly race (as most things) between XYZ and MS is over. The only gripe is that JS could have been strongly typed rather than weakly, but it simply works and delivers on portability.

          1 Reply Last reply
          0
          • A Andy Brummer

            After a discussion a month or so back about what is and isn't a fractal, I've been teaching myself some more current javascript and DOM techniques by screwing around with some old fractal generating code rewritten in javascript. In chrome and firefox it is suprisingly fast, and with the alpha channel in the canvas, the rendering looks much better than I ever did with my 28 year old C++ version. Yes, the UI is horrible, and yes I'm just calling eval on a JSON structure stuck in a textarea, but I've been having fun with it and just wanted to share. http://www.brummerfamily.com/curvature/fractal.htm[^]

            I can imagine the sinking feeling one would have after ordering my book, only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon

            D Offline
            D Offline
            DaveX86
            wrote on last edited by
            #5

            Chaos Pro[^] is an excellent freeware fractal generator

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups