messing around a lil
BIN
vector_field/0.png
Normal file
After Width: | Height: | Size: 287 KiB |
BIN
vector_field/048.png
Normal file
After Width: | Height: | Size: 208 KiB |
BIN
vector_field/1.png
Normal file
After Width: | Height: | Size: 405 KiB |
BIN
vector_field/105.png
Normal file
After Width: | Height: | Size: 326 KiB |
BIN
vector_field/175.png
Normal file
After Width: | Height: | Size: 444 KiB |
BIN
vector_field/2.png
Normal file
After Width: | Height: | Size: 470 KiB |
BIN
vector_field/3.png
Normal file
After Width: | Height: | Size: 575 KiB |
BIN
vector_field/Fr###.png
Normal file
After Width: | Height: | Size: 389 KiB |
BIN
vector_field/test.jpg
Normal file
After Width: | Height: | Size: 77 KiB |
BIN
vector_field/test1.png
Normal file
After Width: | Height: | Size: 539 KiB |
|
@ -1,5 +1,6 @@
|
|||
// dynamic list with our points, PVector holds position
|
||||
ArrayList<PVector> points = new ArrayList<PVector>();
|
||||
int saveCount = 0;
|
||||
|
||||
// colors used for points
|
||||
color[] pal = {
|
||||
|
@ -49,14 +50,15 @@ void draw() {
|
|||
float n1 = 2* map(noise(p.x,p.y), 0, 1, -1, 1);
|
||||
float n2 = 3 * map(noise(p.y/3, p.x/2), 0, 1, -1, 1);
|
||||
//PVector v = new PVector(cos(n),sin(n));
|
||||
|
||||
PVector v = kampyle(n2);
|
||||
|
||||
float sinn = sin(n1);
|
||||
PVector v2 = swirl(new PVector(n2, n1), 1.3);
|
||||
|
||||
float xt = sq(sinn)*sinn;
|
||||
float yt = sq(cosn)*cosn;
|
||||
//float yt = sq(cosn)*cosn;
|
||||
|
||||
PVector v = new PVector(xt,yt);
|
||||
//PVector v = new PVector(xt,yt);
|
||||
// v is vector from the field
|
||||
//PVector v = new PVector(0.1, 0.1);
|
||||
|
||||
|
@ -199,3 +201,8 @@ PVector pdj(PVector v, float amount) {
|
|||
|
||||
final float cosh(float x) { return 0.5 * (exp(x) + exp(-x));}
|
||||
final float sinh(float x) { return 0.5 * (exp(x) - exp(-x));}
|
||||
|
||||
void mouseClicked() {
|
||||
saveFrame("###.png");
|
||||
print("saved");
|
||||
}
|
||||
|
|