mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Removing a few examples for 2.0
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
float[][] distances;
|
||||
float maxDistance;
|
||||
int spacer = 10;
|
||||
int spacer;
|
||||
|
||||
void setup() {
|
||||
size(640, 360);
|
||||
@@ -17,10 +17,11 @@ void setup() {
|
||||
distances = new float[width][height];
|
||||
for (int y = 0; y < height; y++) {
|
||||
for (int x = 0; x < width; x++) {
|
||||
float dist = dist(width/2, height/2, x, y);
|
||||
distances[x][y] = dist/maxDistance * 255;
|
||||
float distance = dist(width/2, height/2, x, y);
|
||||
distances[x][y] = distance/maxDistance * 255;
|
||||
}
|
||||
}
|
||||
spacer = 10;
|
||||
noLoop(); // Run once and stop
|
||||
}
|
||||
|
||||
@@ -35,3 +36,4 @@ void draw() {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user