Skip to content

Commit

Permalink
166
Browse files Browse the repository at this point in the history
  • Loading branch information
villares committed Jun 15, 2018
1 parent dd98397 commit eb308e7
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 6 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,24 @@ If you enjoy this, make a small donation [here](https://www.paypal.com/cgi-bin/w

----

![s166](s166/s166.png)

166: [code](https://github.com/villares/sketch-a-day/tree/master/s165) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]

----

![s165](s165/s165.png)

165: [code](https://github.com/villares/sketch-a-day/tree/master/s165) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]

----

![s164](s164/s164.png)

164: [code](https://github.com/villares/sketch-a-day/tree/master/s164) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]

----

![s163](s163/s163.gif)

163: [code](https://github.com/villares/sketch-a-day/tree/master/s163) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]
Expand Down
Binary file added s166/s166.mov
Binary file not shown.
13 changes: 7 additions & 6 deletions s166/s166.pde
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Alexandre B A Villares - https://abav.lugaralgum.com/sketch-a-day
String SKETCH_NAME = "s166" // 180614
String SKETCH_NAME = "s166"; // 180614

import peasy.*;

Expand All @@ -10,8 +10,9 @@ float space;
void setup() {
size(600, 600, P3D);
colorMode(HSB);
noStroke();
cam = new PeasyCam(this, 100);
cam.setMinimumDistance(100);
cam.setMinimumDistance(1000);
cam.setMaximumDistance(1000);

// Reassign some drag handlers in order to free the left-drag to other uses
Expand Down Expand Up @@ -42,11 +43,11 @@ void draw() {
pushMatrix();
translate(p.x, p.y, p.z);
float noiseScale = 0.005;
float n = noise(100+ (mouseX + p.x) *noiseScale,
300+ (mouseY + p.y) * noiseScale,
p.z*noiseScale);
float n = noise(abs (mouseX + p.x) *noiseScale,
(1000+mouseY + p.y) * noiseScale,
(300000+ p.z)*noiseScale);
fill(256*n, 255, 255);
box(space *(1-n));
box(space*(1-n));
popMatrix();
}
}
Binary file added s166/s166.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit eb308e7

Please sign in to comment.