Toxiclibsjs v0.1.0

One year ago, I began porting a couple classes from Toxiclibs over to JavaScript. Now with 90 classes ported and several more nearly completed, Toxiclibsjs is beginning to take shape.

As of today, Toxiclibsjs is being built to the AMD API. It can be used with RequireJS, Node.js or the common way of a single global object as before. Being available in this manner means that not only is Toxiclibsjs available for the same uses as before, but now it can be used on the server-side and with desktop-based javascript programming environments such as Plask.

If you would like to use toxiclibsjs within Node.js it is now available on NPM and can be installed easily:

$ npm install toxiclibsjs

Along with this progress there are now several new classes:

  • toxi.math.noise.PerlinNoise
  • toxi.math.noise.simplexNoise
  • toxi.math.conversion.unitTranslator
  • toxi.processing.ToxiclibsSupport
  • toxi.THREE.ToxiclibsSupport

Toxiclibsjs now follows the same package structure as the original Toxiclibs. So, if you previously used toxi.Vec2D, now you would use toxi.geom.Vec2D and this is consistent with all documentation for the original library. This can have a positive impact on users of both Processing and Processing.js because now you can refer to your toxiclibs class in long-form and in many more scenarios it will work without altering your code. Along these same objectives, one of the new classes that has been added is toxi.processing.ToxiclibsSupport this class, available in both versions will also ease moving between environments.

Since the release of Toxiclibsjs, I have tracked down several examples of its use on the internet, such as Mary Huang‘s Sake set Creator for Shapeways and Greg Kepler‘s Spider Web generator. I have also used it several of my own projects, such as our studio site for KVS Studio and sketches such as this Simplex Trails sketch I did recently.

Progress is being made to follow the path that Karsten Schmidt has set in his post The Road Ahead. There is now more documentation in the github repository. I will continue to be improving documentation and will be providing unit tests in the future.

Here are some links to the pieces mentioned as well as the new examples on the site:

View complete entry

Proposal for a more-private Facebook “Like”

The Facebook “Like” button is a bit cruel. It tracks every site you go to and stores that information on their servers. They use that information to target you and your friends with advertising. To many, this is an un-ethical practice, but site owners have a reliance on it for generating traffic. The same sites [...]

Fullscreen Solutions for Processing

In many scenarios, I want my final Processing application to launch in fullscreen when I have completed it. I usually don’t want any visibility of an operating system or any other process during an installation, performance or otherwise. From my experience with Processing, I have noticed the solution is often different than the last, its [...]

Toxiclibs.js gets VerletPhysics2D

It’s been four months since I initially started creating Toxiclibs.js a JavaScript version of toxiclibs. So far, over 65 ‘classes’ have been written. These classes cover a wide spectrum of functionality that I believe can be helpful on any web project. There are currently 18 examples on the site, most of which have focused on [...]

Toxiclibs.js – open-source computational design

I have initiated a new open-source project titled Toxiclibs.js. Toxiclibs.js is a JavaScript port of Karsten Schmidt‘s expansive toxiclibs library. Contributed libraries are an excellent perk of using Processing, and to me there is no library that stands as strong as Karsten’s. Toxiclibs encapsulates a lot of the complexity involved with common computational design problems [...]

Indexical Architecture @ Spark Festival

My project, Indexical Architecture, commissioned by Northern Lights Foundation as part of the Art(ists) on the Verge 2 Fellowship is currently installed as a part of Minneapolis’ annual Spark Festival on display through October 3rd.

The Simple Solution

In 2007, I completed a fun project that I call Social Murmurs. The project required sensing when people sat on a bench, but at the time I had limited electronics experience, so I found the simplest solution I could.

Phase Shifts

My recent past has been full of transition and I’m very excited to announce the recent changes in my life. Recently… I participated in the Twin Cities Maker Minne-Faire; I stayed up for more than 24 hours straight with a group of talented friends building a website for Child Protection International (new site not up [...]