Toxiclibs.js – open-source computational design

Published on Jan. 10, 2011
by Kyle

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 and has a very large scope of what it can accomplish.

A great deal of my work involves using HTML5′s canvas tag for generative design; much of the time with the help of Processing.js. Repeatedly, I have spent the time of stripping out references to toxiclibs to make my code work with PJS. I worked-around porting the library for some time because it felt like too large of a project to do by myself. Last week as I was working on a WebGL visualization, I decided it was worth it to port the Vec3D class, and couldn’t stop there. I decided that this has to be done, I badly want these libraries and there have got to be many others thinking the same thing. I encourage anyone interested to contribute to the project.

I am hosting my source at gitHub, http://github.com/hapticdata/toxiclibsjs, and I have prepared an intial round of examples that you can view at http://haptic-data.com/toxiclibsjs.

The code already includes several classes for both 2D and 3D use, there are currently examples on several topics, such as using the TColor class for blending, converting and modifying colors, using Line2D, Vec2D and many others. If you aren’t a PJS user, one of the great things about this library is that it has no dependency on Processing.js. This is all JavaScript, with no dependencies, it can be used with other libraries, such as Raphael.js, or it can be used by itself.

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Twitter

Leave a response
Trackback URL: Toxiclibs.js – open-source computational design.