diff --git a/vector_field/0.png b/vector_field/0.png new file mode 100644 index 0000000..4b4a0eb Binary files /dev/null and b/vector_field/0.png differ diff --git a/vector_field/048.png b/vector_field/048.png new file mode 100644 index 0000000..09a3cad Binary files /dev/null and b/vector_field/048.png differ diff --git a/vector_field/1.png b/vector_field/1.png new file mode 100644 index 0000000..8c3fb57 Binary files /dev/null and b/vector_field/1.png differ diff --git a/vector_field/105.png b/vector_field/105.png new file mode 100644 index 0000000..ad82846 Binary files /dev/null and b/vector_field/105.png differ diff --git a/vector_field/175.png b/vector_field/175.png new file mode 100644 index 0000000..8440ca4 Binary files /dev/null and b/vector_field/175.png differ diff --git a/vector_field/2.png b/vector_field/2.png new file mode 100644 index 0000000..e9d599f Binary files /dev/null and b/vector_field/2.png differ diff --git a/vector_field/3.png b/vector_field/3.png new file mode 100644 index 0000000..88390d6 Binary files /dev/null and b/vector_field/3.png differ diff --git a/vector_field/Fr###.png b/vector_field/Fr###.png new file mode 100644 index 0000000..747ee84 Binary files /dev/null and b/vector_field/Fr###.png differ diff --git a/vector_field/test.jpg b/vector_field/test.jpg new file mode 100644 index 0000000..78ab6a1 Binary files /dev/null and b/vector_field/test.jpg differ diff --git a/vector_field/test1.png b/vector_field/test1.png new file mode 100644 index 0000000..6d1b3ad Binary files /dev/null and b/vector_field/test1.png differ diff --git a/vector_field/vector_field.pde b/vector_field/vector_field.pde index 968bf96..d08e4ae 100644 --- a/vector_field/vector_field.pde +++ b/vector_field/vector_field.pde @@ -1,5 +1,6 @@ // dynamic list with our points, PVector holds position ArrayList points = new ArrayList(); +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"); +}