12 August 2008

flash: bezier curve point

A bit of actionscript to interpolate a point at location 0<=i<=1 along a bezier curve defined by an array of control points, cPoints, of Points (from the flash.geom package):

function getBezierPoint(cPoints:Array, i:Number):Point {
if (cPoints.length > 2) {
var subCPoints:Array = new Array();
for (var j:Number = 0; j < cPoints.length - 1; j++) {
subCPoints.push(Point.interpolate(cPoints[j], cPoints[j+1], 1-i));
}
return getBezierPoint(subCPoints, i);
} else {
return Point.interpolate(cPoints[0], cPoints[1], 1-i);
}
}


Flash probably has this sort of function built in, but oh well, it's done =)

04 August 2008

Lolla's Over

Before I crash for the night, I wanted to share one of my favorite moments of the weekend:

01 August 2008

Lollapalooza 2008

Lolla is happening. My legs haven't felt this kind of exhaustion in ages.

IMG_1311

Here's a set of Lolla pics I'll update over the weekend:

Adam's Lolla 08, or as a feed.

My immediate reactions:
- Holy Fuck rocks
- The Enemy (UK) has some good potential (super young band)
- Gogol Bordello is as amazing live as recorded (come on! punk gypsy!)
- Bloc Party was a bit underwhelming (I saw them a while ago at the Congress, and that show was fantastic).
- Radiohead... well, it's Radiohead. With fireworks (I'll link this later).
- Oh, and CSS is as bizarre as expected.