Reference changes for 2.0

This commit is contained in:
Casey Reas
2011-09-25 03:56:26 +00:00
parent d15dff5a82
commit b54608d62d
7 changed files with 35 additions and 19 deletions

View File

@@ -8,8 +8,6 @@
// The next line is needed if running in JavaScript Mode with Processing.js
/* @pjs font="Georgia.ttf"; */
PFont fontA;
void setup() {
size(640, 360);

View File

@@ -2,8 +2,9 @@
* Convolution
* by Daniel Shiffman.
*
* Applies a convolution matrix to a portion of an image.
* Move mouse to apply filter to different parts of the image.
* Applies a convolution matrix to a portion of an image. Move mouse to
* apply filter to different parts of the image. This example is currently
* not accurate in JavaScript mode.
*/

View File

@@ -3,7 +3,7 @@
*
* A high-pass filter sharpens an image. This program analyzes every
* pixel in an image in relation to the neighboring pixels to sharpen
* the image.
* the image. This example is currently not accurate in JavaScript mode.
*/
// The next line is needed if running in JavaScript Mode with Processing.js
@@ -42,7 +42,7 @@ void draw() {
}
// For this pixel in the new image, set the gray value
// based on the sum from the kernel
edgeImg.pixels[y*img.width + x] = color(sum);
edgeImg.pixels[y*img.width + x] = color(sum, sum, sum);
}
}
// State that there are changes to edgeImg.pixels[]

View File

@@ -11,7 +11,7 @@ class Boid {
Boid(PVector l, float ms, float mf) {
acc = new PVector(0,0);
vel = new PVector(random(-1,1),random(-1,1));
vel = new PVector(random(-1,1), random(-1,1));
loc = l.get();
r = 2.0;
maxspeed = ms;