kopia lustrzana https://github.com/villares/sketch-a-day
main
rodzic
dd983978ac
commit
eb308e7d19
18
README.md
18
README.md
|
|
@ -8,6 +8,24 @@ If you enjoy this, make a small donation [here](https://www.paypal.com/cgi-bin/w
|
|||
|
||||
----
|
||||
|
||||

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

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

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

|
||||
|
||||
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)]
|
||||
|
|
|
|||
Plik binarny nie jest wyświetlany.
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Plik binarny nie jest wyświetlany.
|
Po Szerokość: | Wysokość: | Rozmiar: 211 KiB |
Ładowanie…
Reference in New Issue