Archive for May, 2008

SVG in Processing

Saturday, May 31st, 2008

The new version of Processing includes better XML manipulation and a way to load an SVG from memory. Thus, new avenues are opened for incorporating drawings into Processing sketches.

Here are some first results. The XML parser / SVG renderer is efficient enough to support high framerates.


Processing sketches posted

Wednesday, May 28th, 2008


Source code, originally uploaded by chazmatazz.

I have posted some processing sketches in the processing.org flickr group. I create a random set of RGB colors and then place them in the correct location in a 3D RGB colorspace (so the coordinate and the colors are the same). The user then uses the mouse to move the colorspace around the window, creating a drawing. The source code is only 48 lines.

Dirtiest US Power Plants

Sunday, May 25th, 2008

I have started a series on the dirtiest power plants in the US, using EPA data. Each map shows each power plant in the US. Small white dots are small power plants generating less than 2 million Megawatt-hours per year (MWh/year). Large white dots are large power plants that generate more than 2 million MWh/year. The black dots are large power plants that are in the top 50 CO2 power plant polluters, top 50 power plant NOx polluters, and top 50 power plant SO2 polluters. This was done in Processing. For more information see http://www.dirtykilowatts.org/

Map of Superfund sites

Tuesday, May 20th, 2008

I created a map of Superfund sites in Processing. it’s a PDF. Strewth!

Using JSDoc for PHP documentation

Monday, May 12th, 2008

It seems that JSDoc is easier to use than PhpDocumentor or Doxygen, especially when using custom tags. I just came up with the stellar idea of using JSDoc to generate PHP documentation. PHP’s reflection API includes a way to read the JavaDoc-style comments on each function. What I will do is take these JavaDoc-style comments and make fake JavaScript functions to go with them, and then parse the new ‘JavaScript’ file in JSDoc.

I’ll provide details and tell you how it works in a later post.