Entries:
Posts:

Something went wrong getting user information from Channel 9

Latest Achievement:

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Something went wrong getting the Visual Studio Achievements

Right click “Save as…”

• MP3 (Audio only)
• Low Quality MP4 (approx. 500-800kbps)
• Mid Quality WMV (Lo-band, Mobile)
• High Quality MP4 (best available)
• Mid Quality MP4 (approx. 2-2.5Mbps)
• High Quality WMV (best available)

See images and generative art sketch in action

In this lesson, we look at loading external image files and painting them into our sketch. We also start glitching our logic and play with some simple recursive principles by tweaking PushMatrix() and PopMatrix().

The finished sketch for this lesson can be found below:

```ArrayList bladeImages = new ArrayList();
float targetX, targetY;
float pointerX, pointerY;
float dx, dy;
int width, height;

void setup() {
width = 500;
height = 550;
size(width, height);
noStroke();
smooth();
targetX = width / 2;
targetY = height / 2;
for (int i = 0; i < totalBlades; i++) {
}
};

void draw() {
dx += ( targetX - pointerX) * .2;
dy += ( targetY - pointerY) * .2;
dx *= .93;  dy *= .93;
pointerX += dx;
pointerY += dy;
fill(color(16, 46, 16, 10));
rect(0,0,width, height);
for ( int i = 0; i < totalBlades; i++)  {
pushMatrix();
translate(pointerX, pointerY);
for ( int c = 0; c < 20; c++)    {
}
popMatrix();
}
};

void pointerMove(TouchEvent e) {
targetX = e.offsetX;
targetY = e.offsetY;
};

float x = 0;
float y = 0;
float growth = 0.0;
float rotation = 0.0;
int index = 0;

void render() {
scale(0.8, 0.8);
translate(5*this.growth, 0);
rotate(this.growth);
}
}
```

• Oops, something didn't work.

Getting "follow" information
• Very good,ok!

• Very good!