Alexandre B A Villares 2018-06-15 09:41:30 -03:00
rodzic dd983978ac
commit eb308e7d19
4 zmienionych plików z 25 dodań i 6 usunięć

Wyświetl plik

@ -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)]

BIN
s166/s166.mov 100644

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -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.*;
@ -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
@ -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();
}
}

BIN
s166/s166.png 100644

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 211 KiB