This commit is contained in:
Anish 2018-07-11 23:22:22 +10:00
parent dd659c5170
commit bf6669f95c
78 changed files with 52 additions and 0 deletions

1
cosfunc1/gif_maker Normal file
View file

@ -0,0 +1 @@
convert -loop 0 *.png out.gif

BIN
cosfunc1/sketch_1/fr001.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
cosfunc1/sketch_1/fr002.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
cosfunc1/sketch_1/fr003.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
cosfunc1/sketch_1/fr004.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr005.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr006.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
cosfunc1/sketch_1/fr007.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr008.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr009.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr010.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
cosfunc1/sketch_1/fr011.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
cosfunc1/sketch_1/fr012.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr013.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr014.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr015.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
cosfunc1/sketch_1/fr016.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr017.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr018.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
cosfunc1/sketch_1/fr019.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
cosfunc1/sketch_1/fr020.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
cosfunc1/sketch_1/fr021.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
cosfunc1/sketch_1/fr022.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr023.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr024.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr025.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr026.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr027.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr028.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr029.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
cosfunc1/sketch_1/fr030.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr031.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr032.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr033.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
cosfunc1/sketch_1/fr034.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
cosfunc1/sketch_1/fr035.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
cosfunc1/sketch_1/fr036.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr037.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
cosfunc1/sketch_1/fr038.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
cosfunc1/sketch_1/fr039.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
cosfunc1/sketch_1/fr040.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
cosfunc1/sketch_1/fr041.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
cosfunc1/sketch_1/fr042.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr043.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr044.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
cosfunc1/sketch_1/fr045.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr046.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr047.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr048.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
cosfunc1/sketch_1/fr049.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr050.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr051.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr052.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr053.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
cosfunc1/sketch_1/fr054.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr055.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr056.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
cosfunc1/sketch_1/fr057.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
cosfunc1/sketch_1/fr058.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
cosfunc1/sketch_1/fr059.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
cosfunc1/sketch_1/fr060.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr061.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr062.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr063.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr064.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr065.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr066.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
cosfunc1/sketch_1/fr067.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
cosfunc1/sketch_1/fr068.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr069.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr070.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
cosfunc1/sketch_1/fr071.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
cosfunc1/sketch_1/fr072.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
cosfunc1/sketch_1/fr073.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
cosfunc1/sketch_1/fr074.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
cosfunc1/sketch_1/fr075.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
cosfunc1/sketch_1/ps1.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

View file

@ -0,0 +1,51 @@
int numFrames = 75;
int m = 8000;
float delay = 10;
void setup(){
size(500,500,P3D);
stroke(255);
fill(255);
}
float x1(float t, int offset){
return offset + 0.5*width + 500*cos(TWO_PI*t);
}
float y1(float t, int offset){
return offset + 0.5*width + -500*cos(2*TWO_PI*t);
}
float x2(float t, int offset){
return offset + 0.5*width + -500*cos(TWO_PI*t);
}
float y2(float t, int offset){
return offset + 0.5*height + 500*cos(2*TWO_PI*t);
}
void draw(){
float t = 1.0*(frameCount - 1)/numFrames;
background(0);
//int[] Xoffset = {-25, 0, 25};
//int[] Yoffset = {0, 5, 10};
//for (int i = 0; i < 3; i++) {
ellipse(x1(t,0 ),y1(t,0 ),6 , 6);
ellipse(x2(t,0 ),y2(t,0 ),6 , 6);
pushStyle();
strokeWeight(2);
stroke(255,100);
for(int i=0;i<=m;i++){
float tt = 1.0*i/m;
float x = lerp(x1(t - delay*tt,0),x2(t - delay*(1-tt),0),tt);
float y = lerp(y1(t - delay*tt, 0),y2(t - delay*(1-tt),0),tt);
point(x,y);
}
popStyle();
//}
//ellipse(x2(t),y2(t),6,6);
println("saving frame " + frameCount + "/" + numFrames);
if(frameCount<=numFrames) saveFrame("fr###.png");
if(frameCount == numFrames) stop();
}