LogoLogo
  • Home
  • Projects
  • About
  • Contact

Lorenz Attractor – HTML5 Stylee

Devon O. · February 06, 2010 · Life · 1 comments
4

First, let me just say this up front, I will give up Flash when they pry it from my cold dead fingers. When Flash is outlawed only outlaws will code in Actionscript. Add any other cliches you’d like to, here. The point is, I love the Flash Platform and will continue to use it for years to come. But, let’s face it, anyone who refuses to expand their skillset – whether it be with HTML5, Unity3D, or any other technology – or who at least chooses not to know their enemies won’t last very long in this game.

So, that in mind, here is my first go at HTML5: a simple Lorenz Attractor. Not the most way-out thing folks have done, but ya gotta start somewhere.

A few things I learned along the way:

  • Trying to code in a OO fashion with Javascript is a serious pain in the ass. It’s funny that people have said this is the future of the web. For a Flash developer, it’s like stepping backwards in time 4 or 5 years. Any of you out there remember coding classes in Actionscript 1? Well, blow the dust off that nightmare memory ’cause it’s all coming back. As @ezekielDFM commented on Twitter, “it’s like doing all the things you trained yourself NOT to do.” It’s really a shame Ecmascript 4 was shot down. It would have been the perfect scripting language to complement the HTML5 canvas.
  • I’m not particularly keen on the fact that all code essentially becomes “open-sourced” by anyone doing a “view source” with their browser. Yes, I know that .swf files aren’t particularly difficult to decompile, but it does take a bit more effort to both get then reassemble in a functional way. And, in theory, decompiling .swf’s that aren’t your own is illegal, so that may prevent 4 or 5 folks from doing it. For something as simple as my little Lorenz attractor, it ain’t that big of a deal – but if I really don’t want to spend days, weeks, or months on a large commercial project only to have some script kiddie yoinking it off the web and doing the same in a few minutes with little to no modifications. And would the client be happy about that? Probably not. I’m sure there’s some way to obfuscate js though. I’ll look into it when I care more.
  • I used Processing.js for this experiment, which, despite my general dislike of javascript, I really liked a lot. Once that is, I figured out how to actually get it going. That proved a little more difficult than expected.
  • All in all, html5 isn’t a horrible thing, but in it’s current state it seems to be more of just a “toy” than what detractors of Flash call Flash. I really feel like diving into some serious object oriented Actionscript now, just to wash away the taste…
  Facebook   Pinterest   Twitter   Google+
html5javascriptprocessing.js
  • The Webcam Warholizer
    March 19, 2010 · 1 comments
    2016
    7
    Read more
  • An Ending and a Beginning
    December 31, 2007 · 4 comments
    1792
    3
    Read more
  • Facebook and Flash – A Book Review
    January 23, 2011 · 6 comments
    5439
    6
    Read more
1 Comments:

Leave a Comment! Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Devon O. Wolfgang

AIR | Unity3D | AR/VR

Unity Certified Developer

Technical Reviewer of “The Essential Guide to Flash CS4 AIR Development” and “Starling Game Development Essentials”

Reviewer of “The Starling Handbook”

Unity Engineer at Touch Press.

Categories
  • Actionscript (95)
  • AIR (16)
  • Flash (99)
  • Games (7)
  • Liberty (13)
  • Life (53)
  • Shaders (20)
  • Unity3D (21)
Recent Comments
  • MainDepth on Unity Ripple or Shock Wave Effect
  • Devon O. on Unity Ripple or Shock Wave Effect
  • Feral_Pug on Unity Ripple or Shock Wave Effect
  • bavvireal on Unity3D Endless Runner Part I – Curved Worlds
  • Danielius Vargonas on Custom Post Processing with the LWRP
Archives
  • December 2020 (1)
  • December 2019 (1)
  • September 2019 (1)
  • February 2019 (2)
  • December 2018 (1)
  • July 2018 (1)
  • June 2018 (1)
  • May 2018 (2)
  • January 2018 (1)
  • December 2017 (2)
  • October 2017 (1)
  • September 2017 (2)
  • January 2017 (1)
  • July 2016 (1)
  • December 2015 (2)
  • March 2015 (1)
  • September 2014 (1)
  • January 2014 (1)
  • August 2013 (1)
  • July 2013 (1)
  • May 2013 (1)
  • March 2013 (2)
  • December 2012 (1)
  • November 2012 (1)
  • September 2012 (3)
  • June 2012 (2)
  • May 2012 (1)
  • April 2012 (1)
  • December 2011 (2)
  • October 2011 (3)
  • September 2011 (1)
  • August 2011 (1)
  • July 2011 (1)
  • May 2011 (2)
  • April 2011 (2)
  • March 2011 (1)
  • February 2011 (1)
  • January 2011 (2)
  • December 2010 (3)
  • October 2010 (5)
  • September 2010 (1)
  • July 2010 (2)
  • May 2010 (5)
  • April 2010 (2)
  • March 2010 (7)
  • February 2010 (5)
  • January 2010 (5)
  • December 2009 (3)
  • November 2009 (1)
  • October 2009 (5)
  • September 2009 (5)
  • August 2009 (1)
  • July 2009 (1)
  • June 2009 (2)
  • May 2009 (6)
  • April 2009 (4)
  • March 2009 (2)
  • February 2009 (4)
  • January 2009 (1)
  • December 2008 (5)
  • November 2008 (2)
  • September 2008 (1)
  • August 2008 (6)
  • July 2008 (6)
  • June 2008 (9)
  • May 2008 (4)
  • April 2008 (3)
  • March 2008 (4)
  • February 2008 (9)
  • January 2008 (7)
  • December 2007 (6)
Copyright © 2021 Devon O. Wolfgang